• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

TechNews

Technology breaking news

  • Home
  • Startups
  • Science
  • Cybersecurity
  • Review

Hiring a programmer? Ask these questions in the interview

February 17, 2010 by www.techrepublic.com Leave a Comment

One of the hardest things to do when hiring a software developer is to establish his or her level of expertise. It’s pretty easy to learn what their attitude is like after a bit of time in an interview. But actual programming experience is tough. Some companies rely on various tests, but in my experience, those tests often evaluate rote memorization that the modern development environment does not require (e.g., between the IDE’s autocomplete, F1, and the Internet, library knowledge is not as important as it used to be). Here are some questions that are good to ask a developer, and why they are good questions. If you don’t feel comfortable judging the answers on some of the more technical questions, have one of your senior developers sit in as well. These questions are designed to be generic and allow you to “pre-screen” a candidate before you get to questions specific to your projects.

I had assumed for a long time that everyone billing themselves as a “programmer” had a certain baseline level of knowledge. I discovered that this was not the case at all! While not every developer has a degree in computer science, it should be expected that every developer understands certain fundamental ideas. While the ideas may not always come up in day-to-day programming, they are important for developers to understand. Some of these questions I like to ask are:

  • Explain the difference between “equality” and “equivalence” (credits to TechRepublic member Tony Patton for this question).
  • What is the difference between “pass by value” and “pass by reference”? How are these ideas different in object-oriented systems and procedural systems?
  • Describe “polymorphism.”
  • Compare and contrast “pessimistic locking” and “optimistic locking.”

Any candidate who cannot successfully answer the first two is “entry level” at best. The second two should be answerable for any “intermediate” developer.

Much has been made of some companies like Microsoft and Google and the intense tests they use to evaluate how candidates approach problem solving. While those tests are well and good, the fact is that few managers and companies have the time to spend a full day interviewing job candidates and having them play puzzle games. All the same, it’s important to get an idea of how well someone can think about a problem and communicate the solution. In my experience, the best example of this kind of question is “The Chicken Question.” I first encountered it on a job interview about three years ago, and I thought it was an excellent question. You ask the candidate, “if you had your way, how would you design a chicken, and why?” There really are no “right” or “wrong” answers here, but a candidate who knows how to approach a problem well will be able to give a detailed answer. Some candidates will like to play “philosopher” (or worse, “heckler”) and ask questions like, “Are we sure that we need to design a chicken in the first place?” These kinds of answers can give important insight into their work attitude as well. This question is a good one for candidates looking at senior developer or software architect positions. Of course, it doesn’t have to be a chicken, either. It could be any kind of animal, a piece of machinery, etc.

Something that has become less common in interviews (as far as I can tell) is “whiteboard programming,” where the candidate is given a problem to solve and asked to use pseudo-code on a whiteboard to write an application to solve the problem, explaining along the way why they are doing what they are doing. In some regards, this is a more hands-on version of “the chicken question” and shows what the person would be like as a developer. You can use a variety of different scenarios for this, maybe something applicable to your environment or perhaps something more generic. The keys to a successful question here is to make sure that it can easily be expressed in a whiteboard’s worth of pseudo-code and does not involve too much library knowledge. After all, you’re looking for someone to demonstrate how he thinks about programming, not how well he functions without any tools! Some examples that might be appropriate whiteboard problems:

  • Calculate the Fibonacci value for a number X
  • Determine whether or not a given number X is prime
  • Reverse an array without using a loop
  • FizzBuzz

Yes, these are fairly basic questions, but you would be shocked at how few developers can give a decent, short piece of pseudo-code that handles them! Feel free to pull an example from the realm that your specific position hires from, of course.

One interview I went to had a unique twist on whiteboard programming: Instead of explaining the problem to me and having me write the pseudo-code, they wrote pseudo-code and asked me to explain what it actually accomplished. This is an excellent tool and makes a good test for someone’s ability to delve into code and start troubleshooting or making changes.

Code reviews are a common part of the development process. Something that I’ve seen in interviews that can be effective is to show the candidate a piece of code and have her review it. Of course, the code should not be perfect, but at the same time, the flaws should not be the kind of things that a compiler will pick up like a missing period. Instead, you should be looking for a candidate who can make optimizations, find “fence posting errors” (and other common mistakes), and so on. This will show that that person understands the difference between good code and poor code and know how to write good code.

In most interviews, there are a few standard questions that get asked. Things like, “What is the hardest challenge you have faced in your current position?” and “What do you consider your biggest weakness?” These questions are fairly worn out, but they do serve a purpose all the same. It’s helpful if you focus the question on development. For example, instead of asking, “What’s your biggest weakness?” try asking, “What aspect of Web development do you feel weakest in?” (or whatever kind of development your project is in). If your candidate lacks the exact set of skills that you’re looking for, don’t ask them, “Do you think you could come up to speed quickly in these tools?” Because, of course, she will say she can. Instead, ask for examples of how she has been able to perform jobs despite lacking the skill set at the beginning.

One of the biggest problems when evaluating resumes is that candidates sometimes turn even the slightest association with a project into a central role. For example, the person who acted as a scribe in one brainstorming session might list “extensive specification development experience” on his resume. You really need to ask specifics about the past experience, particularly anything that interested you in the resume. Drill down into the answers. The following dialogue between Susan (the interviewer) and Kevin (the candidate) should give you an idea of how this goes:

Susan: On your resume, it says that you were key in developing a new CRM system. Tell me a bit about that.Kevin: It was a Web application written in ASP.NET with C# and Microsoft SQL Server.Susan: What was your role in that?Kevin: I focused on the data access layers and business logic and worked with a designer to tie it to the UI.Susan: What technologies did you use to communicate with the database, and where was the business logic stored?Kevin: Our DBA set up the initial table structure, and I used NHibernate to work with the database. From there, I created custom data access objects that exposed only the appropriate methods and functions, and I performed some additional data validation and transformations that were not appropriate to do in NHibernate or in the database itself.

As you can see, Susan was able to get to the heart of the matter very quickly. If Kevin had not been able to clearly define his role in the project, the technologies used, their limitations, and so on, it would have been a sign that Kevin’s resume overstated his expertise.

Hiring a developer is not easy. And when you hire the wrong person, it can take a while to find out that that person has been making a mess of things, and sometimes even longer to reverse the damage. In an ideal world, we could use a lot more time than the typical interview to get to know the candidate, but we rarely have that luxury. These tips should get you on the right track to separating the poor developers from the good ones.

  • These Are the Questions Top Tech Companies Ask Job Candidates
  • 7 Questions with... Bora Zivkovic
  • Donna Brazile Flatly Denies Giving Questions to Hillary Clinton
  • Critics herald 'promising start' for new BBC Scotland nightly news programme The Nine
  • Who Came to Jim Acosta’s Defense?
  • The In-House Search Marketer's Most Powerful Tool
  • How AT&T execs took over the Red Cross and hurt its ability to help people
  • Why Can’t Lego Click?
  • Training to Work
  • The Permatemps Contretemps
  • The difference between making $1,000 and $10,000 per month from Amazon Affiliate Sites
  • Shroud of the Avatar
  • Are You Using Your B2B Marketing Personas Effectively?
  • 5 Inbound Marketing Techniques Every Startup Need to Know
  • A Non-Coder's Journey to Becoming a Data Engineer
  • What does it mean to be a NASA astronaut in the celebrity space age of Elon Musk and Richard Branson?
  • Feds Pressure E-cigarette Firms for 'Epidemic of Addiction' Among Teens
  • Are aptitude tests an accurate measure of human potential? – Elizabeth Svoboda
Hiring a programmer? Ask these questions in the interview have 1616 words, post on www.techrepublic.com at February 17, 2010. This is cached page on TechNews. If you want remove this page, please contact us.

Filed Under: Developer candidates questions to ask in interview, questions candidates ask during interview, typical questions to ask an interviewer, questions candidate should ask in interview, questions can't ask in interview, questions candidate ask at interview, 34 most asked job interview questions, interview how to ask questions, interview mostly asked questions, 50 interview most asked questions, employer to ask questions in interview, 10 ask questions interview, most asked question in job interview, most asked question in call center interview, question which are asked in interview, question which ask in interview, question which is asked in interview, question mostly asked in interview, questions executives ask during interview, 5 frequently asked questions interview

Primary Sidebar

RSS Recent Stories

  • Brian Kemp Wins Georgia Governor’s Primary, Defeating David Perdue
  • Stacey Abrams Officially Wins Democrat Primary Race for Governor
  • Taking Final Fantasy 15 away from the Deus Ex studio was ‘a big mistake’
  • Feast your eyes on the first complete PS Plus games library
  • Meilleurs AirPods 2022 : quels sont les casques et écouteurs Apple à privilégier ?
  • PlayStation Plus : voici la liste complète des jeux disponibles sur la nouvelle plateforme
  • La nouvelle Amazfit T-Rex 2 peut-elle faire de l’ombre aux dernières montres Garmin ?
  • Bon plan Rue du Commerce : chargez vos jeux ultra rapidement grâce à ce SSD Corsair de 1 To
  • Windows 11 n’est pas aussi fiable que vous le pensez
  • Asus announces world’s first 500Hz Nvidia G-Sync gaming display

Sponsored Links

  • Major crash led to suspension of its Tesla Model 3 by taxi company
  • After Tesla, SpaceX workers come forward to speak on sexual harassment
  • Wi-Fi range extender to strengthen network coverage and internet speeds
  • apple: How to capture screenshot on Apple iPhone just by tapping back panel
  • EU Parliament backs tough new rules to rein in US tech giants
  • Carville: ‘Strap in People’ — January 6 Probe Will Expose Trump Was Behind a ‘Massive Criminal Act’
  • Warren: SCOTUS ‘Has Lost the Respect of the American People’ — We Need More Justices
  • Summers: Combatting Inflation Will ‘Require Substantially More’ Than What Fed Is Doing
  • Bratton: Lax District Attorneys, ‘Most of Them Funded by George Soros’ ‘Are Destroying the Criminal Justice System’
  • WATCH: Sheriff’s Deputies in Maryland Rescue Woman from Frigid Waters
Copyright © 2022 TechNews. Power by Wordpress.
Home - About Us - Contact Us - Disclaimers - DMCA - Privacy Policy - Submit your story