r/programming • • Mar 01 '17

Programmers are confessing their coding sins to protest a broken job interview process. “Whiteboard” interviews are widely hated. They also discriminate against people who are already underrepresented in the field.

https://theoutline.com/post/1166/programmers-are-confessing-their-coding-sins-to-protest-a-broken-job-interview-process
1.0k Upvotes

717 comments sorted by

View all comments

455

u/quicknir Mar 01 '17 edited Mar 01 '17

These articles get written a lot, but it's not really clear what the alternative would be.

One common suggestion is to give people homework assignments, or even pay them to come in for the day and do some work. This is actually often worse along many of the axes discussed in the article; it's even harder to find the time for this, and it even more clearly rewards people who have more time. Having half the time to study is a disadvantage but having half the time to do the actual work is crippling.

Another suggestion is to evaluate people on their past work. But again, most people work for companies where most of their work is proprietary. I can't share any of the best code I've written with my next employer. Forcing people to have active github accounts to get top tier jobs again penalizes people who have less time to a much greater degree.

You can have soft discussions of people's past work, see if their experience seems relevant. But this isn't necessarily successful at filtering people out. People can sound reasonable discussing some topic they've worked on before, and not pass FizzBuzz. And arguably this is even less objective and gives more leeway to the interviewer to simply give the pass to people they gets along with.

Whiteboard interviews are like anything else. They can be better, they can be worse. If your interviewer actually cares that you don't remember how to find the length of a string, they're bad at interviewing. Every interviewer I've ever had, I would simply say (as I'm writing): so I get the length of this string in python, I forget the function, but let's just say s.length()... And that would be it. Nobody would care. That's not the purpose of a whiteboard interview. Similarly, like some of the tweets, I probably couldn't kill a whiteboard test right now. But I know they are tested, so if I was applying for jobs I would brush up on it and be able to do well.

My favorite interview technique would probably be to create a toy problem relevant to my domain that takes say, 1-2 hours to work through. And then pair program with the candidate at a real computer. This has issues too though; it's way more effort to put together, if the candidate doesn't have experience in the specific language(s) you put the test together in, they're boned, etc.

Despite the criticisms, whiteboard tests administered reasonably really aren't so bad, and should have their place:

  1. They're reasonably objective. The problem to be asked can be shared among people in a company before hand. A bar of how long it should take to come up with various solutions, with how many hints, can be put in place. It's not clear that they disadvantage the groups mentioned in the article, any more than those groups are intrinsically disadvantaged by having less time or not having a top tier CS education.

  2. They're reasonably correlated with ability. It's a very noisy correlation, and as you ask harder questions it gets noisier (IMHO), but someone who can't write very basic algorithms either has some issues with their grasp of basic CS concepts (most whiteboard questions should be solvable with no knowledge outside a freshman CS algorithms class) or didn't bother to study at all.

  3. They're reasonably easy to put together. The time of your current developers that already productive is very valuable. At some point you have to balance between spending far more of their time to have a marginally better process.

Like with anything, you have to have reasonable interviewers. There's no way around it. And you need to balance it with different types of interviews.

On a final note I don't really find the the entire discrimination angle very compelling. Neither this article, nor any of this linked, actually give any empirical evidence at all that whiteboard interviews penalize those groups more so than any other interviewing technique mentioned. In fact, it's not even clear if any interviewing technique penalizes those groups at all. For instance, many people have taken the position that the percentage of women at many major tech companies is pretty comparable to the percentage completing CS degrees. If that's the case, it seems like it would be more productive to look at why fewer woman are doing CS in the first place, instead of focusing on the CS-work pipeline.

Edit: I also have to say one last thing. It's common for the programming world, to act like they are unique in this regard, that the interview process is so badly flawed, etc. The reality is that it's almost certainly better than the interview process in most other disciplines. At least in programming you can talk to someone for an hour and see quickly that they are very bad, or very good, or somewhere in between. That is an axis that's simply not available in most professions. There's many jobs where "culture fit", bullshitting ability, and references count for everything.

24

u/beginner_ Mar 01 '17

Whiteboard interviews are like anything else. They can be better, they can be worse. If your interviewer actually cares that you don't remember how to find the length of a string, they're bad at interviewing. Every interviewer I've ever had, I would simply say (as I'm writing): so I get the length of this string in python, I forget the function, but let's just say s.length()... And that would be it. Nobody would care.

Maybe so but why do I need to know bubble sort, merge sort, whatever sort or algorithm by heart? It depends on the task you need to do on the whiteboard. Who actually writes sorting algorithm from scratch?

5

u/D3gr33 Mar 01 '17

why do I need to know bubble sort, merge sort, whatever sort or algorithm by heart?

If it's an obscure algorithm, then you're right, that's a bad way to gauge ability. If it's something that's supposed to be common, any worthwhile software developer should be able to come up with it. If you were asked to implement binary search, it's not a matter of having the algorithm memorized, but rather that you should be able to easily reproduce the code just by knowing the concepts.

It's like asking someone to write FizzBuzz. Just because they can come up with the code doesn't make them a good software developer, but if they can't come up with a solution at all, then they're probably awful at the sort of problem solving skills that software development requires.

Who actually writes sorting algorithm from scratch?

Nobody. But making you write a sorting algorithm from scratch shows that you understand the concepts, which is extremely important.

2

u/beginner_ Mar 02 '17

t's like asking someone to write FizzBuzz

Not really. Because AFAIK they explain to you what the code should do and you just write it which is trivial. Requires 0 knowledge. If they say write bubble sort, then you need to know the algorithm/concept and apply it from there. Maybe we can argue:

"Write any sort algorithm, performance /big O doesn't matter."

Would be much more acceptable.

2

u/D3gr33 Mar 02 '17

Because AFAIK they explain to you what the code should do and you just write it which is trivial. Requires 0 knowledge.

You'd be surprised how many people get stumped by FizzBuzz. It works as an easy litmus test to see if someone actually knows any programming or if they're just trying to con their way into a cushy job. People in interviews for six figure salary software jobs still get asked FizzBuzz, and for good reason. Not disagreeing with you here, just adding to the discussion.

If they say write bubble sort, then you need to know the algorithm/concept and apply it from there.

To me, a big part of this is the conversation. If someone were to reply to the bubblesort question "I'm sorry, but I don't know bubblesort at all, could you maybe describe the algorithm and I can try to write it in pseudocode?", then that would still be a correct answer. I'm more interested in how they respond to the problem than whether or not they actually know the algorithm by heart. The only wrong answer is "I can't do that" without asking for help first.

Asking them to write any sort algorithm at all would also be a good question, though. A good candidate should be able to name half a dozen sort algorithms and describe which ones are good and why, which would definitely end up being part of that conversation.