Skip to content

Red Matter PHP Job Application Supplement

Notifications You must be signed in to change notification settings

redmatter/recruitment-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Simple Blog

Red Matter PHP Job Application Supplement

What’s the scenario?

This repository code contains a simple PHP script which is run when a logged-in user posts a new blog entry. It checks the user has supplied the correct password, saves the new blog post, emails all users to notify them of the new post, then displays an HTML page with all blog posts, including the new one. The script makes use of supporting classes to do some of the work.

What do I need to do?

Read through the code and write in our application form any areas you would improve. Consider security, efficiency, coding style, scalability and future maintainability in your answer. Also if you spot any bugs, or potential sources of bugs in unexpected situations, make a note of them.

How long should it take?

Give yourself 20-30 minutes to read through the code and make comments. We’re looking for three or four sentences per problem that identify the problem, what you would do to improve it and your reasoning. We’re not looking for essays or completely rewriting the implementation!

Anything else I need to know?

  • You can assume that $logged_in_user has already been created as a valid user object elsewhere
  • Some libraries, for example the Templater class, are deliberately omitted as they are not part of the test
  • Don't make any other assumptions; if you're not sure something is worth commenting on, do so anyway!

How do I submit my application?

Apply using our online application form https://natterbox.typeform.com/to/FkVL9L

About

Red Matter PHP Job Application Supplement

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages