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

355

u/[deleted] Mar 01 '17

I dunno why this is still being a discussed. Build a little dummy project with some bugs and about 90% of an improvement implemented. Ask them to fix the bug. You see their debugging abilities. Boom. Next ask them to implement a new feature. You get to watch them discover most of the code already exists, read a little bit to get the gist of what the original developer was trying to accomplish and wrap it up. That covers about 95% of the skill sets I use every day.

107

u/[deleted] Mar 01 '17 edited Mar 01 '17

Only drawback to this is if you ask them to do it on premises with a time limit. To represent our speed we need a familiar ide, familiar keyboard etc.

As long as the interviewer understands this, this type of test is really nice.

Best one is getting paid like 2-3 hours to make a homework assignment though I feel. Never experienced this though so can't comment on it more than that it seems like a better idea.

Cheating might be a problem here. You may need to establish a time, like 1 day limit, where the developer receives the code and must check in the next day. I dunno.

58

u/d4rch0n Mar 01 '17

I don't think there's much point to try to prevent cheating, as much as try to catch them during the physical interview. Have them do it before hand, then when they come in, actually read through their solution and ask them why they did it this way, what the benefits were, what they might have changed or refactored later, etc.

People who cheat probably aren't the type to be able to bullshit that on the spot. The guys who are good enough to do it will likely do it, and you'll see the quality of their work. The guys that can't do it and have to resort to cheating will bomb hard when you dig into it in detail with them.

If they DO cheat, and do fully review it and understand it and ace the talk, hell, maybe they're good enough anyway.

14

u/[deleted] Mar 01 '17

I had exactly this discussion within my company and we decided against it. The problem is that any average skilled candidate can cheat by getting someone higher skilled to solve & explain the solution to him and you can't actually figure out if he solved it himself or just got it explained by someone better.

So we do the testing on the spot, during the interview, with the problem/code at first sight.

0

u/[deleted] Mar 01 '17

[deleted]

→ More replies (1)
→ More replies (5)

25

u/mission_norway_svar Mar 01 '17

I have often given these kind of homework assignments if I need to get a sense of someones programming ability and they don't have any previous code they can provide me with. I usually give them a week to develop something that should take no more than a couple of hours.

The interview after the assignment always has focus on them talking through what they developed, what their thinking was, things they would change if they had more time, etc. So yes, there is a risk of cheating but you can get a sense of that if you get them to explain themselves.

I find this works well because you also get a sense of how good a person is at explaining technical things; and explaining their thinking process - both of which are important when working in a team.

18

u/BobNoel Mar 01 '17

I've done more than a few of these. They always look so simple. 6 hours later...

6

u/mission_norway_svar Mar 01 '17

You are correct; and I share this worry.

This is why I much prefer a person having some code they can share with me rather than me setting an assignment. I do worry that although I say this should take a couple of hours, it really does vary, not everyone has a couple of hours, and there is the temptation to spend several days working on it because you want to impress.

An alternative I have used is pair-programming, but that also requires a commitment of a few hours.

6

u/BobNoel Mar 01 '17

I've had interviews where I was asked to do some coding and given a limit of an hour or less. It would be impossible to complete the assignment, but that combined with a short conversation was enough that the interviewer could get an idea of competency. Those coding tests are my favourite.

On the idea of "because you want to impress"...the last time I did one of those I spent two days on what should have been a few hours. It was pixel-fucking-perfect and was the only perfect submission the interview said he had received, but sometimes it's really hard to not make just...one....more....tweak...when there's time.

→ More replies (1)

4

u/foobar5678 Mar 01 '17

I need my hot keys and my bash aliases. Without them, I'm useless.

→ More replies (2)

22

u/mb862 Mar 01 '17

My company does something like this. We present interviewees with our code, showing them a subset, asking them to figure out what it does.

During my interview, I found a bug.

→ More replies (2)

20

u/mbcb Mar 01 '17

I had a great interview experience recently: write an app at home limited to three hours. Then in the face to face interview started with paring. I was told that the requirements had changed and had to update one of the calculation classes. Updated it, tested it and uncovered a bug. Debugged, fixed. Updated tests which all took about an hour. Then some talks with devs which were not very technical and mainly to get to know me.

The programming was to see how I actually code and work. The interviews were for all of us to get an understanding of each other. So much more informative than a white board test

36

u/BlockedByBeliefs Mar 01 '17

But this is crap. Sorry but I don't have time to write a sample app for every job I apply to. If the people you trust to interview aren't capable of telling if someone with my XP knows their crap by taking for 40 minutes or not it's prolly not somewhere you want to work. Actual programming skills are realistically not that big a part of the job. Sounds counter intuitive but it's true. Maybe this exercise makes sense for younger guys but I straight up tell people who make these requests that I'm in discussions with 10 to 15 different people at once. Interested if you still would like to chat buy I don't have the time to do this right now. If u think it over it's not really a reasonable request.

24

u/phurtive Mar 01 '17

Agree, programmers should use portfolios like artists. You don't ask an artist for a free painting pre-interview, you get their portfolio. Then in the in-person you can discuss the portfolio projects to make sure they really wrote them.

16

u/BlockedByBeliefs Mar 01 '17

Pretty much. But that's tough for my work since sharing my prior work would be breaking the law. Heh.

→ More replies (1)

9

u/rivade Mar 01 '17

This doesn't work great if you work at a dev shop. I've shipped plenty of products, but almost all of them, I am under NDA for.

→ More replies (2)
→ More replies (2)

8

u/mbcb Mar 01 '17

I agree with you. If you're really on the hunt for a job then they could and all were asking for 3 hours then you could be looking at 50+ hours. Luckily for me I was specifically after this role so it was my only focus - mid level too.

4

u/BlockedByBeliefs Mar 01 '17

Yea exactly. 1 I have my current job. 2. Looking for work is taking up lots of time as it is so now I'm working what. 50 or 60 hours a week if not more? And u want me to put in 3 hours on a thing that anyone doing will actually put way more time into to compete? Naw. Let's chat and I'll see after if I have the time for that. I'm pushing up on 20 years in the industry tho so I'm in a different position than a new grad. Young people have to prove different things.

→ More replies (2)
→ More replies (11)

6

u/Lashay_Sombra Mar 01 '17

Wrong way around really. Should be

Stage 1: Normal non technical interview to determine who you are work wise, are you a good fit at personal level so forth, hell do you even still want to work for us after meeting us

Stage 2: Tests like these.

That way, not wasting candidates time on tests or homework assignments when they are going to fail what in some ways is the more important aspect of the role, people feeling they can work with you, especially as they might be interviewing for multiple jobs giving such tasks.

→ More replies (3)

6

u/youlleatitandlikeit Mar 01 '17

This is what I'd do if I was ever in the position of hiring someone: I'd give them a card with 4-5 problems and then say, "pick one of these problems you don't already know the answer to, then solve it using StackOverflow and/or Github". Then I'd carefully watch what they do.

Do they just copy and paste the code? Or do they read it to figure out what it does? When they go to Github do they read through the docs to figure out the features? Do they check out the source code?

I might even give them a few links they can use for the problem, including some good and some bad code and see whether they just choose the first one or make the effort to choose the best one.

Unless you're looking at embedded devices or very high-end programming, most coding today is made up of logically understanding what data you need to gather, how it needs to be delivered, and how to organize the systems that manage that functionality. You're basically creating the glue between various interfaces: databases, clients, APIs, and multiple data transferring protocols.

Making use of existing libraries isn't a flaw it's a virtue. What separates good programmers from bad is how well you make use of these libraries but almost more importantly choosing the right one from the beginning — otherwise at some point you're going to need to choose a new library and rewrite your code to match it.

5

u/scherlock79 Mar 01 '17

I've been doing similar sorts of tests for years. We have a machine setup with the major IDEs so they can just use the one they like. It is a great test. Our interview is 4 hours, 3 hours for coding (though only 1 to 2 hours is actually needed) and an hour for personality.

It works great and I'd say about 95% of people we hire using this technique turn out to be good fits long term.

8

u/digital_cucumber Mar 01 '17

Even better, have a "pair programming" session with the candidate to solve some practical-ish problem.

The best onsite interview I ever had proceeded as following:

  • Half a day of "pair programming". You get a PC (right in the middle of the office, next to the people working) with all the tools installed, in this case it's Visual Studio and the company's product SDK, also a project scaffolding with the stubs to fill in with the code. Also you get several (real world-ish) problems to solve, with increasing complexity. No Internet access, so you have to derive the math yourself, if needed. It was doable, also you get hints if you are stuck. And a piece of paper with a pen. You are generally left alone to write the code, but the guy would regularly pop up to ask how it goes, and discuss things/problems/questions in a friendly, pair-programming style of way.

  • A chat with a couple of managers, your normal "behavioral" interview

  • And then comes the "presentation". You are asked in advance to prepare a talk about anything at all that you consider cool that and have done before (well, it does have to be somewhat relevant to the job, of course). Then a bunch of programmers from the office (whoever are interested, it was about 10 of them) would pop up and you have to show the presentation to them.

To me it was an eye-opening experience.

0

u/[deleted] Mar 01 '17

[deleted]

6

u/Lashay_Sombra Mar 01 '17

And it sounds really exhausting an entire day in the company where you have to code, debug the system, meetings with managers, and then prepare a talk and then present it.

You want that much time and effort from me you better be paying me for it.

→ More replies (4)
→ More replies (12)
→ More replies (23)