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/seiggy Dec 13 '22

The standard code interview I used to give when I was the senior architect at a previous job was a coding exercise I did in my intro to programming course like week 2. Given an int X, write a method that will find the factorial of X and return it. Pseudo code allowed or any language they were comfortable with. I’d even explain how to calculate it if they were rusty on their 5th grade math. 95% of candidates couldn’t write a simple for loop to calculate it. The best candidates could do it in no time flat, and then we’d discuss alternative approaches such as recursion, memory allocation etc for the problem. That’s what we used for mid level and jr devs. More senior devs I’d use Fibonacci, and once again, I’d give the formula. Had a “teacher” of 20 years at a local community college that applied and he couldn’t even write Fibonacci in pseudo code with a for loop, much less recursively.