r/programming • • May 09 '15

"Real programmers can do these problems easily"; author posts invalid solution to #4

https://blog.svpino.com/2015/05/08/solution-to-problem-4
3.1k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

39

u/NoMoreNicksLeft May 09 '15

I'd certainly like to discourage the concept that you can test for "programmer-icity" with what amount to stupid riddles.

"Aaaaaaaaaaand what! is your favorite color?!?"

An interview is almost certainly the most stressful situation a person will ever be in that doesn't risk actual death. You'll never truly see potential by throwing these dumbass fucking tests, nor can you really uncover any of the other personality flaws that might make someone unhireable.

They exist because a certain class of middle managers like to think they're more clever than they are, having read all the management books you see on their shelves, and so they make up some tests ("if she weighs the same as a duck!") that don't actually have any empirical backing at all.

Has anyone ever done a study of the productivity/quality/creativity of the code of people selected by succeeding at these tests, vs. those who failed them (and the hiring process)? If no one has, why should any sane person believe that the tests have any validity?

6

u/jimmpony May 09 '15

An interview is almost certainly the most stressful situation a person will ever be in that doesn't risk actual death.

This is ridiculous hyperbole. There are far more stressful non-lifethreatening situations than a coding interview.

→ More replies (10)

4

u/dccorona May 09 '15

I don't know if there's external ones, but Google, Microsoft, etc. almost certainly have all kinds of internal studies around their interview processes (after all, Google changed theirs because of research they did). People sit on reddit and complain about interview processes like that all the time, but ultimately all they have is their own anecdotal personal experience, which isn't worth much compared to massive companies who have spent millions auditing their interview processes and have decided to do it this way.

2

u/chriswen May 10 '15

"Aaaaaaaaaaaaaand what! is the capital of Assyria?!?"

1

u/[deleted] May 10 '15

Hello, interviewing developers is roughly 70% of my job. I never give them tests or anything of the sort.

I ask them for read access to their public repository(-y+ies). If they don't have a public repo, I give them a pass. If they do, I look for a number of things, but most importantly, frankly, is adherence to some kind of coding best practice or standard.

If I find it, they're hired. You wouldn't believe how many programmers don't give a single shit about other people easily maintaining their code. If you want to be a code cowboy, do it solo. (and some of them are very successful thus, more power to them)

-4

u/IM_YOUR_DADDY_AMA May 09 '15

What would you propose is a better way to screen new hires?

19

u/NoMoreNicksLeft May 09 '15

I am not obligated to come up with an alternative. The idea that I should have an alternative is a bad one, it implies that it's better to have a worthless test than none at all.

You might as well flip a fucking coin, if you think like that. At least be honest to yourself, and embrace being random and arbitrary.

6

u/Gotebe May 09 '15

implies that it's better to have a worthless test than none at all

The test is not worthless. Life is all in shades of gray, only fools deal in absolutes.

No test at all is likely to have 0 value ("I know, let's pull a CV out of a hat, that's our hire!").

A test needs to be worse than a random pick for what you say to make sense.

7

u/NoMoreNicksLeft May 09 '15

No test at all is likely to have 0 value

Yes. This is why I recommend that you test all prospects by asking them to stack as many teacups on their heads as they can while standing on one foot and humming the national anthem of Belgium.

If they do not know Belgium's national anthem, or fail to stack fewer than 3 teacups, how can they possibly hope to write the high-quality code that your zebra pet food startup needs to build a market and become a billion dollar company in the next 6 years?

After all, no test is worthless.

A test needs to be worse than a random pick for what you say to make sense.

Typical managerial thinking. Tests do not need to be worse than random chance for that to be true.

Tests are not free.

  1. They require time and effort on the part of existing employees.

  2. They have a PR cost associated with them. Like when one of your middle managers goofs and gets made fun of on reddit.

  3. They discourage those who might be a good fit but for lack of confidence in succeeding at stupid fucking tests.

  4. The inherent confirmation bias (everyone you currently employ passed something similar, obviously) slowly accumulates, becoming more virulent as the years pass.

  5. They steer corporate culture in ways that you can't even imagine.

And that's for a test that is no worse than random chance.

2

u/_cortex May 09 '15

I thought the suggestion of someone else in this thread was pretty good (and addresses at least some of your problems): have the interviewer and the interviewee solve the problem together, i.e. the puzzle is prepared by another employee. Then the task wouldn't be focused so much on a solution, but how well you work together as a team.

-2

u/Gotebe May 09 '15

Your first argument is a strawman and the second a false dichotomy.

→ More replies (9)

1

u/[deleted] May 13 '15

Life is all in shades of gray, only fools deal in absolutes.

He says, while dealing in absolutes.

2

u/IM_YOUR_DADDY_AMA May 09 '15

So is it better to have no test? Are you / have you ever been in a hiring position? Honest questions.

1

u/NoMoreNicksLeft May 09 '15

So is it better to have no test?

It's better to have a fake test, that doesn't provide results better than random chance?

4

u/HahahahaWaitWhat May 09 '15

It might even provide worse.

2

u/IM_YOUR_DADDY_AMA May 09 '15

Got it. Hire randomly. Thanks, I'm new to the industry so I'm still learning.

0

u/NoMoreNicksLeft May 09 '15

Got it. Hire randomly.

You're already doing it, and too stupid to see that's what it is.

-1

u/IM_YOUR_DADDY_AMA May 09 '15

Hey now, I was thanking you. It'll save so much operational cost knowing I can literally hire at random because the entire screening process is useless and I'll get the same random results whether I screen people or not. Thanks for sharing your wisdom.

2

u/happymellon May 09 '15 edited May 09 '15

Our best hires have always involved essentially hiring someone for a 1 week contract, they get paid and we get to see exactly how they interact with other team members. You can normally tell after a week if someone has no idea what they are talking about with a fair degree of accuracy, and they can tell if they like the other team members.

Asking stupid interview questions doesn't resolve any questions on competency.

2

u/1_RAPED_YOUR_DAD May 10 '15

In-demand coders will never agree to spend a week at your office before getting an offer.

1

u/hunyeti May 09 '15

that's actually true.

2

u/pachanka May 09 '15 edited May 09 '15

The idea that standardized testing is flawed is not new 1 2 3, the "better way" involves experimental design, and is expensive to produce, which is why examinators resort to things like "5 questions any engineer can solve".

2

u/IM_YOUR_DADDY_AMA May 09 '15

My point is it's not useless to use these types of problems to get an idea of an applicant's problem solving skills. Not to imply that the decision to hire a candidate should be based on that alone. It's just ridiculous to write off something as pointless when it has clear and obvious value. I agree that there are probably shitty hiring managers out there doing what you describe but that doesn't render the entire process of testing invalid.

→ More replies (2)

1

u/potatolicious May 10 '15

Here is a non-exhaustive list of things that IMO help (and I try to practice as much as possible):

  • do not test for proxy signals when the real thing is testable. We have this weird obsession with figuring out what skills/abilities indicate programming ability, when programming ability itself can be judged directly - CS101-style questions, puzzle-solving questions, all of them exist under the assumption that they indicate programmer ability... Just test their programming ability already!

  • stop whiteboarding. Just stop. Writing code on a whiteboard is not representative of programming. Everyone hates it - the candidate hates it, the interviewer hates it, and we all do it because that's the way it's always been done. Stop. Just stop. Give your candidate a laptop with a compiler/interpreter/IDE as appropriate given the language/framework/tools you're testing for.

  • work samples are your holy grail. If they have side projects, evaluate their code. Give them actual programming exercises that are directly related to the role being interviewed for. If they are interviewing to be a mobile developer, have them build a small mobile app that touches on important topics (network access, caching, asychronous asset loading, etc). If they are a backend developer, have them set up a simple web service that touches on important topics (database access, scalability, thread safety, etc). Focus on producing executing, real code that are as close to what the job requires given the time constraints of an interview. It's insane that most programming interviews are conducted without getting the candidate to write a single line of executable code.