Greenfield Projects: Interviewing Technical Candidates

How do you ensure that you recruit the right developers for you team? The interview process is important and focus should be on both technical skill and team fit:

A three stage approach is useful:

Stage 1:  The pre-screen ensures that a basic technical level is achieved by the candidate and this can be undertaken by the recruitment agency and HR team.

Stage 2:  The telephone interview gives the opportunity to delve deeper into the candidates technical knowledge and get a feel for how they define quality and ways of working.

Stage 3:  The face to face interview should remove any doubts form the previous code exercises, give both parties an understanding of the expected ways of working and establish a good team fit.

Pre Screening

A Kata that the candidate can complete at home and submit for review was used to screen candidates.  A Kata was selected from one of the many that can be found on the internet.  The Kata below is an example Kata that could be used:

The String Calculator Kata

Try not to read ahead, Do one task at a time

Make sure you only test for correct inputs. there is no need to test for invalid inputs for this kata

String Calculator

  1. Create a simple String calculator with a method int Add(string numbers) The method can take 0, 1 or 2 numbers, and will return their sum (for an empty string it will return 0) for example “” or “1” or “1,2”
    1. Start with the simplest test case of an empty string and move to 1 and two numbers
    2. Remember to solve things as simply as possible so that you force yourself to write tests you did not think about
    3. Remember to refactor after each passing test
  2. Allow the Add method to handle an unknown amount of numbers
  3. Allow the Add method to handle new lines between numbers (instead of commas).
    1. The following input is ok:  “1\n2,3”  (will equal 6)
    2. The following input is NOT ok:  “1,\n” (not need to prove it – just clarifying)
  4. Support different delimiters
    1. To change a delimiter, the beginning of the string will contain a separate line that looks like this:   “//[delimiter]\n[numbers…]” for example “//;\n1;2” should return three where the default delimiter is ‘;’ .  The first line is optional. all existing scenarios should still be supported
  5. Calling Add with a negative number will throw an exception “negatives not allowed” – and the negative that was passed.if there are multiple negatives, show all of them in the exception message
  6. Numbers bigger than 1000 should be ignored, so adding 2 + 1001  = 2
  7. Delimiters can be of any length with the following format:  “//[delimiter]\n” for example: “//[***]\n1***2***3” should return 6
  8. Allow multiple delimiters like this:  “//[delim1][delim2]\n” for example “//[*][%]\n1*2%3” should return 6.
  9. make sure you can also handle multiple delimiters with length longer than one char

Knockout criteria and expectations for success should be established for the interviewers in advance to ensure each candidate is reviewed against the same baseline.  Success in the Kata leeds to a two stage interview process; a telephone interview and a face to face interview.

Telephone Interview

The telephone interview is used to gain an understanding of the way the candidate thinks.  Comprising of a collaboration coding exercise on a shared open source platform like and aptitude questions (ideas on achieving code quality, opinions of BDD/TDD, how to achieve Continuous Integration/Continuous delivery, software patterns, SOLID Principles, etc.)

Code Exercise:

Count the number of words in a string (including new lines) without using split.
Word String is as follows:
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of “de Finibus Bonorum et Malorum”
The candidates should be asked not to use ‘split’ as the test is designed to review understanding of code structure and the candidates ability to think around problems.
The response required for this exercise is to return a count of all of the words within the string.  If the candidate did particularly well the second part of the exercise is for the candidate to discuss how they would count the unique words in the string or a file.
Face to Face Interview

The face to face interview should give you an idea of whether you will be able to work with the candidate, do they ‘fit’.  Ask questions around your work ethic, their attitude to criticism (Both about their work and the work of others), how they would start work with the team, their understanding of the delivery environment.  A conceptual code exercises can also be helpful, try a whiteboard session.  Coding without an IDL can indicate a candidates ability to conceptualize and think through a problem without using ‘quick tools’.  A code exercise with an IDL is useful for indicating how quickly the candidate can come to terms with a new problem in a real world situation.

Whiteboard session;

Given an array of length N objects
Where the objects can be one of three colours red, green and blue
Write an algorithm that’ll sort the objects 
you’re not allowed to use .sort().  Do use fundamental principles.
For more heavyweight candidates it is important to see they have a top down view on the program as a whole.  Take an actual problem in the code being built and ask the candidate to architect a service solution.

Published by

Adam Scoot

After the consultancy, its all about the agile, a little bit of scrum and delivery. Other than that; Ski hard, Ski fast or go home.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s