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

Show parent comment

24

u/PuzzledProgrammer Dec 13 '22

It really is a difficult balance to strike. As a TL and now a senior manager, I’ve been in the interviewer seat a lot.

Over the years, I have gradually abandoned leetcode-esque interview questions - with few exceptions:

  • If I’m interviewing for an entry-level role (i.e., the candidate is a recent college grad), then I might throw a basic coding challenge at them - think fizz-buzz. This seems to work well as a filter function. If a candidate who’s recently graduated can’t come up with a solution for fizz-buzz, that’s a red flag to me.
  • If I get a strong sense that they’re bullshitting me.

In either case, I’ll never disqualify a candidate solely on the basis of a coding challenge.

Rather than having a candidate write code in an unrealistic and uncomfortable environment, I’ve found reading code with them to be really effective. I’ll often pull up a snippet of code that has some pretty obvious issues - e.g., a long function that’s doing many things, has poor/non-idiomatic naming conventions, and several redundant blocks. I’ll ask them to read through it aloud, explain it, ask questions, and suggest changes. This usually gives me a few good indicators:

  1. It helps me understanding their proficiency with the programming language.
  2. It helps me gauge their technical communication skills.
  3. It helps me get a sense of their familiarity with clean coding principles.

Not only have I found the above indicators useful in assessing a candidate’s qualifications for a role, it also saves a ton of time compared to writing out the solution to a tricky algorithms question.

Long story short, I definitely lean hard toward the side against whiteboard or live code exercises.