by theamk · 5y ago · 0 comments
> Ask candidates to bring code that they’ve worked on, ideally in the language and using libraries that your team is familiar with. [...] Review the code together
For completeness, the standard criticism:
A lot of developers work on proprietary code, and do not have large (or any) open-source presence. It is both illegal and unethical to show proprietary code to others without permission, and such permission is unlikely to be granted. Therefore this test filters out a lot of very good candidates.
It will probably not match language/framework with your company, but something general like "this is a web backend" or "this is a CLI tool" or "this is the script I use to backup my media server" is still more valuable IMO than inverting the goddamn single linked list again.
Most of the people(including myself) I knew only writes professional code for the job itself. We don't hate the job. On contrary, we love it. But we don't write much outside the job itself, maybe for some random exploratory stuff occasionally but that's about it. But it's definitely not a reflection of the quality or the real job.
At least the usual algorithm fundamentals are a predictable and fine metric, and you only need to learn once.
Couldn't disagree more about the metric part - I know lots of people from college who basically saw CS as applied math, who I would say are geniuses at algorithms, but I would hate to work with (because being geniuses, their code is unreadable, their logic is inexplicable to anyone but them, and they are extremely easily sidetracked from the actual business problem at hand).
Compare to what's suggested. No I don't even write much code. What am I supposed to show?
We've hired people like that, and while they require more initial tutoring that someone with 10+ years of programming experience, they pretty quickly understand what the "readable" code looks like, and start producing it.
On the other hand, it is pretty easy to accidentally introduce O(n^2) complexity into the system, and that is not something you can explain quickly during the code review.
(but maybe I am biased by my area, which has lots of data, tight timing requirements and non-trivial algorithms. Perhaps if you are working on web dev or GUI development your requirements are different? but then why do you ask about algorithms in the interview...)
I do.
Chances are you ran his code while typing your comment. Or at least you ran it once or twice today. But I don't think you'll ever be able to see it.
At one of my previous jobs, I noticed the following in hiring:
- The senior engineering recruiter, in HR, thought that there was one standard for whether to make an offer, and that team selection happened afterward. The engineering managers who actually had the power to say yes or no instead thought that there was a hierarchy of quality among the positions offered, e.g. "we won't hire him, but send him over to those morons maybe they can use him."
- Engineering managers did not value open source contributions or non-work projects. I pointed out a particularly impressive piece of C++ on a candidate's github, and was told "how do you know that he didn't just get someone else to do that for him?" The manager cared more about the minutiae of undefined behavior in the iostreams library.
- Interviewers are not willing to take the time and energy it would take to grok someone's code and assess what it says about their value as an employee. The result would likely be subjective anyway. It's not unreasonable to conclude that fair assessment is too expensive. It also makes me wonder whether organizations with excellent code review culture are also excellent at interviewing.
Let's keep giving candidates programming-centered IQ tests, preferring people like ourselves, and occasionally when we wish to signal an interest in balanced racial or gender demographics, a committee will quietly adjust offers to compensate.
Because I am pretty sure this is false. Anecdotally, the women in my group do not have any public code. And web searches found confirmations for this as well [0] [1]
So if you want diversity, stay away from methods like the one described in this post.
[0] https://www.toptal.com/open-source/is-open-source-open-to-wo...
[1] https://www.ashedryden.com/blog/the-ethics-of-unpaid-labor-a...
2. Specifically with respect to race and gender, don't use something to guide hiring that you know skews one way. And don't excuse it by saying "but those other people had the freedom and opportunity". They did, but it still skews, and you still know it does. Don't use signals that are known to be biased.