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.

5

u/KagakuNinja Mar 01 '17

There are books such as Cracking the Code Interview that breakdown hundreds of sample code challenges into categories, and provide a flow chart for how to analyze a code challenge and quickly pick one of about 8 basic strategies for solving the problem.

In other words, it is a way to cram for whiteboard challenges. It is necessary to do this kind of cramming, because solving whiteboard problems in a way that will impress the typical interviewer is significantly different than how we write actual code on the job.

Crammers will review all the basic algorithms of sorting, searching, etc; as a result, they will perform better if you ask such a question. If you ask a "custom problem", then they will apply the flow chart and again, perform better.

2

u/D3gr33 Mar 01 '17

I've read Cracking the Coding Interview before, and it definitely helped me in interviews (including the interview for the job that I'm supposed to be doing right now). The way that it helped me prepare for interviews, though, was by making me a better developer.

Knowing how to solve algorithmic questions makes you a better software engineer. Being able to clearly explain algorithm design by drawing things on a whiteboard is a crucial skill to being able to work with other developers. And being able to explain what you did in code and why is absolutely an important skill for anybody that works on a team.

A lot of companies definitely put too much stock into whiteboard and algorithmic problems. And a lot of companies do it completely wrong where they make it about rote memorization of specific algorithms. But if I were hiring developers, I would definitely pick the guy that can explain an algorithm on a whiteboard and answer questions about it over the guy that stands there muttering 'um' because he can't explain how he would approach an algorithmic problem.

2

u/thedufer Mar 01 '17

If you ask a "custom problem", then they will apply the flow chart and again, perform better.

So your problem with it is that people who studied and got better at the job I want them to do will outperform people who don't? I...don't see why that's bad.