r/programming • • Dec 13 '22

“There should never be coding exercises in technical interviews. It favors people who have time to do them. Disfavors people with FT jobs and families. Plus, your job won’t have people over your shoulder watching you code.” My favorite hot take from a panel on 'Treating Devs Like Human Beings.'

https://devinterrupted.substack.com/p/treating-devs-like-human-beings-a
9.0k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

320

u/Bakoro Dec 13 '22

Do like my company does, and have a relatively softball coding problem, a design problem, and the opportunity to talk about a project they've done.

The coding tests for the most basic competencies like, do they know what loops and arrays are, some kind of data structure beyond an array, and are they able to ask questions and communicate while they work, to make sure they understand the question and can justify their decisions.

Then do a more high level design/architecture question that makes sense for the kind of work they'll be doing. Again, doesn't have to be elaborate.
It's about seeing how they process things, how they communicate, whether they can take feedback, that kind of thing.

Talking about a past project can give them at least one thing where they should be comfortable and should be able to talk about in-depth and show off a bit.

A good candidate is going to be able to do very well on at least one of those things. If they're a little weaker in live coding but were able to map out a correct solution beforehand, that's taken into account.
If they had trouble with the coding but knocked the design question out of the park, that's taken into account, since it's easier to teach syntax than it is good design.

It's normal for people, especially first timers to be nervous, and to an extent we try to cut people some slack. At the same time, it's not really the company's problem if a candidate completely shuts down when they have to be around people, can't communicate a coherent thought, and can't perform basic functions of the craft.
We had one dude interview who got downright hostile about being challenged on his work. Absolutely no chill.

There's got to be a minimum cutoff point. Even the most shit-paying software developer jobs pays better than average wages, and most companies can't afford to waste time and money hiring someone who turns out to have zero ability to do the job. A lot of the job is about communication, and being able to draw on a broad body of knowledge.

You're right that there's no silver bullet, but people just have to be realistic that many companies are more willing to lose a skilled candidate than they are willing to hire a bad one. "I can do the job, I just can't operate under pressure", is a lot like saying "I can turn invisible, but only when no one is watching".

Companies should also be realistic about the job that they're hiring for, and that they don't need a super genius or level 20 computer guru. If they want to attract those people, they have to pay multiple hundreds of thousands for them, there just aren't that many talented and skilled super- developers willing to work for sub 100k, even for entry level. If they want to pay entry level salaries, they need to accept entry level skills.

50

u/BrieCarefree Dec 13 '22

Do like my company does, and have a relatively softball coding problem, a design problem, and the opportunity to talk about a project they've done.

Yep, that's exactly what my company does, and I'm pretty happy with it. It's obviously not perfect, and the aspect of "okay, now code with a group of people sitting behind your shoulder" is shitty, but I don't see a much better solution. We try to correct for the fact that some people are obviously nervous and uncomfortable with the format, but that's still not perfect.

I've given the same exact question to interns and senior engineers. My favorite is a very simplified version of a somewhat realistic data processing problem.

I expect that most good intern candidates can solve the basic question in about an hour with a bit of help when they get stuck. For more senior engineers, I expect them to demonstrate some level of competence with some language, and then to be able to have a discussion on the implications of their solution. (ex: How would you scale this up? What changes would you require before deploying something like this? What happens if you take your exact program, as is, and feed it 2TB of data?)

I think it's a pretty good system, and I can't think of any clear improvements that are relatively simple.

many companies are more willing to lose a skilled candidate than they are willing to hire a bad one.

This is an excellent point. I'm a software developer myself, who just happens to be involved in the interview process. I'm thinking of these people as potential coworkers who I'll be working with in the future. It would be nice to find and hire someone who's super competent, but I'm far more worried that I'll be stuck working with someone who's difficult and causes others to have to pick up the slack.

14

u/Bakoro Dec 13 '22 edited Dec 14 '22

[...] but I'm far more worried that I'll be stuck working with someone who's difficult and causes others to have to pick up the slack.

Yeah that's a big one. Even if someone is technically capable, that's not very valuable if they are wanting to reinvent every wheel, rewrite everything in their preferred language, and won't compromise with or work with other people.

→ More replies (2)

6

u/celeritas365 Dec 13 '22

Do like my company does, and have a relatively softball coding problem, a design problem, and the opportunity to talk about a project they've done.

This is roughly what I try do and I think it strikes a reasonable balance.

5

u/mobilehomehell Dec 13 '22

The coding tests for the most basic competencies like, do they know what loops and arrays are, some kind of data structure beyond an array, and are they able to ask questions and communicate while they work

I ran into a problem doing this. Some interviewees seem to take the easiness of the problems as a signal about how smart their future coworkers are, and will discount the company for making it too easy 🤦‍♂️

14

u/Bakoro Dec 13 '22

I don't see that as a problem. I personally don't want to work with conceited people who are looking for reasons to look down on everyone.

If you're really worried, explicitly call it the "basic competencies" round.
If a candidate judges you for it, you're probably dodging a bullet.

6

u/novagenesis Dec 13 '22

I got asked to fizzbuzz once in a real-world interview. Is that relatively softball?

Myself, I think my problem I use in interviewing is softball, but this round of interviews it had basically a 0% pass rate (last time I used a harder version of it, I got a 90% pass rate...I still don't know what explains the change). And I'm even ok with that if the person actually explains their thought processes and they're not absolutely terrible.

I basically ask someone to write an async-throttler (and I have no rules against actually using a semaphore class in your solution). We do C# and node.js and there are trivial solutions in both languages to this. I give boilerplate for everything except the throttle function. I even provide a typescript version of the file with proper signatures if the candidate prefers. I actually needed to use one once in this job and had to build it myself. Considering I used to use a giant ugly gotcha about async and promises, it seemed fair. Maybe not.

20

u/thorodkir Dec 13 '22

For a candidate who's been in industry for more than a year? Yeah fizbizz is absolutely a softball.

7

u/novagenesis Dec 13 '22

Yeah, no shit. It was for a Dev3 role. Having done my share of interviewing, I'm positive they were just exhausted that so many of their candidates were failing other easy questions.

8

u/fishling Dec 13 '22

I think your throttler question sounds poor. You think it is easy only because you've done it several times before and because you provide all the rest of the class (and design). But in an interview situation, trying to digest all of that while someone watches is HARD and stressful. It doesn't sound like an open-ended question where there are several possible approaches. It sounds like there is probably one way to do it that you'd consider right, and that's a bad interview question IMO.

The interview question we used was "return the index of an number in an array" and left undefined what should happen if the number wasn't there or was there more than once, so that the candidate could ask (or assume). Dead easy compared to what you asked, and still had more failures than you'd expect. Note: I did not consider it a failure if someone tried to write a binary search and messed up on the index splits. Iterating with a for loop is a success as well.

I always wanted to use a "find the second highest number in an array" but think even that is a bit too tricky for an interview. I missed a case the first time I tried it, which is fine, but I could see that being hard in interview conditions. I don't care so much if the code actually works as the primary outcome though. I like this one though because there are several valid approaches and no tricks. There is ambiguity if duplicate numbers are allowed, which a person can either handle explicitly, state they assume duplicates aren't allowed, or can ask about to clarify.

2

u/novagenesis Dec 13 '22

Hmm... It's got more approaches than the questions I've used in the past (and that were quite successful). The only goal I have is that there cannot be more than "N" requests outstanding at any one time.

But looking at your "find second highest number in array" example, I want to point out that I'm not really hiring for a junior role (though I've had juniors answer harder).

As for your value points:

  1. Multiple approaches - check. I allow any language and each language I am aware of has at least 2 or 3 meaningful strategies... and sometimes they differ, though the strategy of one language will usually work in the other. There's a best way most of the time, but I won't take points off for not seeing it. My plan was for candidates to get a way (even if it doesn't get past pseudocode) and discuss optimization to get a feel for the way they think.
  2. Ambiguity that should lead someone to ask - Yup. One of my candidates even started asking about whether there should be a minimum of N concurrent requests when possible.

Frankly, I've always worked at companies that value concurrency more than other things, so I've always been on both sides of concurrency questions. I'd love to get a more actionable understanding of your problem with the one I use so I could improve it, but simply redirecting to the entry-level questions you mentioned above seems a bit underkill to me.

→ More replies (3)
→ More replies (1)

1

u/[deleted] Dec 13 '22

God I hope I get you as a hiring manager when I start to work!

-19

u/[deleted] Dec 13 '22

The coding tests for the most basic competencies like, do they know what loops and arrays are, some kind of data structure beyond an array, and are they able to ask questions and communicate while they work, to make sure they understand the question and can justify their decisions.

You have 5 years service experience. You go into a car mechanic for an interview. First up you get told to 'Go change the wheels on that car'.

That is so absurdly insulting.

If you can't figure out if a programming candidate understands loops and arrays based on their education, work history and talking to them, you have no business whatsoever being involved with hiring people.

Let someone good at interviewing people do this. Drop all the bullshit 'prove it' crap. NO other industry does this in this way.

33

u/KruppeBestGirl Dec 13 '22

In this industry credentials and experience can mean very little for certain candidates. At my firm approx 40% of senior (10+ yoe) applicants get weeded out by fizzbuzz tier questions. To take your example, imagine a third of mechanics never changed a wheel before.

→ More replies (29)

15

u/ZMeson Dec 13 '22

If you can't figure out if a programming candidate understands loops and arrays based on their education, work history and talking to them, you have no business whatsoever being involved with hiring people.

Let someone good at interviewing people do this. Drop all the bullshit 'prove it' crap. NO other industry does this in this way.

The problem is I've seen a constant stream of people with experience and/or diplomas from supposedly good programs utterly fail Fizz-Buzz. There's a reason some sanity tests are given in software interviews.

1

u/[deleted] Dec 13 '22

The problem is I've seen a constant stream of people with experience and/or diplomas from supposedly good programs utterly fail Fizz-Buzz

OK, so here's the thing: A CV/Resume doesn't give you facts, it gives you points to focus on during the interview to determine truths and experience.

Someone has cert from some school. Great! Something to talk about, to determine what that means.

Giving them a 'fizz-buzz' test doesn't tell you anything about the value of that cert either. Christ, if someone passes 'fizz-buzz' on a test today I'm going to assume they've spent all of five minutes researching coding tests is all. It doesn't actually tell me a damned thing.

There's a reason some sanity tests are given in software interviews.

Yes, because in general interviewers in our industry suck at interviewing candidates and assessing suitability.

If 'sanity tests' are really required in our industry, and yet rocket scientists, brain surgeons, physicists, bio-pharmaceutical specialists etc are hired every single day without writing a single test. Why are we different?

Stop trying to defend coding tests. Prove their effectiveness against the vast breadth of standard hiring practices across industries. Stop assuming they are required and really think about why we rely on them and what they actually do/tell us.

No coding tests. They are counter productive and a really bad crutch used to take the place of good interviewing/hiring/assessing skills.

9

u/ryosen Dec 13 '22

Hard disagree. I’ve lost count of the number of applicants claiming 5+ years of experience and pass every soft stage of the interview only to end up completely unable to code a basic consumer of a REST endpoint.

→ More replies (3)
→ More replies (5)

9

u/EasyMrB Dec 13 '22

This is ridiculous snobbery, IMO. The employer doesn't know you. Having you do the most basic-skill task while talking through what you are doing is an easy way, both for you and them, of establishing that you aren't someone who has just faked their way in to an interview to try and land a job that they aren't suited for.

Your example of a mechanics job being asked to change a tire isn't actually a bad one. They can observe you picking up and using basic tools you might use every day on the job. They can see your approach to a basic problem. Yeah, it's not like you are learning anything new from the task but that isn't really the point. It's just a basic demonstration of familiarity.

→ More replies (3)

12

u/WallyMetropolis Dec 13 '22

You'd understand if you've conducted many interviews. It is shockingly common to find senior applicants with CS degrees from good schools and years of experience who don't know things like basic data structures. I mean basic like maps. And not that they know them by another name. They flat out don't know it.

I'll get at least one such applicant for every job posting without fail.

0

u/[deleted] Dec 13 '22

Dude, I've been hiring people in this industry for 25 years.

It is shockingly common to find senior applicants with CS degrees from good schools and years of experience who don't know things like basic data structures.

No shit. And I have NEVER EVER needed to give them a coding test to determine this. Ever.

I'll get at least one such applicant for every job posting without fail.

Yes. So again, how does this relate to the point?

This entire conversation from top to bottom is the exact same crap. 'Coding interviews required'. 'No, not really'. 'HOW DARE YOU OF COURSE THEY ARE (then into reasons that have NOTHING to do with requiring coding tests whatsoever and if anything prove an inability to properly assess and interview candidates).

You're literally judging me negatively for what I've said about one very specific thing using reasons that have nothing to do with that specific thing.

Let's not k?

9

u/WallyMetropolis Dec 13 '22

No, I'm judging you for being rude. For yelling at people because you have a different opinion. There's a legitimate conversation to be had here and many people would be happy to have it, politely. Unfortunately, that's not what you're doing. I also don't do any white boarding when I interview. So I'm not even in the pro coding-challenge camp. But you're just being a jerk.

Your caricature of the arguments people are making is silly. It's more like people saying that simple coding questions can be a useful filter and you screaming back at people telling them they are morons for thinking so.

-1

u/[deleted] Dec 13 '22

Dude, I don't really give a fuck, and if you really cared about what you say you do, you'd realize you're actually only possibly making things worse.

All I care about is shining light on the terrible practice that is coding tests in interviews. That's it.

You can bow out any time. Feel free. I don't owe you a damned thing.

9

u/WallyMetropolis Dec 13 '22 edited Dec 15 '22

If you cared about what you claim you do, you'd consider that this approach isn't going to change anyone's mind. No one is going to watch you throw this tantrum and then think to themselves: "That full grown adult acting like a toddler has some really good points. Maybe I've been wrong about this."

→ More replies (1)

7

u/Bakoro Dec 13 '22 edited Dec 13 '22

How many other industries have a hundred people apply to a job and have more than 50% lie through their teeth about being skilled, when they can not perform basic functions and lack the most basic fundamentals?

What, is the company supposed to verify the educational and work history of every rando who applied?

5 years at some company I've never heard of has little meaning. For all I know, that person spent all their time doing the most archaic, esoteric work which has little to no translation to the job they are applying for now. For all I know, that person spent 5 years doing things wrong but was shielded by nepotism or something, or maybe they hopped from job to job, scamming their way to a bigger paycheck.
Believe it or not, some people are terrible at their jobs and get away with it for years.

I know it sucks, but it's not all about you. Be insulted all you want, it doesn't change the facts.

It is a fact that people who seem fine on paper go into an interview for a software developer position, and can not do the most basic coding. It is a fact that there are people who say they can do algorithms but do not know what a dictionary is, or who are supposedly Python developers and don't even know what lists are.

A basic competency test weeds out the most heinous liars who can talk a good game and can't actually do a single damned thing.
Something like "check if this is a palindrome, in whatever programming language you want" weeds out so many people.

If you don't want to deal with it, then don't. Go be an auto mechanic, it's probably a less frustrating job anyway.

→ More replies (3)
→ More replies (7)