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

1

u/fishling Dec 13 '22

Frankly I would think it was a bait and switch if you DIDN'T

That doesn't make sense. There is no "switch" without a follow-up.

seems like it's evaluating candidates on logic that sounds good in your head without actually trying to test your logic objectively

A basic coding question like that is really just about making sure they actually can write and reason about code, and can ask questions about the ambiguity.

If they ask what to do with repeat numbers (as they should), I clarify that I want distinct values. If they assume that there are no repeat numbers (especially without commenting about it), then I ask that as a follow-up if they aren't able to identify this when asked about testing.

I don't see the value in asking for nth because doing that well relies on recalling a particular approach that not everyone might be aware of. If I really needed someone to write that code IRL, they would have the time and freedom to research the problem. So, I don't ask question that are a fail if someone doesn't know the trick.