Need help coming up with PHP coding task for job candidates

Posted on 2009-04-19
Last Modified: 2013-12-12
I am in the process of hiring a mid-level php developer. We have an excellent candidate who has has a solid education and some php experience using a framework (CodeIgniter), but he has no experience coding php outside of a framework. Since our application is straight php with no framework, I wanted to give him a 45 minute to 1 hour coding task to gauge his php skills outside of a framework. I want them to code something real so that I can then review their code, their comments (or lack of), and their overall approach to see if they would make a good addition to our team.

I am looking for help from experienced PHP programmers who could give me good ideas for such a task. What would be a fair yet informative task to ask someone to achieve in this amount of time? Should I ask for a real working app, or allow them to use pseudo-code in some places?

Question by:charles4
    LVL 18

    Expert Comment

    by:Andrej Pirman
    By my oppinion, PHP itself is not enough. Either some AJAX or at least PHP + MySQL experience would be needed.

    Lemme think for few seconds...

    Ok, I'd ask to present me a working sample of secure authentication, with login, user check into database, "Remember Me" checkbox, and authentication flow through further pages on same server.
    If he would use some GET method, or would NOT use SSL, or would use some $parameter in authentication flow between documents (like if($auth==1) then let user pass...)...then I would NOT decide to keep him.

    But on the other hand, he might be a talent, who has still much to learn, and might become quite good. So if you are into long-term, then it might be better for you to take a bit less-experienced programmer, direct him, let him learn, let him exchange knowledge with others, let him feel like other words, you should adopt him and he will do anything for you in next years :)

    It's hard to tell who is better for you - already experieced guru, who might have some itchy habbits, or some green PHP unveiled genious, who you can shape to fit your needs - it's up to you to decide.

    Author Comment

    Hi Labsy,

    Thanks for your reply. I totally agree that php without some db or front end work would not be enough.

    Do you think that your secure authentication example could be combined with a simple task like creating a page that let's users edit and display some text to make a more complete application? Also, do you think someone could do all of this in less than 1 hour?


    Accepted Solution

    Not much activity here. I found this solution somewhere else.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    As this topic comes over and over again in different forms, I've finally decided to write a short (yea, right...) article / tutorial about pagination with PHP with MySQL database. There are dozens of these kind of tutorials, I know - I wanted to mak…
    Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to dynamically set the form action using jQuery.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now