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

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.

1

u/SanityInAnarchy Mar 03 '17

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

No, that one is a statement of fact. If you can't solve FizzBuzz, you're not a programmer. It's as much name-calling as it would be for someone to tell me that I'm not a plumber. I mean... I'm not.

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...

Well, mostly because we don't have blog post after Reddit post after industry pundit all saying that it's an unfair test because they don't remember how to print numbers properly, or about how much of a gotcha question there is because you might leave a trailing space. Nobody opines about how this has nothing to do with your day-to-day programming where of course everyone uses a proper logging library and nobody prints stuff to standard output.

Because no one's actually suggesting that we use this question to screen people -- people suggest FizzBuzz for that.

  • 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?

The claim is that it's super simple and easy if you're a programmer. The idea that 1 in 200 people who apply to programming jobs can't actually program actually has a plausible explanation: The people who can program find jobs quickly, and the people who can't take longer to find a job and are more likely to lose it. So of course the pool of applicants is full of people who can't program, even if most working programmers would find this trivial.

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...

How about this: You ask the interviewer "What do you mean by 'is divisible by'?"

This is what I mean by "high school algebra" -- everyone should know that, but fine, it's a bit of trivia related to the problem definition, and it's expressed in an equation of the sort that you'd first encounter in high-school algebra. But then...

...you think most programmers should need to look up an algorithm for calculating this on the Internet? Really? You couldn't get from "x is divisible by y if there is a number z such that zy=x" to an implementation?

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.

Sure, the whiteboard situation is an issue, which is why we're talking about this in the first place. But I think if you have trouble answering FizzBuzz in front of a crowd, in an important interview situation, when you've never seen it before... you're going to have a hell of a lot more trouble with any actually difficult problems anyone throws at you. This isn't an indictment of FizzBuzz so much as an indictment of whiteboarding at all.

It's like every puzzle problem ever. Answering why manhole covers are round could take forever...

Either you know the answer to that one or you don't. There's no logical process by which you can get from the problem definition to an answer.

With FizzBuzz, there's absolutely a process.

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

If you don't know modulus, it becomes an algebra problem.

It's a Sheldon to go around grandstanding about how you're smart and everyone is below you over absurd things.

See, you go on describing a stereotype that doesn't actually fit. This isn't about me, and you're only making it about me because it's easier for you to attack me than to defend the notion that someone who can't solve FizzBuzz can still be a programmer. I mean, roughly half your post is attacking me at this point, instead of discussing the actual issue.

And you're clearly smart enough to have something to say about the issue, so why do this? Projection, maybe? You seem a little eager to show how how you're better than me because you're not a "Sheldon".

99% of webdev work is either simple straightforward logic (if/ifelse/else), or illogical horrible problems (why is IE not rendering this right?)

I'm still amazed you think FizzBuzz is in the "trying to trick you" category, and not the if/else category:

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.

No, it's not meant to be that at all. It's meant to be trivial if you know the basic constructs of your favorite language, and still easy even if you don't.

1

u/GhostBond Mar 04 '17

Google says the definition of plumber is "a person who installs and repairs the pipes and fittings of water supply, sanitation, or heating systems". Does the definition of programmer include language that says "knows how to solve fizzbuzz"? No. It is not a "fact", it is an opinion, and calling someone "not a fucking programmer" is certainly not language used for logical purposes.

I could respond point by point, but this gets long and pointless.

There is one thing though I can logically point at here.

It's meant to be trivial if you know the basic constructs of your favorite language, and still easy even if you don't.

Even the original author did not make the absurd claims that it's "trivial" and "easy":
https://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/

Most good programmers should be able to write out on paper a program which does this in a under a couple of minutes.
Want to know something scary ? – the majority of comp sci graduates can’t. I’ve also seen self-proclaimed senior programmers take more than 10-15 minutes to write a solution.
I’m not saying these people can’t write good code, but to do so they’ll take a lot longer to ship it. And in a business environment that’s exactly what you don’t want.
This sort of question won’t identify great programmers, but it will identify the weak ones. And that’s definitely a step in the right direction.

I could go through why I disagree with some of his claims, but he doesn't even make the absurd claims that it's "easy" and "anyone" can do it.

One more thing - if the problem wasn't an ego investment, people would simply suggest you solve the issue by putting a note about the modulus operator at the bottom of the problem. That's a genuinely easy way to solve it. But people invested in feeling smart don't like it, because it makes the problem easier and so they aren't as smart for knowing it.

1

u/SanityInAnarchy Mar 04 '17

Google says the definition of plumber is "a person who installs and repairs the pipes and fittings of water supply, sanitation, or heating systems". Does the definition of programmer include language that says "knows how to solve fizzbuzz"? No.

Fizzbuzz is a programming problem, not a plumbing problem. I think it would be fair to say "If you can't use a wrench, you're not a plumber." But I don't even know enough about plumbing to know what the best analogy is there.

I don't see the point in continuing this when you're going to be that deliberately obtuse. It seems like your problem is the word 'fucking', and if I'd known that earlier, it would've saved us both some fucking time.

Even the original author did not make the absurd claims that it's "trivial" and "easy":

He did call it "scary" that most comp sci graduates can't solve it. He also, a line or two before your quote, calls it a "tiny" problem.

I assume he didn't bother pointing out that it's easy because that's obvious. He focused on the more controversial claim (at the time): That there are many people who can't solve it.

One more thing - if the problem wasn't an ego investment, people would simply suggest you solve the issue by putting a note about the modulus operator at the bottom of the problem.

I might not actually mind that, but I don't think it's necessary. I'd prefer just including a description of "is a multiple of".

But then, I'm not entirely opposed to the bigger problems, where you'll have to ask for clarification of many more things than this. To me, FizzBuzz is a screening question -- if the candidate finds it easy, you move on to classic CS problems like linked lists or sorting, and the candidate had better be able to ask questions like "I'm pretty sure the language / standard library has an easy way to solve this part of the program, can I just assume a function that does X?"

Whereas if they fail at FizzBuzz, they're almost certainly going to fail at the bigger problems, but it only took you five minutes to find that out.

1

u/GhostBond Mar 04 '17

Your post is what I expected when it's about ego. That's not meant to be a dig or meant to be an insult (no one else is reading these old posts at this point) - the "well...I could put the modulus operator on there but...uh (brain spins) it's, uh, not necessary so I won't". Because (reasons that likely involve the brain realizing it doesn't make you feel so smart when everyone can actually do the problem) we're not going to put an "irrelevant" piece on the problem that would actually move it to being an easy problem.

There is 1 thing we agree on - I see nothing to be gained by my and probably not you in going on with this back and forth for either of us.

Whereas if they fail at FizzBuzz, they're almost certainly going to fail at the bigger problems, but it only took you five minutes to find that out.

If by bigger problems you means college theory problems like linkedlists and sorting, possibly. But after all this fire and motion, you still haven't tested whether they've actually done any of the things on their resume or whether they just copied someone else's resume off the internet. You don't know if they're a new college grad with no experience, or whether they actually have the experience they need in html, javascript, spring, hibernate, tomcat, etc. If you're in web dev, you've just stressed them out and tested them in things they'll almost certainly never use.

1

u/SanityInAnarchy Mar 04 '17

...reasons that likely involve the brain realizing it doesn't make you feel so smart when everyone can actually do the problem...

See, I'm guessing you'd still find a large number of applicants who can't solve the problem anyway. Even if this is an ego thing, it's not like my ego would be threatened by adding your suggestion -- and I did say I might not mind it. But I'd also still happily fail someone who can't translate the definition of "is a multiple of" into code, even without modulus -- if you can't do that, you're not going to be able to handle real customer requirements any better, and you're probably going to fail a later test.

So this is why I don't think it matters so much -- adding the definition of "is a multiple of" is a good idea, because now no one can accuse this of being a "trick question" -- well, you might anyway, but it's no longer a question that relies on trivia. But adding that last step of "Oh, and by the way, it's '%'" doesn't actually make it a better filter -- any candidate who would pass with your footnote but not with mine is still going to fail a later test anyway.

But after all this fire and motion, you still haven't tested whether they've actually done any of the things on their resume or whether they just copied someone else's resume off the internet.

At this point, how much does it matter? If they've shown that they can write code, and that they have a good fundamental grasp on basic data structures and algorithms, then the only question is how long it'll take them to ramp up on the specific frameworks and libraries they're lacking. Knowing how to use Hibernate, once you know how to program, really is largely a question of StackOverflow and API references.

→ More replies (0)