r/node • • Feb 28 '17

Programmers are confessing their coding sins to protest a broken job interview process

https://theoutline.com/post/1166/programmers-are-confessing-their-coding-sins-to-protest-a-broken-job-interview-process
199 Upvotes

71 comments sorted by

98

u/lms85 Feb 28 '17

It's funny, my boss and I were just talking about this today. We were both saying how neither of us had ever used an interview algorithm in any of our code.

I feel like the best way to interview a junior developer (or most developers, really) is to have them talk about some project they did, why it excited them, what challenges they faced, what technology they used and why they liked it/didn't like it.

You learn way more about what a developer knows by just talking about something that interests them, than seeing if they remember some bullshit algorithm from a textbook. I mean in the real world I'm just gunna google whatever method does it for me.

5

u/tbranch227 Mar 01 '17

Seconded. Works like a charm

1

u/tzaeru Mar 01 '17

I've liked to present a problem about algorithms in paper/speech just to see if the person can come up with any solution at all. Informal solution is good enough.

Then I present a few other solutions that match different needs. The idea is that if they can talk a little about them or if they seem like they understand at least the basic principle of the solutions, then they probably are quite decent problem-solvers.

No need to remember anything off a textbook though.

0

u/[deleted] Mar 01 '17

[deleted]

3

u/[deleted] Mar 01 '17

If someone was to call your bluff and ask what product your fuzzbuzz routine is supporting, what would you claim?

6

u/[deleted] Mar 01 '17

I actually had a literal fizzbuzz problem a while back.

Basically we have an app that has 2 groups of users. Group A has this set of features, group B has toned down version. Time passes and a new group C is introduced, which is basically group B with one new feature from group A.

Thing is, group C is literally only 1 customer and so did not justify re-jigging the whole user system just for them. So we fizzbuzz-ed it.

1

u/bwainfweeze Mar 01 '17

But how do that when we all know that fizzbuzz is about modular math? How do you take the modulus of C?? That's crazy talk.

19

u/TomFrosty Feb 28 '17

Most of my team is distributed remotely, so we interview over google hangouts. For us, pairing culture is pretty important. So I invite someone else from the existing engineering team, spin up coderpad.io, and give the interviewee and the employee a tough problem to work on together. I offer coaching to keep it on track. It has absolutely nothing to do with how well the problem gets solved on the spot, but how they're able to communicate about it, how coachable they are, how they adapt to the engineer's style, etc. I've been silly enough to do more whiteboard-style testing in the past, but this is far, far better.

4

u/Nephelophyte Mar 01 '17

Seems interesting. I've been working remotely for about 4 months now. Can I try one of your interviews?

52

u/DaRizat Feb 28 '17

This is actually one way to weed out potential employers. I end interviews if they get into that garbage. You don't want to work for people who have their fingers that far from the pulse of what's important.

24

u/elebrin Mar 01 '17

Some people want work period. The reality is that not every developer can write their own paycheck, many have to take what they can get even if it sucks. The advice of "end those interviews right away and don't put up with that bullshit" only works if you have other prospects.

3

u/DaRizat Mar 01 '17

I feel you. I have been lucky enough with my connections that I haven't truly had to conduct a 'need a job' job search in probably 10 years, although I regularly accept interviews with companies/positions that interest me. I always like to stay current with the market and see what kind of offers I can get. You're a business, so it makes no sense to stand pat and not see how marketable you are. But I do agree that interviewing from that position makes it much easier to walk away from a bad fit. It also helps when you're negotiating! Don't wait until you need a job to find a job!

0

u/[deleted] Mar 01 '17

[deleted]

12

u/elebrin Mar 01 '17

Well, getting that crappy job can be a stepping stone to getting a better one, and mediocre devs need to eat too.

1

u/[deleted] Mar 01 '17

What are your thoughts on scrum?

3

u/DaRizat Mar 01 '17

I think some form of Agile Methodology is a pretty important tool for software development, but I have also seen it misused in a high number of cases, especially with scrum. Stakeholders like to use it more as enforcement rather than as a predictive tool and developers are usually not introspective enough to limit their intake for sprints or properly estimate story points.

Unless it is used properly, it just turns into a ritual done for the sake of the ritual and is not helpful to the organization. It takes buy-in at every level for it to be effective, but when that happens, it can be a great tool.

Personally, I prefer Kanban because it puts less artificial checkpoints and ritual points into the mix and it feels like teams are more free to re-prioritize on the fly and metrics about team velocity and estimation are more readily accessible.

1

u/[deleted] Mar 01 '17

Thank you for that insight. I just saw Kanban. Looks interesting but I have no real knowledge of it yet. I'll dive a bit further. Thanks!

31

u/Nephyst Mar 01 '17

If an interviewer is asking you to code quick sort, how to rake/migrate, or how to get the length of a string then the interviewer should be fired. The problem here isn't white-boarding interviews, its programmers that don't understand how to do them properly.

I worked at Amazon for 5 years and was involved in performing interviews. You have to understand that the system is designed to prevent bad hires at the expense of possibly rejecting good hires. The reason for this is that a bad hire is insanely expensive for the team and the company. It takes 1-3 months to fully train someone on all the internal systems and frameworks, and then another 3-6 months to find out that if someone is productive or hindering your team. You then have a period of time where you tell them they need to improve or they will be put on probation, and after 3 months of probation they will be let go. The team then has to spend another 3-6 months trying to fill that position, and they just lost out on 1-2 years of time, not to mention the monetary cost to the company.

The white-boarding interviews should not care about syntax and they should in pesudo-code. It shouldn't matter what languages the candidate knows because you can expect that they will pick up whatever they need to do the job easily. They should not ask you to implement any sorting algorithms or remember which Java classes use .size and which use .length.

I would ask questions about algorithms and see how the candidate thought about solving the problem. Did you take the time to understand the requirements or did you try jump in and write code that solved something different than what I asked? Do you have a super basic understanding of run-time complexity? Do you understand data structures and can you tell me why you would prefer one over another for this solution? Can you explain how you would design classes for a simple system after getting some basic requirements? Do you understand what issues come up when scaling services to millions of users?

I don't think any of those questions are unfair, and are all things that you need to know if you want to work at Amazon. Not all of them have easy answers that you can just Google. I need you to be able to go into a meeting with the rest of the dev team and be able to keep up when everyone else is talking about these concepts.

8

u/jwalton78 Mar 01 '17

On the one hand, I agree with everything you just said... But seriously, bubblesort? It's been 20 years since I last saw bubblesort. I remember it had to do with walking a list and swapping values. So, I walk a list over and over again, comparing each value to the next value and swapping values when they are out of order. How do I know when I'm done? Well, obviously when I walk the list and there's no swaps left to make. The worst case would be where the list is reverse sorted, where I'd have to walk the last element all the way to the start, and it would only move one position each iteration, so on a list of n elements I'd have n iterations where I examine every element in the list, so it's O(n2).

Maybe, if somehow you were sick on that day of Algorithms 101, I'd have to prompt you and lead you a bit with the concept of swapping values, lay out the basic concept, but you should be able to tell me when it's done, and you should certainly be able to work out the complexity.

3

u/Nephyst Mar 01 '17

I only mentioned bubble sort because it was featured in one of the tweats the article highlighted.

Also, you don't have to examine every item every loop. After the first loop you know the very last element is in the correct position so you can skip it. Each loop the number you can skip increases by one, so on your last iteration you only compare 2 items. It's still n2 though.

0

u/sadEmoji Mar 01 '17

So there's no way to become a good programmer or get a job if you don't know DSA? :(

8

u/nummer31 Mar 01 '17

I am really really glad that this is finally getting out in a larger scale because I am not a CS student but I got into coding because I love it. If loving what I do and getting work done is not enough but knowing how to write bubble sort is then the system is truly broken.

35

u/I_AM_TESLA Mar 01 '17

"This means companies tend to favor recent computer science grads from top-tier schools who have had time to cram; in other words, it doesn’t help diversify the field with women, older people, and people of color."

What does this have to do with the article? Why the fuck does everything turn into a gender/race thing these days? I do not see how a whiteboarding interview would affect a black guy anymore than a white guy or asian girl or whatever.

9

u/ketsugi Mar 01 '17

As an Asian "person of color", you'd think that interviews that favor an ability to cram would favor us.

2

u/[deleted] Mar 01 '17

Response I gave to someone else on this thread:

The article is pointing out flaws in the way performance is measured. Meritocracy is based on performance. If the performance measurement is flawed, the meritocracy is flawed. The flaws affect different people more or less than other people. The article argues these flaws affect women, older people, and people of color more than recent CS grads. That interview process harms everyone, just some more than others.

5

u/oh-thatguy Mar 01 '17

Why the fuck does everything turn into a gender/race thing these days?

It's tactical. They want you to ignore meritocracy and give people extra points for belonging to a victim class.

2

u/[deleted] Mar 01 '17

The article is pointing out flaws in the way performance is measured. Meritocracy is based on performance. If the performance measurement is flawed, the meritocracy is flawed. The flaws affect different people more or less than other people. The article argues these flaws affect women, older people, and people of color more than recent CS grads. That interview process harms everyone, just some more than others.

3

u/oh-thatguy Mar 01 '17

How the "flaws" affect others is the business of the company only. If their metric for measuring performance is flawed, they would change it. How it affects other people is not the company's concern.

1

u/[deleted] Mar 01 '17

I agree with Granito (A really well articulated response btw). Your argument that they (a company) would change a flawed performance measure is incorrect.

First, tech interviews tends to reflect the values of the developer doing the interview. Some developers (often older or with a maths origin story) consider things like algorithmic complexity to be a fundamental building block on which good code will naturally accrete.

Part of the problem is that older developers often get promoted to management and their technical skills stagnate. They may then recruit people who they feel are talented in a way they recognise.

Finally, there's more than one way to develop software and even the old fashioned waterfall methodology - imperative code - client server blood baths resulted in working software that solved a need (sometimes).

1

u/[deleted] Mar 01 '17

If the company wants the best people it is their concern.

1

u/oh-thatguy Mar 01 '17

the best people

And that's how the feel they will get them. If it's not an effective method, why is everyone so worried about it? Problem should correct itself.

1

u/[deleted] Mar 01 '17

The first step to fixing a problem is recognizing there's a problem.

1

u/oh-thatguy Mar 01 '17

If the company is doing well, no problem to fix. If they're happy, everything is good.

1

u/[deleted] Mar 01 '17

1

u/oh-thatguy Mar 01 '17

Yeah. I'm sure they're suffering, you know better than they do.

→ More replies (0)

-1

u/elebrin Mar 01 '17

What does this have to do with the article?

It gets people to read the article, and if you complain about it you are automatically sexist and racist. Win-win for the author.

53

u/alexgorale Feb 28 '17

Those speaking up on Twitter now appear to be predominantly white and male. However, this style of interview has been repeatedly criticized for contributing to the industry’s diversity problem.

Go fuck yourself

18

u/oh-thatguy Mar 01 '17

They just can't stop doubling down on the victimhood.

6

u/BEARS_ARE_GREAT Feb 28 '17

I did a whiteboard interview last week where they they started with really easy questions and asked progressively harder ones to see how much I knew. Seems much more fair than a standard coding interview.

5

u/chromesitar Feb 28 '17

Someone should start a boot camp that teaches Cracking The Coding Interview. Get people who have no experience or knowledge outside of algorithms into jobs in a few months. Teach to what companies value during interviews rather than what they value during work, and skip all that useless stuff from colleges.

But if your focus in interviews is algorithms, your focus in code reviews and employee evaluations should be algorithms as well. Did the employee meet their quota for algorithm use? Did they use the correct algorithm? Did they implement it correctly? Did they create it from scratch or from memory or did they have to refer to outside resources?

2

u/Nephyst Mar 01 '17

As someone who has done hundreds of interviews, this tactic wouldn't work. You would have to teach them how to be a good developer for them to pass the interviews. It's really easy to dig in and find the limit of someone's knowledge, and any interviewer that's just asking for copy-paste algorithms is doing it entirely wrong.

2

u/Lichtenstein_USA Mar 01 '17

I just went through a decent interview (didn't get it) and one of the things they asked me to do was flatten an array of arrays. I said, "Well, I'd use concat and reduce but I'd have to check MDN or something to make sure I'm using it correctly." They said I could check MDN. Of course the answer was in the example. I asked if they still wanted me to flatten the array. They answered asking if I could do it without concat or reduce. I said sure, but I'd need to look it up and learn it that way.

Granted, I think it was more of a way to garner an understanding of my thinking. I think my point is that I could do what they asked, but I confessed I don't know the ins and outs of every method off the top of my head.

2

u/elebrin Mar 01 '17

I've sat in on a few interviews, and what I really want an interviewee to say is "why would I do that? Why is the flattened array going to be more useful to me than the current structure? Why wasn't it built out into a more useful structure to start with?"

The good developer or engineer is the one that knows the right questions to ask. Most code is easy to write. Finding out what code doesn't need to be written and making sure you are writing the correct code is far more important.

2

u/strixvarius Mar 01 '17

"why would I do that? Why is the flattened array going to be more useful to me than the current structure? Why wasn't it built out into a more useful structure to start with?"

I would not hire someone who responded this way, as the question shows a severe lack of understanding. Transforming data structures is a critically important skill in any language, for any type of software.

1

u/elebrin Mar 01 '17

I disagree. I worry about the engineer who never asks why and just blindly implements something like this.

Yes - perhaps there is a legitimate situation where this is necessary. Maybe, also, there is a better way. Never discount that possibility. Never stop looking for that better way.

1

u/bwainfweeze Mar 01 '17

Here's the problem though. There are lots of people like grandparent in the world, so if you ask a loaded question like that I'm going to worry that you're like GP instead of trying to be subtle. And once I decide that the interviewers are clowns then I'm not going to put all of my energy into the rest of the interview.

Because why would I want to get an offer from a group of people who expect me to throw away what little structure the data had to begin with? And how important was that that they made it a priority to ask about it in the interview?

I've taken many jobs despite warning signs like this because I was confident in the human ability to improve, and confident in my abilities to be an agent of change. But I try not to do that anymore. You end up having the same arguments over and over again with a new group of people, it introduces a lot of friction, it's taxing for me and frankly I have OSS and volunteer work now and I know that both of those are often a better use of my time and energy on this earth than arguing with someone again about how version control or info architecture are intrinsic and no we can't just do without them because they are 'hard'.

1

u/Nephyst Mar 01 '17

There's a big difference between mechanics and engineers. Mechanics can copy and paste code and get things to work but they can't design and implement a large distributed architecture to solve an complex business problem with a lot of moving parts. The white boarding interview is used to weed out the mechanics and let the engineers succeed.

1

u/Lichtenstein_USA Mar 01 '17

I always want to say that, honestly. Although, I fear it'll come off as arrogance. Maybe there's a legacy codebase they're dealing with that has big issues.

2

u/bwainfweeze Mar 01 '17

Wouldn't you want to know that before you accept an offer though?

2

u/elebrin Mar 01 '17

I regularly deal with legacy code that is close to 10 years old. Some of it is very not pretty. The correct answer is to find a better way.

Given that we are in the Node subreddit, I'd make a new array, then loop over each of the smaller arrays inside of the big one and newArray.concat(currentChildArray) and call it good. In C#, I'd make a collection, do something similar, then do newList.ToArray() and there you go.

The main reason someone might do something like this (at least the only one I can dream up at the moment) would be to serialize some data. The better answer is to serialize it to json, then send that to whatever needs to do the consuming.

0

u/LovelyKarl Mar 01 '17 edited Mar 01 '17
// section mapped to codes for that setion
const SECTIONS = {
    INR: ['A', 'B', 'C']
    UTR: ['D', 'E']
    EKO: ['F', 'G']
}

// an item can belong to many sections
var item = {
    sections: ['INR', 'UTR']
}

// get all codes for the item
const codesForItem = (item) => {
    // [[...], [...], ...]
    var tmp = item.sections.map((sec) => SECTIONS[sec])
    // flatten
    return [].concat(tmp)
}

Sure you can implement it by looping and mutating a collection, but there's nothing old fashioned or strange about flattening.

2

u/Flopsey Mar 01 '17

Ok, but why would you want to invert a binary tree?

3

u/[deleted] Mar 01 '17

To pass the interview

4

u/JakeInDC Mar 01 '17

I sat through a three hour interview crushing it. And completely froze on simple whiteboard question. I then proceeded to answer a question that I had been asked in a different interview. Lol they looked at me like wtf.

Whiteboard sux

1

u/Nrdrsr Mar 01 '17

In the third world interviews are pretty mandatory in my experience. Have interviewed at least 2 guys with over a year's worth of experience who couldn't write fizzbuzz, even with the ability to google. Apparently all they did at their last job was ride the coattails of one employee.

1

u/[deleted] Mar 01 '17

When it comes to calculating time complexity best I can do is "good", "bad", and "don't to that"

1

u/victorofthepeople Mar 01 '17

People conducting whiteboard interviews don't really care about remembering exact function prototypes or having perfect syntax, but how you approach solving a computing problem, so I don't see how most of these confessions are super relevant.

1

u/azarusx Jun 28 '17

I mostly google for ideas, or inspiration on stackoverflow. If i forgot a function i'd probably use the documentation first instead of stackoverflow..

1

u/ijpiantanida Mar 01 '17

Whiteboard interviews are useless on their own. They don't reflect the day to day work.
That's why at 10Pines, we went with something different (https://blog.10pines.com/2017/02/20/our-recruiting-process/)

1

u/[deleted] Mar 01 '17

Correct me if I am wrong, but dilema is Spanish for dilemma.

-3

u/pikadrew Mar 01 '17

Huh, a lot of hate for the article's comments about race and gender. I could understand disagreeing with the article by backing up your argument with some facts, but the comments on here are tangibly aggressive.

0

u/[deleted] Mar 01 '17

[deleted]

9

u/[deleted] Mar 01 '17

With tar I just type a bunch of random characters after the command then the file name and hope for the best.

1

u/eyko Mar 01 '17

man rsync, man tar

8

u/dontletthestankout Mar 01 '17

Don't call me man, guy

0

u/[deleted] Mar 01 '17

[deleted]

3

u/rubenescaray Mar 01 '17

don't call me dude, bro

2

u/[deleted] Mar 01 '17

don't call me bro, man

-1

u/alexgorale Mar 01 '17

Too bad for your users

0

u/[deleted] Mar 01 '17

[deleted]

4

u/[deleted] Mar 01 '17

What's your point? Why does that need to be on all articles?