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

10

u/WTFwhatthehell Mar 01 '17 edited Mar 01 '17

Honestly I don't get the issue they're taking with it. Hell they talk about rote learning when that's the worst possible option.

I Google lots of shit. I've never pretended otherwise to anyone in any interview. If someone asks me to write code on paper I say " my syntax is a bit poor off tge top of my head, pseudocode ok?" I avoid rote learning code because that's a stupid stupid thing to do. So much so my first coding teacher specifically advised against it.

They challenge me to write a function to do x? I think about it for a minute, ask if I should optimise for anything then depending on the answer give some solution. chatting away while I do, maybe mentioning the steps i'd follow to search for an optimal algorithm if I had access to the net.

They're trying to make sure you have a reasonably logical problem solving process. That you don't lock up and cry if you can't think of the perfect sollution.

I've never failed a technical interview.

If the only way you can write fizz buz or find a route to a node in a graph is by rote memorizing code then the tests are succeeding if they filter you out. They're rarely hard. (the rare company that uses absurd challenges and actually rejects everyone who fails to solve a problem that would have netted someone a phd 15 years ago are shooting themselves in the foot but are basically a rounding error. Some give impossible challenges for the perfectly reasonable goal of seeing how you react when there is no easy answer. Again, logical problem solver or crying in the corner?)

9

u/nexes300 Mar 01 '17

If the only way you can write fizz buz or find a route to a node in a graph is by rote memorizing code then the tests are succeeding if they filter you out.

It sounds like they already know they're being filtered, but are enraged and absolutely convinced they could do the job. I am honestly confused at what these people do all day if they literally never need to write an algorithm. Are they just getting all the boiler plate work and someone else taking the hard work? I don't really understand how anyone gainfully employed as a programmer can say that.

Especially if you get really meta and consider the program as a whole a sort of algorithm....

0

u/[deleted] Mar 01 '17

You would be surprised. I wrote about it in another thread where someone was complaining about older people having a hard time in interviews. Some people get stuck doing the same thing over and over again for YEARS and then that apparently makes them a senior developer. They are a senior developer at making simple windows forms that let users pull data from a database, edit it, and then save it. Kicker is, Microsoft has built frameworks that make something like that so painfully simple that they don't actually really write anything themselves. They just wire up a bunch of frameworks and call it a day. Given the task of writing anything different or having to do anything else and these people are lost. But they have 10 years of experience so they request six figures and don't understand why they didn't get the job.

2

u/allThatSalad Mar 01 '17

I've failed many technical interviews but never suffered from poor performance at a job in over twenty years. If I am given a problem in a white board interview and I don't already know how to solve it I usually fail. My solution to this is to memorize solutions to classes of these problems and then hopefully I can reduce any new problem to something I already know.

I am the example of the false negative. I also don't know of an alternative, but I hate the whiteboard ritual.

Also, the white board advocates state that it is the simplest method with the fewest false positives, but I believe they are missing something important. White board interview positively select for characteristics that are bad for business. Specifically, the "not invented here" mindset. People who are very confident in their ability to code solutions are less likely to use building blocks made by others. I think that's why you see so much reinventing the wheel done by companies where they do lots of white board interviewing.

1

u/[deleted] Mar 01 '17

My solution to this is to memorize solutions to classes of these problems and then hopefully I can reduce any new problem to something I already know.

Isn't that normally how you would approach math problems? I've been told the two field of studies are pretty related.

1

u/KagakuNinja Mar 01 '17

The guy you are replying is similar to myself, although I have 30 years experience. Last round of job hunting, I naively assumed I didn't need to cram for white boarding, since I've been writing code since I was 12. As a result, I choked up in several interviews, until I started to get the hang of it.

The tricks that are useful for solving whiteboard challenges are only partially related to the actual skills we use on the job.

-2

u/art-solopov Mar 01 '17

Yeah, yeah, congrats, you're good at whiteboarding. Pat your back for that. And fuck the guy who can code but isn't good at coming up with the solutions on the first try without the compiler or docs, right?

3

u/WTFwhatthehell Mar 01 '17 edited Mar 01 '17

Why would you need the compiler and docs?

If you're writing pseudocode you shouldn't need any of that. You're literally just painting a rough picture of how you'd plan to solve the problem.

personally I hate writing code on paper or otherwise in handwriting, always have. I remember an interview when I just talked through how I'd solve it without putting pen to whiteboard and they accepted my answer happily. I liked that crowd.

If you're sweating bullets about the capitalization or the exact options available from some API or some function call: don't. Almost nobody cares about that and it's a red flag if they do too much. They just want to make sure you have any capacity at all to break down a problem logically. I have less experience on the other side of the desk but there's a reason Fiz-Buzz is necessary.

There's a lot of applicants who can quote code like it's ancient greek poetry but can't for the life of them write even a few lines of novel code. Who apparently can't actually think.

1

u/art-solopov Mar 01 '17

If you're writing pseudocode you shouldn't need any of that.

I'm a web dev. I've rarely written any pseudocode on technical interviews. Mostly it's SQL. Sometimes, the server-side language of choice. A couple times, regular expressions.

If you're sweating bullets about the capitalization or the exact options available from some API or some function call: don't.

It's not even about API options. Sometimes, I just want to be sure a feature of a language would work in a way I'd imagine it to, like IIFEs in Python.

There's a lot of applicants who can quote code like it's ancient greek poetry but can't for the life of them write even a few lines of novel code. Who apparently can't actually think.

And there are people who can look up the solutions to your problem or will make an error on the first attempt and quickly fix it. Whiteboard interviews is asking from a candidate to write out a correct solution on the first try while being watched by an interviewer or interviewers.

4

u/WTFwhatthehell Mar 01 '17

Your interviewers expect zero mistakes? I've made mistakes a fair few times and the interviewer typically just says something like "what about x case". Then I think and fix it. One boss I had said he tries to give some challenge that applicants are likely to make mistakes on largely so he can see how they deal with it. That was a fairly good shop with good code quality practices.

Do the places you've applied to somehow expect to not have any code review or bug trackers?

1

u/art-solopov Mar 01 '17

Well, they probably don't expect it, but it's kinda obvious each mistake you make knocks down your chances. Even if they try to get you back on the track, you've made a mistake. They won't just let it slide.

→ More replies (1)

0

u/[deleted] Mar 01 '17

If someone asks me to write code on paper I say " my syntax is a bit poor off tge top of my head, pseudocode ok?"

If someone asks you to write in anything but a pseudocode you better walk out immediately.

3

u/mikulas_florek Mar 01 '17

I think they can ask to write in some language, they just can't expect solution which compiles without errors

1

u/[deleted] Mar 01 '17

It is very stupid to demand any specific language at all.

3

u/mikulas_florek Mar 01 '17

It depends, if I'm hiring senior C++ programmer, somebody who programmed in other language just won't do. You will not become skilled C++ in a week. Some very close programming language can be acceptable.

3

u/the_evergrowing_fool Mar 01 '17

senior C++

What is to be expected from a senior C++ programmer?

5

u/mikulas_florek Mar 01 '17

What is to be expected from a senior C++ programmer?

Well, it depends. I would at least expect him to know C++. Or some very similar language C, ... There is so much stuff you learn only with a lot of experience. Programmer with 15 years of experience in PHP just won't be able to solve many complicated bugs C++ programmer has to solve or work efficiently enough after a week of transition. Of course this might not matter for most positions, but for some it does.

Example: https://randomascii.wordpress.com/2017/01/08/add-a-const-here-delete-a-const-there/

1

u/[deleted] Mar 01 '17

Of course. But testing the knowledge of specific languages is not a point of whiteboard interviews. It must be done elsewhere.

0

u/vilcans Mar 01 '17

" my syntax is a bit poor off tge top of my head, pseudocode ok?"

With this, do you mean that you don't actually remember the syntax of the programming language? I.e. you don't know by heart how to define a function or create a while loop?

Not knowing APIs by heart is normal, but not remembering the syntax would be a huge red flag for me. Can you be an experienced programmer in a language without remembering its syntax?

3

u/WTFwhatthehell Mar 01 '17 edited Mar 01 '17

I worked for years in C#. it's only been a bit more than a year since I last worked in it but this morning I had to look up whether statements ended in a ";".

Since I worked in visual studio for that time it was simply never an issue I ever had to think about since it would add/highlight any incorrect semicolons. It was utterly utterly 100% irrelevant to the job.

On the other hand while I never used Java a significant amount in industry I can rattle off the boilerplate wrapper code and syntax details more than a decade after I learned it because I used only plaintext editors when I learned it.

This does not make me a better java programmer in any way. It just means I used less effective coding tools when I routinely used java.

Quick guess: you like text editors over IDE's?

1

u/vilcans Mar 02 '17

That is interesting (especially since C# and Java are so similar). I'm genuinely trying to become a better interviewer, and I'd think only a beginner would struggle with syntax. Help me understand.

Don't you learn the syntax from the IDE's highlights? When the IDE signals a missing semicolon for the tenth time, don't you recognize the pattern? Visual Studio doesn't speculatively insert semicolons, and even if it did, wouldn't you learn that statements end with semicolon?

Quick guess: You don't mind inconsistent spacing or naming?

Quick guess: you like text editors over IDE's?

No. IDEs are helpful (the good ones that is).

1

u/WTFwhatthehell Mar 02 '17

The shop where I used C# had a pile of optional and third party tools for visual studio. I'm pretty sure it added semicolons automatically. They also had a lot of their code formatting standards configured into it so most of their C# codebase was beautifully consistently formatted.

I'm obsessive about consistent spacing to the point that back in my student days I wrote my own crappy auto-format code for when I had to read assignment code or example code with spacing I didn't like.

I like consistent naming but it doesn't bug me as much.

In both cases I love IDE tools which handle it for me buthardly touched an IDE until working in industry.

I'm sure when I had C# code in front of me I never had problems with semicolons but it simply never impinged on my consciousness enough to need to remember it. Unlike java or C I simply never spent half an hour tracking down a problem that turned out to br an extra or absent semicolon.

1

u/vilcans Mar 02 '17

Interesting. May I ask how much programming experience you have?

1

u/WTFwhatthehell Mar 02 '17

about 6 years working full time, about 5-6 before that. Not spectacularly long. I'd classify myself as a mid-level coder with a fair way left to go to match some of the people I've worked with.

Yourself?

1

u/vilcans Mar 02 '17

20 years professionally and about 10 years before that. I still remember the syntax of 1980's BASIC. :-)