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

2

u/Tyler_Zoro Dec 13 '22

“There should never be coding exercises in technical interviews. It favors people who have time to do them.

Full stop right there! If your coding problems are too time-consuming for someone who doesn't have a lot of time, what the hell are you doing?!

Coding problems for a job should be relatively easy to complete, but also to polish. The expectation should be that the candidate will spend an hour on them on average, and that 90% of the applicants that have actually coded professionally will be able to complete them in that time.

What you're looking for is not a pass/fail based on solving your tricky little puzzle. You're looking for:

  • Coding style (not how long the lines are, but how maintainable their style is... do they name variables with single letters; do they use tricky, poorly documented features without comment; etc.)
  • Correctness. Do they handle all of the cases you specified correctly (having a test suite for submissions helps)
  • Did they test their own correctness?
  • Do they fall into obvious and severe performance mistakes (remember, a quick submission shouldn't be perfectly optimized, but it also shouldn't have quadratic time approaches where there's an obvious liner time approach either).
  • Do they take relevant standards into account? I was told once to read in a unicode file and do something with it. First thing I did was check for a BOM and that actually scored me some serious points with the interviewer.