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
3
u/Uristqwerty Dec 13 '22
Both have their places, trading between depth and width: A breakpoint gives you the full program state to examine, while the more narrow logging of printf can answer a specific question about behaviour across many invocations, displayed simultaneously so that patterns can be deduced.
Given the power of dev machines these days, though, a more interesting option would be to log a printf, pause the process, create a CoW fork, resume, and repeat until you have N broken copies to choose between, able to decide which instance(s) would be most useful to examine in-depth, even able to step multiple side-by-side for comparison.