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

65

u/peatoast Mar 01 '17

I've interviewed people and gave them white board questions... usually they get it wrong and that's fine. What I am really looking for is how they approach the problem and not whether they wrote the correct answer or not.

14

u/phurtive Mar 01 '17

I never require people to do whiteboard crap. If you want to test problem solving, better to do it how you would on the job: verbally collaborate.

49

u/peatoast Mar 01 '17

We use whiteboard a lot in meetings though.

9

u/AmalgamDragon Mar 01 '17

To write real code on?

30

u/peatoast Mar 01 '17

Have you heard of planning and design phases? Yes, those times.

15

u/JoCoMoBo Mar 01 '17

If you are writing code on a white-board in a meeting then I don't want to work for you. It's the worst way of trying to implement something. I've found it's usually done by people showing off they can write correct code on whiteboards. I've never implemented something 100 % the same as something written on a whiteboard.

Now, if you are explaining something to someone using functional blocks then that's fine.

27

u/AmalgamDragon Mar 01 '17

So during the planning and design phases, you write real code on a whiteboard instead of actually planning and designing?

Never seen planning and design phases were that happens (or code being written on a whiteboard outside of an interview).

14

u/phurtive Mar 01 '17

Yeah they have 8 people gathered around the whiteboard, helps to spot errors. It's called octoprogramming. "You missed a semicolon"

2

u/phurtive Mar 01 '17

Non sequitur

4

u/devraj7 Mar 01 '17

What's crap about the white board? You think a piece of paper is better?

8

u/gyroda Mar 01 '17

Well,for my handwriting, yes. I can't write on a whiteboard to save my life,much less a wall mounted one.

2

u/Godd2 Mar 01 '17

To be fair, you've probably spent a lot more time practicing your handwriting than practicing writing on a whiteboard.

If you dedicate 10-20 minutes a day for a couple weeks, your whiteboard writing skills will surely improve.

0

u/SanityInAnarchy Mar 01 '17

Please at least do FizzBuzz if you're going to do that, though. Way too many people can talk a good game without having the first clue about actual programming.

1

u/phurtive Mar 01 '17

That's true, but those should be weeded out in the phone screen.

1

u/GhostBond Mar 02 '17 edited Mar 02 '17

FizzBuzz is a question designed to haze you. If you haven't seen it before what it really tests is whether you remember there's a modulus operator, and whether you can parse it's deliberately tricky language. But mostly it just takes if you've seen it before.

There's a reason they always do a doublethink thing with it - "it's super easy and also most people can't do it!".

1

u/SanityInAnarchy Mar 02 '17

"I can't remember modulus" is a bullshit excuse. Even given the time constraints, if you fail FizzBuzz because you can't remember modulus, then you deserve to fail FizzBuzz. Not because you can't remember modulus, but because you don't know how to break a problem down into manageable chunks, or how to generate even the outline of a workable program from a description. In other words, because you're not a fucking programmer.

1

u/GhostBond Mar 02 '17 edited Mar 02 '17

Ok Sheldon.
https://www.youtube.com/watch?v=xLP8dXJtniw

That the poster you linked to need to write 3 pages to claim it's "easy" speaks for itself.

P.S. Anyone who's actually a programmer knows that they can't just fudge parts of the problem in real code. People writing real code knows that every part of it has to work. It doesn't have to be perfect or neat or efficient, but it does have to work. You can't just throw in magic functions where you hand wave that it does something and have it work.

1

u/SanityInAnarchy Mar 02 '17

That poster was me, and I'd appreciate if you'd actually read it, instead of literally calling me names. Your P.S. makes it a little too obvious:

You can't just throw in magic functions where you hand wave that it does something and have it work.

Of course, which is why it's full of three pages of the alternative ways in which you might write that "magical" isMultipleOf() function, only one of which involves modulus. They're not perfect, they're not neat, they're mostly horribly inefficient, but they all work. This was kind of the entire point of the post.

And of course, anyone who's done whiteboard interviews knows that it's not the same as "real code" -- a partial solution may not actually compile, but may be sufficient to demonstrate whether or not the candidate knows what they're doing.

P.S. You realize you just tried to use "nerd" as an insult in a programming forum, right?

1

u/GhostBond Mar 02 '17

You threw out the name-calling, don't pretend I was the one doing it.

Everyone knows the Sheldon stereotype, very smart in some ways, very dumb and annoying in others. Constantly trying to put down the people around him for not knowing things that he thinks proves he's "smart" and everyone else is an idiot, while no one else cares or agrees.

I'm not interested in getting into your sheldon-esq ego blamefest where your definition of easy is basically "if it's possible to do at all under any circumstances".

FizzBuzz is designed as a trick question. Your ability to solve it quickly is almost entirely based on whether you've seen it before, and has little or nothing to do with what you do on a daily basis as a programmer.

1

u/SanityInAnarchy Mar 03 '17

You threw out the name-calling, don't pretend I was the one doing it.

...huh? You literally called me a name. I didn't call you a name. How the hell am I somehow the one name-calling?

You then went on to defend this as a stereotype, as if that's a good thing for you to stereotype me. Really?

Constantly trying to put down the people around him for not knowing things that he thinks proves he's "smart" and everyone else is an idiot...

Except FizzBuzz isn't about proving who's smart. It's solely for weeding out people who can't program, and it does that very well. If this was about me and my ego, I'd be talking about actually difficult problems, I wouldn't be talking about one that any competent programmer can do in their sleep.

I work with competent programmers, so no, I'm not constantly trying to put them down by proving they can't solve FizzBuzz, because of course they can solve FizzBuzz!

I'm not interested in getting into your sheldon-esq ego blamefest where your definition of easy is basically "if it's possible to do at all under any circumstances".

I think this is easy because it's quite easy to do, even in the time span allowed, given only a basic knowledge of programming and high school algebra.

I don't know how you get from there to "possible to do at all under any circumstances", and I certainly don't get how expecting programmers to know basic high school algebra qualifies me as a "sheldon".

FizzBuzz is designed as a trick question. Your ability to solve it quickly is almost entirely based on whether you've seen it before, and has little or nothing to do with what you do on a daily basis as a programmer.

You don't, on a daily basis, translate English requirements into code, break larger problems into smaller ones, and apply algebra?

I mean, that's what programming is. If you don't do these things on a daily basis, then what the hell do you do all day? Copy and paste code from StackOverflow?

1

u/GhostBond Mar 03 '17

...huh? You literally called me a name. I didn't call you a name. How the hell am I somehow the one name-calling?

You wrote "In other words, because you're not a fucking programmer." That's calling someone a name plus something.

Except FizzBuzz isn't about proving who's smart. It's solely for weeding out people who can't program, and it does that very well. If this was about me and my ego, I'd be talking about actually difficult problems, I wouldn't be talking about one that any competent programmer can do in their sleep.

Let's a problem that actually meets that criteria of being super easy and that programmers can "do in their sleep":

  • Write a loop that prints the numbers from 1 to 100 with a space in between each number.

Do you write long reddit or blog posts that you can do it? No. Because it's actually easy. Do you write 3 page essays on alternative ways to do it? Unlikely, because again it's actually easy and anyone can do it in their sleep. Do you have an interviewee to do the problem in front of your boss? No, again, because it's actually an easy problem anyone can do in their sleep, and you don't want to risk not looking smart.

You wrote long essays on fizzbuzz because you feel cool/smart/mentally stimulated showing off. That doesn't happen with actually easy problems.

The claims from FizzBuzz always follow an IAmSoVerySmart pattern:

  • Claim it's super simple and easy

  • At the same time most people can't do it. What was the codinghorror claim, that only 1 in 200 people can answer the question?

It's a trick question. It's meant to be annoyingly hard to figure out if you haven't seen it before, but easy after you understand it.

I work with competent programmers, so no, I'm not constantly trying to put them down by proving they can't solve FizzBuzz, because of course they can solve FizzBuzz!

Most programmers can solve FizzBuzz given plenty of time and an internet connection (even let's say they can't search for solution to it, but then can google for how to find if a number is divisible by another number and come up). That's completely different than trying to do it on a whiteboard, in front of a crowd, in an important interview situation in a few minutes when you've never seen it before.

There's one thing that can make it an easy problem - if you've done it before. It's like every puzzle problem ever. Answering why manhole covers are round could take forever (without google) or you could think of the answer right away, if you've never run across it before. But once you know it it's easy.

I think this is easy because it's quite easy to do, even in the time span allowed, given only a basic knowledge of programming and high school algebra.

Now you're just throwing meaningless words in there, fizzbuzz is not an algebra problem.

I don't know how you get from there to "possible to do at all under any circumstances", and I certainly don't get how expecting programmers to know basic high school algebra qualifies me as a "sheldon".

It's a Sheldon to go around grandstanding about how you're smart and everyone is below you over absurd things. That typifies the sheldon character - constantly trying to tell everyone around him that they're not as smart as him. Mostly he's just annoying because his criteria is so absurd. Only Sheldon thinks Howard is below him because he's an "engineer" or that his status or intelligence is completely dependent on which degree he holds. In a few ways Sheldon is very smart, but in a number of other areas he's an idiot (mostly social things).

But mostly I'm referring to his instinctive response to try to claim he's better than everyone without actually being able to understand why the other person's thoughts or words are also smart.

You don't, on a daily basis, translate English requirements into code, break larger problems into smaller ones, and apply algebra?

Not trick problems, no. Becoming a Sheldon means everyone you work with will find you annoying, and your over-analysis will usually both be wrong and hurt you socially with the people you have to work with.

There's 2 good approaches to english requirements:

  • Ask them for clarification if there's any ambiguity, but you have to be really nice about it and not condescending.

  • Simply code the simplest interpretation, send it back to them, let them see if it's what they want.

There's no faster way to alienate the people writing requirements than to come up with some convoluted over-analysis of what they wrote.

I mean, that's what programming is. If you don't do these things on a daily basis, then what the hell do you do all day? Copy and paste code from StackOverflow?

99% of webdev work is either simple straightforward logic (if/ifelse/else), or illogical horrible problems (why is IE not rendering this right?) who can only be solved by both thinking and also illogical trial and error (why does this pane look fine in chrome but not ie?). Neither one benefits from a "trying to trick you" puzzle problem mindset.

→ More replies (0)

1

u/d_wilson123 Mar 01 '17

I feel like people really don't understand the purpose of the whiteboard. If you don't know how to open a buffered IO stream in Java off the top of your head that is fine. I'll accept "open a file" as an answer. But I intentionally give questions that require you to clarify requirements and require you to reason through. I feel like many people who fail the whiteboard interview just simply don't understand the purpose. It isn't a test on your syntax knowledge or reciting off a well known algorithm. It is to test your capacity for reason.

1

u/peatoast Mar 01 '17

Exactly.