by BurningFrog · 11y ago · 0 comments
I had one interview where the interviewer simply showed me a printed page of code, and asked me to talk about it.
I spotted a few problems and debatable constructs, and we had a good 3 minutes discussion.
Since at least I spend more time reading code than writing it, that felt like a truer test of my abilities than many of the coding tasks.
PS. Yes, I got the job.
I'm definitely stealing this trick.
(OPC also refers to one's own code that when you can't remember wtf you did and the comments aren't useful)
The problems were those you see daily in production code. Misleading names. Duplicated constants. Overly complex constructs. Off by one errors. Maybe a resource leak when exceptions are thrown. Etc.