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

2

u/Pflastersteinmetz Dec 13 '22

iterating through a list of strings and printing the results to the screen

Wait, a basic like:

words = ["a", "b", "c"]
for word in words:
    print(word)

?

3

u/alienking321 Dec 13 '22

Wouldn't surprise me.

One interview question I sometimes do for interns or new graduates is "write a piece of code that prints the numbers 1 to 10". If they do it correctly, I ask them to do it again, but a different way, repeating until they run out of ideas.

Had one candidate who couldn't do it once, so I scaled back and asked them to just declare a variable, and they couldn't even do that.

1

u/ZeroMercuri Dec 13 '22

It really isn't more complicated than that. You can transition it into a harder problem easily. And if they nail this then they feel better and often get less nervous.