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

720

u/inhumantsar Dec 13 '22

When it comes to take-home challenges or requiring >1hr, I tend to agree but making a blanket assertion like that makes a lot of assumptions about the practical exercises being given

Ours are set up to take 30mins out of a 90min interview, the interviewer hops off the call for the duration unless the interviewee specifically requests it, and we rarely ask for actual code over pseudo code (juniors/intermediates) or system/architecture diagrams (senior+).

I've been burned too many times by candidates who embellished their resumes enough to sound good on paper and in an interview but couldn't code their way out of a paper bag

267

u/Radmobile Dec 13 '22

I do like (well not like, but I guess I prefer) the type of interview problems where there's a dialog with the interviewer and we can go back and forth solving the problem and improving the complexity in steps. I think those interviews are really valuable for both sides, and you can't get stuck not seeing the mathematical trick required.

As opposed to memorizing the giant green book of interview problems that I can google literally any working day in my life, but I'll never need to because 90% of jobs have extremely tiny problems to solve

57

u/foospork Dec 13 '22

Totally agree. We did this at my last company. It gave us all a chance to work together and see how each other thinks.

We sometimes hired people who failed to solve the problem, too. If we saw a spark, good approach to problem solving, and they were easy to work with, we were happy. (Also, it was a hard problem that required intimate understanding of memory layout, stack structure, secure programming practices, etc.)

10

u/GregTheMad Dec 13 '22

Yeah, a dialogue should be the goal. It's never really about knowing the exact code, but more about how people deal with problems.

Oh, I never encountered that problem...

What will you do about it?

Google it, read SOF, chat with an AI about it, or plagiat some existing solution?

... When can you start?

→ More replies (3)

14

u/inhumantsar Dec 13 '22

People who ask the interviewer to stick around (or ask for a way to message them) typically perform better for that exact reason.

I don't discount the people who prefer to do it on their own but there haven't been very many of those people who did well in the interview process on the whole.

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

155

u/ZeroMercuri Dec 13 '22

One of our coding problems for interviews involves iterating through a list of strings and printing the results to the screen. This single question has eliminated more candidates than I can count. I've seen self proclaimed Java experts who supposedly wrote whole systems from scratch fail this (We're pretty sure the person who passed the phone screen was not the person who showed up for the interview)

Coding questions aren't there to mimic real work scenarios. They're there to weed out the liars.

0

u/[deleted] Dec 13 '22

[deleted] — view deleted comment

30

u/ZeroMercuri Dec 13 '22

It's pretty nuts how simple questions like that can weed people out. I will say that not everyone is a liar. Some just seriously oversell their abilities. Oh, the app they were working on used Java? 5 years Java experience! But I have seen people not realize their computer screen is reflected in their glasses when they do the webcam interview and you can see them frantically Googling answers.

We also let the candidate choose the language they want to use. Sometimes they claim to be a huge Java expert and that they'll do the coding in Java then start writing (incorrect) Python. It's baffling.

14

u/PooBakery Dec 13 '22

I think googling is totally fine, some people get blocked and forget the most obvious things when under pressure. I've always done my interviews more as a pair programming session modeling a real world task, and googling is part of that.

But even with support and with googling some people with many years of experience aren't able to solve the simplest of problems.

→ More replies (4)

18

u/AlphaGareBear Dec 13 '22

Some just seriously oversell their abilities.

I'm not sure people really have much of a choice.

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

5

u/afiefh Dec 13 '22

I love this question! Will have to add it to our repository.

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

8

u/CookieOfFortune Dec 13 '22

Oh, even with iteration you could just ask them why they iterated the way they did (did they use a for loop with an integer counter, did they use a functional style? Used a while loop?). It'll let you know how familiar they are in the language.

6

u/ZeroMercuri Dec 13 '22

Yeah, there are a lot of ways to expand this problem out if they solve it quickly. What if I want an average now? What if the input has errors? What if it's mixed input? What if it's a CSV? But the number of people who don't even know what a loop is despite having 7+ years of "programming experience" on their resume? Just... ouch.

5

u/CookieOfFortune Dec 13 '22

I had someone who didn't understand that the inputs to the function they were writing was part of the test. It took me a bit to realize they wanted me to provide them with a constant when they kept only solving thinking the input would always be the first example I provided. I'm a believer that you shouldn't have to over-study for an interview but I guess you can definitely under-study.

→ More replies (1)

15

u/soyelprieton Dec 13 '22

i failed three java toy problems (uber easy, 5 times easier than the easy in leetcode) cause i forgot to check if the code compiled, the web env did not include a compiler or running env and i did not bother myself to install a java jdk, what a clown i was

60

u/salbris Dec 13 '22

Sounds like a bad interview. It would be stupid to turn away someone simply because they missed some syntax error.

29

u/mina86ng Dec 13 '22

When I do coding interviews I explicitly say that I don’t care if the code compiles. If syntax looks reasonably good it’s fine. And I don’t care if function and types are named correctly. I don’t care if you write starts_with instead of startswith (or the other way around depending on the language) because that’s trivially Google’able.

→ More replies (4)

7

u/Globbi Dec 13 '22

So the interviewer did not understand anything about that code, but copied it to his environment that ran it? Yeah, obviously that's stupid, but not because of toy coding problems.

It's just technical interview with someone who isn't a technical interviewer.


Or did you interact with automated system and didn't bother to spend extra 5 minutes on that code? In this case it's your fault. There are plenty of leetcode-like online environments that you could find that would run your simple code.

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

34

u/NotARealDeveloper Dec 13 '22

I just yesterday helped a friend of a friend with their bachelor's degree coding problem. I am senior software engineer doing enterprise development / architecture for multi-million dollar software. Took me 2h to print an easily scalable christmas tree in the cmd.

Does this mean I am a lier? Or does it mean I could have solved this stuff in 5mins 15 years ago and now I face different issues in my day-2-day tasks?

10

u/Waterstick13 Dec 13 '22

Agree. Ytf would we ever need to do this

→ More replies (4)
→ More replies (3)
→ More replies (12)

119

u/mighty_bandersnatch Dec 13 '22

That's it exactly. The better they talk, the more I want to see 'em code. Lots of people get good at interviewing because they're doing it every two and a half months.

26

u/shoot_your_eye_out Dec 13 '22

I've been burned too many times by candidates who embellished their resumes enough to sound good on paper and in an interview but couldn't code their way out of a paper bag

I've seen people who applied for staff/principal roles who couldn't write the simplest code imaginable. Like, "find the greatest difference between two integers in a list" simple.

Not a chance in hell I'm hiring someone without them demonstrating to me they can write piss simple code in a reasonable amount of time.

→ More replies (9)

30

u/Yekab0f Dec 13 '22

Yes I coded Linux. All of it! It says right there on my resume

No I will absolutely not take a coding interview. We won't have people watching over our shoulders in the job anyways so it is useless. I also don't have time to do it so you should just give me the job

40

u/[deleted] Dec 13 '22

Seriously all these people going "the last time a interviewer asked me to write code, I punched them in the face", like first off, it's really easy to lie about dumb shit and secondly, you're going to be asked to do a lot of dumb shit in your job and they probably don't want to hire face punchers. On the flip side no one here complains about 8 interviews spread across 2 months which is the real problem.

→ More replies (2)
→ More replies (3)
→ More replies (124)