Assessing Sample Code from Job Applicants

2011-05-24 / All Blog posts

Once again I am reviewing programmer resumes for a client. This client needs to hire an entire team, including Flex and Java programmers. Because programmers write software, I always request sample code from candidates. I don’t ask stupid hypothetical questions or play mind games – I just want to assess the quality of their work.

I request the code along with a resume. Code is truth. I do not interview candidates who do not provide sample code that passes inspection. The requirement for sample code is published in the job description. Surprisingly, most applicants do not provide sample code. I do not respond to those applications, because clearly those people do not follow simple instructions.

This is worth repeating: If a job applicant wants to be considered as a candidate, they need to provide sample code along with their resume.

I assume that the programs that candidates show me are examples of their best work, or at least work that they are proud of. Most of my clients need programmers to develop software products or in-house applications, so efficiency and maintainability are important.

I ask for sample code in at least two languages. It is up to the candidate to decide how much to show me, and what they show me. The more sample code they show me, the more sure I can be about my assessment.

Here are some issues that I look for in submitted code:

  1. Is it difficult or expensive to maintain?
  2. Was the code written with the next programmer on this project in mind?
  3. Is logic used instead of data structures?
  4. Is the code neat, and does it follow a consistent pattern? I don’t care if particular formatting conventions are followed, I am looking for an ordered mind and a conscientious worker.
  5. Is the code testable? Were unit tests and/or integration tests provided?
  6. Does the code contain magic values instead of declared constants?
  7. Is the code inefficient (are there lots of conversions between string and int, for example)?
  8. Does the programmer use idioms specific to the language that it is written in?
  9. Are there appropriate comments, especially Javadoc / asdoc style comments?
  10. Are default actions or values recoded? Defaults are tacitly understood by competent programmers. Code and documentation should be written with the assumption that readers will be technically competent.
  11. Is encapsulation violated because most methods are public?
  12. Are there syntax errors?

For Adobe Flex programmers I also look for:

  1. Is there proper usage of the Flex component life cycle?
  2. Is there a heavy dependence on binding?
  3. Are events used properly?
  4. Are heavyweight Halo containers used, when Spark Groups would suffice?
  5. Is all logic in a controller, or is it shoved into views (or worse, item renderers)?
  6. Are style sheets used, or is style information explicitly coded?

I also provide a reading and comprehension test, and ask them to critique the code I provide. Some of the code I provide is good, some bad.

Many enticing resumes are simply not supported by good sample code. Would you hire a chef without tasting a sample of their food first?


comments powered by Disqus