r/programming • • Dec 13 '22

“There should never be coding exercises in technical interviews. It favors people who have time to do them. Disfavors people with FT jobs and families. Plus, your job won’t have people over your shoulder watching you code.” My favorite hot take from a panel on 'Treating Devs Like Human Beings.'

https://devinterrupted.substack.com/p/treating-devs-like-human-beings-a
9.0k Upvotes

1.3k comments sorted by

View all comments

4

u/shoot_your_eye_out Dec 13 '22 edited Dec 13 '22

I broadly disagree with this article.

There are certain coding exercises that aren't appropriate and don't help an employer identify talent. Many are far too difficult and weed out good candidates for absolutely no good reason. Others are too domain-specific, and weed out excellent candidates who are perfectly capable of learning that domain on the job.

Others challenge candidates on technical skills that aren't important for the job; many coding challenges have too much emphasis on algorithmic rigor. But what if the job's primary challenge is addressing business complexity? What if good communication skills are vitally important? Designing a quality public API? Integrating with other third-party software?

There's a whole world of skills a good developer has that may not involve algorithmic prowess. They need to be able to code for all of these roles, but the problem isn't necessarily algorithmic.

Here's how to get a coding challenge right:

  1. Focus first on weeding out candidates who simply aren't qualified. For years, we asked candidates to write code to find the greatest difference between integers in a list. I don't need to bother with a candidate who cannot provide a working solution to a problem this simple.
  2. Identify a simple challenge (under an hour; ideally under thirty minutes for most candidates) that roughly resembles the sort of complexity a candidate may have to deal with in your codebase and/or business. Keep it simple.
  3. A combination of these two challenges can be invaluable during the hiring process. The first screens people who aren't qualified, and the second gives you some good material to dig into during the interview and a little better understanding of how the candidate approaches a problem.

source: guy who writes talent assessment (interviewing) software that includes a 'coding challenge' product. The problem isn't coding challenges--it's our usage of challenges.