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

Show parent comments

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?

27

u/yellowjacketcoder Mar 01 '17

If your interviewer wants you to write bubble sort from scratch, they're a shitty interviewer. Nobody does that outside of CS101. They should be asking some reasonably difficult problem like "given a list of students, find the valedictorian and salutatorian" or "write a system to evaluate poker hands" or "Given a formula for creditworthiness, determine how much of a mortgage to offer someone". Obviously nobody is going to write production ready code in an interview but you get to see them approach a problem, where they make assumptions and where they ask questions, write out some simple algorithm, and you have a pretty decent idea of what kind of coder they are.

20

u/cogman10 Mar 01 '17

Yup.

And frankly, a large number of applicants fail fizzbuzz esq problems.

When I interview, I expect almost nothing from my interviewees. When it is a shared coding website, I'll even go in and fix minor syntax mistakes/problems for them to get their code to compile. I don't care at all that they don't know every method that exists in whatever language they are using. Heck, I encourage them while interviewing to feel free to google that shit. (and I let them know if they are using a language I'm unfamiliar with, "hey, I'm googling it now".)

The most important thing to me is always "Can you code". Not "Do you have an encyclopedia of knowledge about the standard library and the syntax tree".

And like I opened up with, many, MANY people fail the most basic of coding problems. Problems that have no tricks, no special knowledge requirements, that are basically "Here are the requirements, write code".

An example problem "Merge 2 sorted arrays". Though with a lengthy description and example input/output. A shockingly large number of people simply can't do that.

3

u/uber_neutrino Mar 01 '17

Yup. Many people fail the absolute most basic requirements. Fizzbuzz isn't a programming test, it's an idiot filter. I would be embarrassed if I brought someone on site who couldn't solve that which is why I phone pre-screen.