by emseetech · 1y ago · 0 comments
"Writing code is easy, reading code is hard"
An interview based on reading, explaining and critiquing complicated code would give a better window into a candidate's skills than having them solve the kind of coding challenge that can be completed in a short interview.
Also, being able to identify which algorithms would be useful in solving a unique problem and explain what the pros & cons are would go further than implementing an algorithm abstractly.
The guy gave me 30 lines of code, and asked questions about it. Including finding the questionable constructs in it.
Interviewer had a small API. Found missing error handling, missing validations, poor choice of ID column type, missing index for a high volume read query, possible XSS vector.
Loved the format so much I ended up making a small FOSS tool for code review as interview: https://coderev.app
"Imagine that this code was written by a junior dev; review it and tell me how it can be improved, where the problems are, and other feedback".
Or "We just hired a new intern and he pushed this PR. I need you to help me review this code for issues and make sure it's production ready".