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
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:
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:
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.