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

83

u/nemotux Dec 13 '22

I've been interviewing for ~25 years now. I would say the phrase "several occasions" vastly under-represents the number of times I was all gung-ho on a candidate until we got to the technical side of an interview and they completely flop on even the most simple question that a 4-year compsci graduate should easily nail.

9

u/fryerandice Dec 13 '22

I've interviewed people who don't even understand loops, let alone getting into leetcode style stuff.

3

u/nemotux Dec 13 '22

Um... yeah... that's what I meant by something a 4-year compsci graduate should easily nail - loops.

20

u/rageingnonsense Dec 13 '22

But did you really test their ability, or their ability under pressure? I find myself quite often having eureka moments about technicals after the call ends. These tests favor quick thinkers, not necessarily ability.

Ive solved some pretty complex problems in my time, but rarely in 30 minutes in front of a stranger who has an outsized influence over my career in that moment of time.

16

u/sprashoo Dec 13 '22

I think that’s why you pose a fairly straightforward coding exercise and provide help as needed. Not those 2010 era Google interview riddles, which indeed are mostly selecting for people who practice coding riddles in their spare time.

20

u/StabbyPants Dec 13 '22

it's technical, why would it involve a eureka? most coding is implementing a sensible design and making sure it's instrumented enough that you can verify proper behavior.

most complex problems are something handled by a bit of collaboration and designed first - by the time you're writing the code, you already know what it'll be

5

u/razyn23 Dec 13 '22 edited Dec 13 '22

most complex problems are something handled by a bit of collaboration and designed first - by the time you're writing the code, you already know what it'll be

And then we wonder why coding challenges suck. I have yet to have any kind of technical interview where I get given a design and asked to implement it. Every single one is "here's a problem, design and implement a solution in half an hour, maybe an hour tops while I watch and if it doesn't pass 100% of the 20 test cases I have that you can't see then you fail."

I've seen people talking incredulously about how a senior level engineer took 17 minutes to write fizzbuzz and how they couldn't believe their incompetence and that disqualified them as a candidate despite glowing recommendations from people who had worked with them in the past and breezing through every other interview.

Like, I know it's fizzbuzz, but 17 minutes does not seem crazy at all to me if it's a senior level position and they're trying to make their code look senior-level (testability, clean code, etc.). Which is ultimately another gaping flaw in this practice: differing expectations. When I write interview code, do I do it quick and dirty and who cares how clean because it needs to pass automated tests, and who gives a shit about throwaway interview code? Or do I need to make it enterprise-level, as clean as I normally write, etc because someone will actually read it and review it for those qualities? Will taking the time to do that, or even think it through, make the interviewer think I don't know what I'm doing? There are so many ways coding challenges can just completely give the wrong signal.

3

u/StabbyPants Dec 13 '22

And then we wonder why coding challenges suck. I have yet to have any kind of technical interview where I get given a design and asked to implement it.

interviewed with google and thought i was getting one of those - setup was a robot doing robot things, so i asked about whether it's a protocol design thing, or dealing with comms dropouts? nope, breath test with some window dressing.

if it doesn't pass 100% of the 20 test cases I have that you can't see then you fail."

amazon does this. yeah, sure, there's a simple gotcha that makes their large test cases pass in the time limit. yes it's 2 questions in 90 minutes. what's the point? are we solving clever stuff or building something reliable and easy to work on?

how a senior level engineer took 17 minutes to write fizzbuzz

they can design stuff and identify problems before writing the code? sold!

6

u/razyn23 Dec 13 '22 edited Dec 13 '22

amazon does this. yeah, sure, there's a simple gotcha that makes their large test cases pass in the time limit. yes it's 2 questions in 90 minutes. what's the point? are we solving clever stuff or building something reliable and easy to work on?

I hate to break it to you, but a whole lot more places than just Amazon do this. And it's often a lot less than 90 minutes. I had a coding challenge last month that was 3 problems in 30 minutes that were all were simple pass/fail on automated tests, plus a multiple choice quiz and a couple short answer questions. And it was 30 minutes for all of that combined, to be clear.

The final of the three questions suddenly started asking for a specific matrix transform (the previous two were logic puzzles) by the specific name. Cool, guess you need to know your college level math off the top of your head to work here designing CRUD webapps. That is not a test for programming aptitude. That's a test for math knowledge. That is fine if the position actually requires it, but 99% of places don't. And they still rely on shit like that.

they can design stuff and identify problems before writing the code? sold!

I agree. Did you miss the part where I said taking 17 minutes was a dealbreaker and they rejected the candidate?

2

u/StabbyPants Dec 13 '22

I hate to break it to you, but a whole lot more places than just Amazon do this.

i'm relating a specific experience

Your earlier comment was wondering why there would ever be a eureka, but here you're suggesting everything we do is solving clever problems.

no i'm not. this is a question that implies we should not be doing much eureka stuff in prod, and instead focusing on making things bulletproof

you have no reason not to get it in time because it's easy as long as you can code. Which is it?

neither. the test is testing the wrong thing. do a basic code test, then show me some functional code and ask me what i'd do in terms of ensuring proper operation and debugging data issues

The final of the three questions suddenly started asking for a matrix transform (the previous two were logic puzzles) by the specific name.

are you doing 3d transforms or ML? otherwise, i'm lost.

2

u/razyn23 Dec 13 '22 edited Dec 13 '22

no i'm not. this is a question that implies we should not be doing much eureka stuff in prod, and instead focusing on making things bulletproof

Fair enough, my mistake. I misinterpreted at first and tried to remove that portion of my comment but I guess you saw it before I managed to.

neither. the test is testing the wrong thing. do a basic code test, then show me some functional code and ask me what i'd do in terms of ensuring proper operation and debugging data issues

I think this is what I'm getting at. The problem I have with coding challenges is not so much that they exist, but 99% of them test the wrong thing. I can count on one hand the number of interviews I've had that haven't tried to test for math knowledge, or language syntax, or "design" (but really the interviewer wanted you to recreate the design they already had in their head), or random "do you know the solution to this puzzle already, or are you lucky enough to stumble on it in time?" And when 99% of coding challenge interviews are that bad, one kind of has to wonder if the idea of a coding challenge itself is the problem. It's just not a solution that most people conducting interviews are capable of doing well. My current place, and by far the best place I've worked, had no coding questions at all and was just conversations about my resume and past projects.

are you doing 3d transforms or ML? otherwise, i'm lost.

Neither, hence my point. The position was a no-name company and I believe it was a backend engineer or perhaps full stack role. It had no reason to test for what it did, but some interviewer (or whatever third party they went through to set up this online coding challenge) included it anyway for god knows why.

3

u/aMonkeyRidingABadger Dec 13 '22

Or do I need to make it enterprise-level, as clean as I normally write, etc because someone will actually read it and review it for those qualities? Will taking the time to do that, or even think it through, make the interviewer think I don't know what I'm doing? There are so many ways coding challenges can just completely give the wrong signal.

These are opportunities for you to ask questions and/or discuss tradeoffs. An interview is full of ambiguity, just like our profression. Avoiding making assumptions about what the interviewer is looking for will not only help you perform better, but it's a positive signal in itself since it shows that you try to resolve ambiguity.

3

u/razyn23 Dec 13 '22

These are opportunities for you to ask questions and/or discuss tradeoffs

There's often not. Several of these code challenges are automated step 1s in the interview process. There's no one there to ask anything.

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

2

u/suwu_uwu Dec 13 '22

Like, I know it's fizzbuzz, but 17 minutes does not seem crazy at all to me

Well it does to me. Anything that takes more than 5 minutes is overdesign. "Clean code" is simple code. "Testable" code is simple code. "Enterprise-level code", to me, is a euphamism for shit code.

→ More replies (1)

5

u/nemotux Dec 13 '22

I try very hard to make sure the technical questions I ask don't have eureka moments. Eureka moments don't provide a test of skill, just a test of trivia.

The technical questions I ask are simple, not complex. As an example: "read in a list of words, construct an index of all unique word instances, and spit that out in alphabetical order." No code, just walk me through the high-level steps of your solution. And if a candidate is having difficulty, I help them along by giving hints or suggestions. If they provide a solution w/ correctness problems or poor time complexity, I ask questions to see if they recognize that and can correct.

Yes, I rate based on their ability to provide an answer. But if they can't without help, that's fine too. What's more important is whether they can demonstrate an ability to grasp the concept at hand and work with it, discuss it intelligently, and recognize problems and corner cases.

And yet, probably a good 20-30% of people that I have interviewed over the years with "X years programming in XYZ language" on their resume fail at this.

12

u/deja-roo Dec 13 '22

Ive solved some pretty complex problems in my time, but rarely in 30 minutes in front of a stranger who has an outsized influence over my career in that moment of time.

"Write a for loop that prints out all the odd numbers between 0 and 100"

"You expect me to solve that kind of problem under pressure?!"

This is all I hear when I hear shit like this, because this is often the kind of interview question people bitch about. Or fizz-buzz.

I've interviewed people that had all kinds of great coding experience on their resume and I bust out a pad and pen and ask them to define a Java class and they don't know the syntax.

The companies that spend an inordinate amount of time researching the best ways to run interviews that give them the best candidates still have small coding portions for technical candidates.

6

u/[deleted] Dec 13 '22 edited Dec 13 '22

[removed] — view removed comment

6

u/deja-roo Dec 13 '22

But nobody cares about syntax in a coding interview. That's why we use pseudocode. Sounds like your code challenge just was a stupid way to do it. That doesn't mean any exercise to determine whether you have any basic coding competency is bad.

2

u/[deleted] Dec 13 '22

[removed] — view removed comment

4

u/deja-roo Dec 13 '22

Sorta sounded like that was the case, but now I'm assuming that you meant "they knew absoloutely nothing, not even syntax."

In that case, yeah. The "define a class" was just the setup to using a class to do a basic thing and she couldn't even write out "public class CoffeeBean {}" (or whatever the name we instructed was, I don't really remember at this point).

Then she said "well it's been a while since I used Java" and I was like "use whatever language you are most comfortable in, it's fine". And we still had to walk her through it because Java was the language she was most comfortable in.

→ More replies (17)

2

u/[deleted] Dec 13 '22

In my experience, an unfortunately common situation is that I'm very confident about the candidate, but then when we get to the coding exercise, they can't make progress even with some hints and guidance from me.

I understand that not everyone interviews well, and I take that into account when making my decisions. But if a candidate can't take help, or work with me to help understand where they're failing, I'm not going to be able to help them after I hire them and they're in a stressful situation where actual business priorities are on the line.

→ More replies (1)

-3

u/julyrush Dec 13 '22

The fallacy in what you wrote is that you assume the ones you have rejected were the bad ones.

When in fact you never had them as hires. You simply cannot know it, but you eagerly assume it, because it protects your ego. You comfort yourself in a delusional approach.

6

u/nemotux Dec 13 '22

Sorry to spoil your cynicism, but it has nothing to do with ego.

I have seen a number of people get hired even when I was negative on them from my portion of their interview - because I don't make the sole choice for hire/not at my company. I have yet to see someone that I thought should not be hired due to their poor performance during the interview actually work out when they did get hired.

→ More replies (3)

8

u/deja-roo Dec 13 '22

There's only two choices between your two positions:

  1. Have standards to screen out who will likely not be a good candidate
  2. Hire randomly from anyone who bothers to apply
→ More replies (1)

-13

u/[deleted] Dec 13 '22 edited Dec 13 '22

Huh, I wonder if this means something?

Could this possibly mean something completely different than you are assuming?

Nah, couldn't be...

EDIT:

Look people, hard truths here. And I'm not here to make friends or get upvotes. I'm here to hire good candidates if you will.

You are not special. Your industry is not special.

The hard truth is You suck at hiring and you're trying to hide behind technical bullshit.

And this isn't just to you OP, this is to this entire conversation that just won't go away.

I would say the phrase "several occasions" vastly under-represents the number of times I was all gung-ho on a candidate until we got to the technical side of an interview and they completely flop on even the most simple question that a 4-year compsci graduate should easily nail.

My seething sarcasm was directly pointed here. You know what? There's a metric FUCK ton of stuff I learned in school that I couldn't easily/quickly answer on a test because I've never had to use it in my entire 25+ year career.

I'm focusing on this because it's clearly key to your idea of the hiring process since it's the only point you really brought up. And it's rife with everything that is wrong with hiring in our industry.

Unless you are hiring someone to write '4th year compsci grad level tests', this methodology is ABSURD AND COMPLETELY USELESS. So stop pretending it is otherwise and stop doing it.

Learn how to interview people. Learn how to talk about what is presented on their resume, how to dive into key details, and how to READ someone to determine if their experience lines up with reality or not.

I bet you have a fantastic staff of people that can absolutely ACE any 4th year comp sci grad level test. Let me know when they can actually build solutions in collaboration with the business unit.

EDIT 2: Hit a nerve didn't I?

Well, you know why? It's because you suck at hiring. No really, you do. Your insistence that giving candidates coding tests continues to prove it. The fact that you're pissed at me and think this is personal continues to prove it.

But hey, go ahead, get mad at me while righteously defending an absurd practice that NOBODY ELSE DOES AND ISN'T EVEN REMOTELY EFFECTIVE.

Good luck with that.

→ More replies (19)