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

17

u/deadlysyntax Dec 13 '22

Beats a take-home test. Never again.

→ More replies (5)

2.0k

u/celeritas365 Dec 13 '22

I feel like this isn't really the hot take, from my personal experience it seems like there are more people anti coding interview than pro.

In my opinion we need to compare coding interviews to the alternatives. Should it just be a generic career interview? Then it favors people who are more personable provides greater opportunity for bias. Should people get take homes? That is even more of a time commitment on the part of the candidate. Should we de-emphasize the interview and rely more on experience? Then people who get bad jobs early in their career are in trouble for life. Should we go by referrals/letters of recommendation? Then it encourages nepotism.

I am not saying we should never use any of these things, or that we should always use skills based interviews. I think we need to strike a balance between a lot of very imperfect options. But honestly hiring just sucks and there is no silver bullet.

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 🤦‍♂️

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

188

u/altrae Dec 13 '22

In my opinion, the best way to interview someone technical is to have a sort of real-world exercise that the interviewer and interviewee can pair up on. It tells the interviewer that 1. the interviewee knows how to work with others, and 2. what the interviewee's thought process is.

→ More replies (114)

24

u/PuzzledProgrammer Dec 13 '22

It really is a difficult balance to strike. As a TL and now a senior manager, I’ve been in the interviewer seat a lot.

Over the years, I have gradually abandoned leetcode-esque interview questions - with few exceptions:

  • If I’m interviewing for an entry-level role (i.e., the candidate is a recent college grad), then I might throw a basic coding challenge at them - think fizz-buzz. This seems to work well as a filter function. If a candidate who’s recently graduated can’t come up with a solution for fizz-buzz, that’s a red flag to me.

  • If I get a strong sense that they’re bullshitting me.

In either case, I’ll never disqualify a candidate solely on the basis of a coding challenge.

Rather than having a candidate write code in an unrealistic and uncomfortable environment, I’ve found reading code with them to be really effective. I’ll often pull up a snippet of code that has some pretty obvious issues - e.g., a long function that’s doing many things, has poor/non-idiomatic naming conventions, and several redundant blocks. I’ll ask them to read through it aloud, explain it, ask questions, and suggest changes. This usually gives me a few good indicators:

  1. It helps me understanding their proficiency with the programming language.

  2. It helps me gauge their technical communication skills.

  3. It helps me get a sense of their familiarity with clean coding principles.

Not only have I found the above indicators useful in assessing a candidate’s qualifications for a role, it also saves a ton of time compared to writing out the solution to a tricky algorithms question.

Long story short, I definitely lean hard toward the side against whiteboard or live code exercises.

27

u/ArkGuardian Dec 13 '22

I understand that for experienced programmers their domain knowledge is pretty evident, but I genuinely haven't found a fairer assessment for someone at the beginning of their career than a short coding question.

The companies I've worked where this wasn't the cause were rife with nepotism because of course your friend's son is a "culture fit" in the culture you set.

24

u/kane49 Dec 13 '22

I mind dont writing you pseudo or code in the language im applying for. I however hate when they want me to answer codecamp style questions where the solution is to regurgitate a highly optimized solution to a standard problem and its runtime in big o.

→ More replies (3)

372

u/well___duh Dec 13 '22

Then it favors people who are more personable provides greater opportunity for bias

Not sure if you've noticed, but nearly any candidate for any job in any industry favors those who are more personable. Who wouldn't want to have a coworker they enjoy being around and working with?

125

u/[deleted] Dec 13 '22

Personable candidates are favoured of course. However, there exists a percentage of personable candidates who can’t code. On several occasions now I’ve been mentally giving a person the job only to reach the technical stage of the interview and discovering their technical skills were all smoke and mirrors.

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.

→ More replies (69)
→ More replies (2)

23

u/Kralizek82 Dec 13 '22

It has to be said that our industry attracts a lot of people that do not excel in social contexts.

Relying only on that part, you'd miss out a lot of talent for a skill that, while important, is not the most important one for the job.

And just to be clear, I'm not saying that being able to collaborate with others isn't important, just that being a coffee machine stand-up comedian isn't and in an interview you can only gauge the extremes of the spectrum.

161

u/celeritas365 Dec 13 '22

Of course it's a good thing but I don't think it should be the only thing considered.

96

u/Chance-Repeat-2062 Dec 13 '22

Yup, need to be competent at the end of the day. I'm cool if you're slow, fuck yeah take your time if you deliver better quality, but don't make my job harder by sucking so bad you bring the rest of us down whenever you turn in a deliverable. Test your shit, monitor your shit, alarm your shit, document your shit, performance test your shit.

→ More replies (10)
→ More replies (6)

65

u/dublem Dec 13 '22

I'd much rather work with a competent, reliable, and hard working person who keeps to themselves and can be a bit awkward socially than a really charming and personable lazy flake.

Like, at the end of the day, it's a job, not a social club, and ability to deliver matters more than likeability. Sure, when I've interviewed candidates, all else being equal I'd pick the more personable one, but all else being equal you're always going to pick the person with that little bit more going for them, whatever it is.

20

u/a_false_vacuum Dec 13 '22

Someone who keeps to themselves is fine, usually if there is a good team dynamic they will even open up a bit.

Someone who is lazy will be more of an issue. I've had a few coworkers who were lazy and it usually resulted in missed deadlines, poor excuses and extra work for the rest of the team. Once had a coworker go home early because the evening before he was thinking about work, he counted those hours as overtime. These kinds of people result in a lot of frustration within the rest of the team. People have to pick up the slack and deal with the bullshit excuses.

Then finally there are those who are a complete arse. These can really run a team into the ground quickly with how they act.

Do not underestimate how important it is to keep a healthy social aspect to a team. A pleasant and fun place to work really helps keep people around, else you might find yourself having trouble doing anything because you keep losing people.

→ More replies (2)
→ More replies (5)
→ More replies (18)

12

u/novagenesis Dec 13 '22

Yeah...I do coding interviews and I hate it. It's the second worst way to interview a developer, second only to NOT having a coding interview.

I've been involved with hires all 3 ways you mentioned, and the bad-hire rate has been the lowest when I used coding interviews. That's not to say there aren't a lot of false-negatives in coding interviews, and that does suck.

But when I'm wearing my hiring manager hat, I'm a lot more concerned about whether my hire will hit the ground running or waste 100k+ of my budget than whether the game was designed fairly in the first place.

→ More replies (2)

9

u/LeapOfMonkey Dec 13 '22

I would say the soft nepotism is de facto standard. People value answers they would give themselves. They value a different opinion more if they know the person. They ask questions about thins they know about, and probably person with similar background. And luck is still the greatest factor. Luck in making the right decision without knowing the future.

41

u/germandiago Dec 13 '22

There is no silver bullet. But hiring a programmer without some kind of technical assessment is the same as hiring an elite police without a physical test or hiring a singer without making them sing.

It just makes no sense. And sometimes I do hate these technical tests, they are time-consuming and hard. But hey... how do you want a person to assess your technical competence then?

If you want to have a family (I want) and be comfortable and not willing to do the extra effort, you are free to do it: switch job.

But whining? Seriously? No way...

At the end you are demanding something that noone is giving you. You are putting yourself in a worse position if you demand these absurd things...

→ More replies (23)

4

u/Fiennes Dec 13 '22

I agree. Where I work, there is a coding "technical" part of the interview. However, and we do say this up front, it does not need to work. Doesn't even need to be finished. What we're looking for is a discussion on how they used their time and their thought process. That's the important part.

→ More replies (2)
→ More replies (50)

197

u/darknessgp Dec 13 '22

As a person who has done technical interviews for a lot of devs, I can tell you that we've hired people that have not worked out due to their quality of code. But when interviewing they could answer every technical question we threw at them, spoke with confidence about various tech they've worked with, spoken well on theory, gotten great recommendations, and provided good code samples and could talk about them. We have generally allowed anyone to bring something they've written, assuming they can and wrote it 100% themselves. Otherwise, we have a small sample we ask them to write. Honestly, we've still hired people that then can't write good code. But it has also done great to filter out a lot of people that could talk theory but couldn't apply it at all.

71

u/JuliusCeaserBoneHead Dec 13 '22

Personally think it would be a great mistake to hire anyone based on resume alone. I just think if we changed the way we do coding tests to something people actually work on day to day, the complaints will be lower. People just hate being test on something they don’t do day to day

9

u/darknessgp Dec 13 '22

I completely agree. But what does a day to day test really look like? We try to hit common things that will be day to day for our devs, and yes it sucks if that doesn't line up with the person's day to day experience. But if you come in and, for example, don't even have basic understanding of dependency and generics, you're going to struggle as a senior dev with us.

→ More replies (2)

3

u/LiveWrestlingAnalyst Dec 13 '22

But when interviewing they could answer every technical question we threw at them, spoke with confidence about various tech they've worked with, spoken well on theory, gotten great recommendations, and provided good code samples and could talk about them

So true, this is what these anti code interview people just don't understand, probably because they either work for big company where bad workers dont get noticed, or just shitty companies in general where no one cares.

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

600

u/clrbrk Dec 13 '22

I really appreciate the code tests my company gave. They were very practical to the software I would be working on and we didn’t spend more than 30 minutes on them. It was more of an exercise to find out if I could interpret what was already there, then discuss what I would need to do to accomplish the given task.

123

u/ap0phis Dec 13 '22 edited Dec 13 '22

This is what mine was to get my job at <game studio>. A 30 minute technical interview where I went over some existing code, explained what it was doing, some places where I’d improve some things, a couple bad smells, and they could tell I understood it.

It’s not that coding exercises are bad; it’s that the dumb ass “how many bowling balls can you fit inside a standard Rikshaw using Lisp” little cutesie thought experiments have no practical application irl

5

u/musdem Dec 13 '22

God I wish I could get more interviews like that. I've been looking for a job and I've gotten exactly one interview where they wanted to go over existing code. I was completely unprepared because of the recruiter saying there was a coding test but it still gives me hope that there are other employers out there that test like that.

→ More replies (6)

9

u/[deleted] Dec 13 '22

Same here. I've had coding exercises for my last 2 jobs and they were both very worthwhile for me as much as the employer. The first one was with the team lead sat in the room, so we actually discussed what I was doing and I got to see his feelings on my approach (and therefore was able to infer how they do things there), and the 2nd was a devskiller online test that was more a case of "How will you approach this problem?" than a code scoring exercise. It gave me the opportunity to show that I could solve problems with restrictions in place, and also that I wasn't scared to say "This is the wrong way to do it, but you're making me do it this way. You should really blah blah blah."

These things vary, as does everyone's experiences of them, and saying "There should never be coding exercises in technical interviews" makes you sound like you only deal in absolutes.

2

u/omniuni Dec 13 '22

I did the code challenge for my previous company. I'm an Android developer, but I wanted to make sure it was something short. It was basically "display a list of items, give it a filter". It's something that could be done easily in an hour or two, probably less if you know what you're doing. My goal was to make sure the person could follow basic directions and see how they react to feedback. Those that got the job said they liked it because it wasn't difficult. Some used it as an opportunity to try new approaches. I always took the time to give everyone feedback, even if they didn't get the job. Multiple candidates that we rejected emailed me back to thank me for the feedback, and for the guidance on how to be a better developer. I wanted to make sure that it was easy for someone with a job and a busy life to do, and I didn't want any candidates to feel like it was a waste of their time. Every person who told me that it was fun or that they learned something made me happy.

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

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 (2)

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.

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.

→ More replies (3)

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?

→ More replies (8)

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.

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

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 (13)

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)

13

u/[deleted] Dec 13 '22

Yeah, sometimes when I read these discussions about hiring I wonder what solution would people on Reddit or HN actually accept? Short and abstract problem solving is bad. Longer and realistic coding challenges (take-home or supervised) are bad. Technical quizzes are bad. Expecting to see project work is bad

But at the end of the day we still need to assess people somehow. We can't just take people's word for it and give out jobs because they asked for them. There are a lot of imposters out there

→ More replies (2)

53

u/AbstractLogic Dec 13 '22 edited Dec 13 '22

So long as your code request is actually relevant to your business and the work a person is expected to do. You give out that leetcode crap and you can kiss my 20 YoE ass goodbye.

71

u/[deleted] Dec 13 '22

I want to agree, but I've had such disappointing interactions with engineers & architects with +n yoe. I just want to see if you can code something.

47

u/pug_subterfuge Dec 13 '22

Yeah. Honestly the number of people that fail even a fizz buzz is surprising

→ More replies (24)
→ More replies (47)

25

u/inhumantsar Dec 13 '22

If you want a coding exercise to be relevant to the business and representative of day to day work, then expect to get a take-home or be asked to do a paid-day trial.

That kind of work is simply not feasible in a 30 min block.

→ More replies (2)
→ More replies (13)

17

u/hammypants Dec 13 '22

i practice interviewing for the reasons the article addresses and alludes to, and i've started basically requesting that, if i am to be interviewed with coding exercises or take-homes, the company presents a senior+ to me to also engage with a similar comparative assessment.

i've been burned too many times by companies with leadership and engineering ICs that hype themselves up (and outright lie about their policies, technical culture, and other things) but are just another bunch of cargo-culters poorly building a CRUD skin over a trash database that offers nothing a good spreadsheet wouldn't beat.

→ More replies (2)

13

u/lachlanhunt Dec 13 '22

Why would you hop off the call? It’s more important to see them demonstrate their skills, rather than just caring about the end result. If your interviewers aren’t watching them write the code and talking to them throughout the process, how are they evaluating debugging skills, problem solving techniques, resourcefulness, decision making skills, ability to adapt to changes in requirements, etc?

28

u/inhumantsar Dec 13 '22

A lot of people don't handle the pressure of being watched very well. Our preference is to get them to walk us thru the process after the fact and describe their thought process by default.

Fwiw most candidates either request the interviewer stay on the call or a way to message them during the exercise.

→ More replies (5)

2

u/vasiapatov Dec 13 '22

I hear what you're saying, and all seriousness aside, imagine actually being stuck in a giant paper bag, that's sealed, and all you have is a laptop with a prolog repl

→ More replies (21)

132

u/kbielefe Dec 13 '22

Plus, your job won’t have people over your shoulder watching you code

This is the part of the argument that confuses me most. Stuck coworkers ask me coding questions all the time, and wait while I figure out the answer.

55

u/mipadi Dec 13 '22

Yeah, feels like half my job now is, “Hey, want to jump on a call and show me how to do something? Hang on, I’m going to record this.”

11

u/david-song Dec 13 '22

I really don't like this recording thing, it makes it so impersonal. It's like pair programming but with your boss looking over your shoulder too. Feels like collaboration as a performance.

→ More replies (11)

4

u/gered Dec 13 '22

Because the difference is that when you're doing it on the job you're most often doing it with co-workers on your team and, even if there are strangers involved (e.g. contractors or people from other teams you've not met before) the idea is that you're all working together to figure out the solution. That is, you're not doing this for the sole purpose of being judged. Even if the person you're helping doesn't know the answer and is asking for your help (e.g. a new hire, junior dev, etc), again, you're both working together. It's not a "skills evaluation" exercise.

This is a huge difference from doing this in an interview setting.

I don't understand how people get confused by this. It's a night and day difference.

→ More replies (1)

5

u/rageingnonsense Dec 13 '22

but if you dont find the answer in a specific time block do you lose your ability to pay your bills on the spot? Likely no. Its not the same thing

→ More replies (2)

2

u/solarmonar Dec 14 '22

The important thing there is, it's not a make or break situation, so there is a lot less pressure. Your coworkers generally don't have a lot of power over you to the extent that they can fire you on the spot if you don't get the answer to that one question, plus hopefully you have the option of telling them "let me think on it for some time" if it takes too long . The power dynamic and sense of agency is totally different despite the superficial similarity. I do have problems with proving myself this way in the first months of my job, but once my co-workers know what I know and am capable of there is less and less pressure to answer their questions.

→ More replies (4)

39

u/hparadiz Dec 13 '22 edited Dec 13 '22

The exercise I did at my old job was so simple and easy. It should only take 15 minutes. Literally just fill in a method on an already complete class. I hired people even if they failed it. It's not about the solution. It's about how you reason and approach the problem.

Sorry but I'm not gonna hire people just based on a slick resume. I've seen people have amazing resumes but be unable to actually write any code.

→ More replies (8)

17

u/owzleee Dec 13 '22

I had an interview years ago at Citibank. I had to write a Perl script, bash script and SQL script ON PAPER solving various problems. And it had to parse and run. Glad I never got that job.

→ More replies (3)

96

u/[deleted] Dec 13 '22

who would have thought programming would be one of the worst careers to get into if you have anxiety issues haha...

33

u/[deleted] Dec 13 '22

It is and it isn't. Getting into it, yeah, it's brutal. Your first few months on the job (no matter how long you've been in the industry), yeah, it's brutal too. After a while it does settle a bit... sometimes.

→ More replies (2)

6

u/JustARandomFuck Dec 13 '22

I’m the only new grad in a team consisting of just seniors. The anxiety about expectations and where my skill level should be is off the fucking charts

→ More replies (7)

44

u/lostera Dec 13 '22

As long as 60% of candidates can't pass fizzbuzz or fizzbuzz equivalents, every technical interview should include coding. When I interview, I'm not looking for a competition programmer, but every software engineer should be able to put together 20 lines of working code in 30 minutes. I don't see how that could possibly be considered unreasonable or dehumanizing.

→ More replies (2)

302

u/lanzaio Dec 13 '22

Great! Let's do it. What's your new solution for helping interviewers measure understanding and competency at programming?

As per usual, nobody wants coding interviews. Nobody has found the replacement that doesn't involve quadrupling time spent per interview. So we continue coding interviews. Yawn.

33

u/coder0xff Dec 13 '22

We turn away the vast majority of applicants at my job. They are nice people, and know lots of STEM facts. But they can't program. We have to test for that, because that's the job!

→ More replies (5)

95

u/CowFu Dec 13 '22

I gave a lot of interviews this year, my latest tech competency exercise is to show some code, and explain what the code should be doing. Then I explain what the error or bug in the code currently is and see if they can identify the problem/solution. If they can't identify the problem, I see if they can talk through a different way to accomplish the same task.

I've found it's way easier to get a grasp of someone's skill when they aren't presented with a blank slate and told to make something. Which isn't really what happens in the office anyways, you're almost always adding onto something existing or changing it.

→ More replies (25)

12

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

Fully agree with you. I understand that there are flaws in coding interviews. But I haven't found a good alternative to effectively determine whether somebody is a good fit or not. Yes, I know some people have anxiety issues and can probably code a lot better when they aren't being watched. And yes, it's unfortunate that we don't hire these people. But I'd rather miss a few talents, than have the risk of hiring someone who's not able to code at all.

I've had multiple interviews where somebody knew all the theory. Yet when I asked them to code a very simple function that shouldn't be longer than ten lines of code, they struggled writing a simple for loop in a language they said they are an expert in. I don't expect them to make the next best sorting algorithm. But I do expect them to be able to write a decent function that is capable of looping over some characters in a string.

A typical interview I do is built up like this:

- Ask some in-depth questions about the CV. Ask them what they're most proud about, what their biggest technical challenges are, and how they solved them. If they mention Kubernetes, ask them what exactly it is. If they mention REST, ask them what CRUD is. Nothing to fancy. Just to check whether their CV is not one big lie.

- Ask some more in-depth questions about the programming language they're being hired for. Expert in C++? Okay, tell me about virtual, override, VTABLEs, shared pointers, move semantics, etc.

- Do a small coding exercise in the language they prefer. Nothing to fancy. Should typically not last longer than ten minutes. And the goal is not to make a flawless program, but for me to see how they think and write code.

Some people are great in solving the puzzle in their head and then fail to write it in code. Some people lack the analytical skills to solve the program, but write beeautifull code. Some people have all the theory right, but can't program and the other way around. It's never a black and white decision. In the end we put all of these factors together and determine whether we think that somebody could be of help to our team.

→ More replies (12)

6

u/Teembeau Dec 13 '22

The two most important things I do are 1) talking about their projects and 2) asking them some fairly routine questions that someone who has been using that tech should know. For example: tell me some different ways to get output from a stored procedure. If someone claims to have done sql stored procedures for a year they will be able to answer that.

The second one weeds out a lot of bullshitters.

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

13

u/lqstuart Dec 13 '22

Coding interviews are a necessary evil to ensure some level of equity in the hiring process—you can go to a shitty school and work at a shitty company and make it into whatever fancy job you’re dreaming of if you can pass the interview bar, unlike if you want to get a similar paying job in law, finance, medicine etc.

I’ve had tons of candidates get caught big time by simple programming problems that they fucked up horribly. On the other hand, it’s also very common to get great candidates from Google, Amazon etc with weak project resumes because they never got to actually build anything (or they worked at AWS on something totally fucking stupid), so they can destroy the coding interview to set themselves apart.

It’s annoying but you can study for it and they’re kinda fun. I like to do them to try learning new programming languages.

→ More replies (1)

12

u/sturmeh Dec 13 '22

Yeah we should just hire people and find out that they don't have a clue how to code later.

107

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

Yea, hard life sparing a few hours to make 150k/yr and be in top quartile of incomes.

I rather do a take home that’s reasonably scoped over some live leetcode shit all day long

Also, “treat devs like humans” is about as tone def as it gets. We are some of the best treated employees out there. The level of cush we have at work is out of this world compared to not only most white collar workers but orders of magnitude greater than blue collar work.

Blue collar workers are laughing in anger at the audacity of that spoiled bullshit take.

25

u/All_Up_Ons Dec 13 '22

I agree 100% for experienced devs. Give me an hour-long take-home and a live code review session. Ideally, make it related to the actual job or my experience.

For juniors, just have them do fizzbuzz or something similarly trivial. Explain the % operator to them if you have to. Just make sure they can put code to screen given the right tools.

→ More replies (5)

20

u/Teembeau Dec 13 '22

"Also, “treat devs like humans” is about as tone def as it gets. "

I have to wonder about these companies. I get the feeling they're the sort of places with mountains of bullshit within their walls. Like "leadership coach" just sounds like fluffy bullshit that could be removed and would make no difference. They're all probably burning through VC money delivering little of any value.

I've worked in places where coding interviews were the least of your worries. Where people would promise the impossible and managers were verbally abusive. That was horrible. Having a test of whether you can do your job or not should be expected. You want to play violin for a symphony orchestra, they want to hear you play. Football coaches will want to watch you.

→ More replies (2)

3

u/PlebPlayer Dec 13 '22

My last take home I did in like 20 minutes. My boss told me that many candidates struggled and didn't even complete in 2 hours....which the take home stop and just give what you got in 2 hours. Apparently a lot of devs talk a big game but the coding exercise (which I considered trivial) showed they weren't as technical as they put on.

→ More replies (12)

10

u/sintos-compa Dec 13 '22

Ain’t got time for 1hr but judging from the title, what do they propose you do to weed out the VAST amount of unqualified applicants?

→ More replies (2)

63

u/mipadi Dec 13 '22 edited Dec 13 '22

I wish engineers would spend less time talking about how not to do tech interviews and more time talking about how to do them, because I never get anything useful out of the former discussions. And when developers, such as those in this interview, talk about what to do, it's always vague, hand-wavy suggestions like "ask a design question" but never any specific examples that the rest of can supposedly learn from.

Here's my hot take: No one in this industry knows how to hire a software developer, and if you are successful at doing so, you probably just get lucky from time to time, and most of your hires are mediocre, many are bad, but some are good enough that they keep the wheels on your company's bus, and then you go on podcasts and act like you're the expert.

Don't get me wrong: Leetcode-style questions are not great interview questions, and I never ask them. But look: a lot of developers can barely code, and the rest of the organization suffers because those developers bang out crappy code that no one else can understand and then it takes weeks or even months to understand and make even the smallest modifications to that crappy code, and that's if it actually works and doesn't constantly wake up the on-call engineers at 4 AM. ChatGPT is so amazing because it really can write better code than most software developers, but that's only because most developers write, at best, mediocre code.

So yes, a lot of tech interviews suck. But my God, saying it's inhumane to ask someone to demonstrate that they can do even a contrived part of their job is just so asinine. "Developers" want cushy, high-paying tech jobs but don't want to have to do anything for them. Being a software developer is maybe the easiest white-collar job. My girlfriend is a clinical pharmacist who right now is studying her ass off for her bi-yearly board re-certification in two months, on top of the all of the continuing education she has to do on a near-constant basis. My lawyer friends went to undergrad, then three years of very expensive law school, and even then, they still had to pass the bar to even be allowed to write briefs for the senior lawyers at their firm. Shit, my dad was a freakin' elementary school teacher who still had to go to continuing education classes and get recertified every few years just to teach fourth graders about the friggin' American Revolution. Meanwhile, in the tech industry, we don't require you to get an advanced degree; we don't require you to get a B.S. in comp sci; shit, we don't even require candidates to have a degree anymore, because that's unfair. And you think it's bad—no, wait, inhumane—that you have to explain how to find three integers in an array such that a + b = c, so you can get a job that pays you $150k+?

I've spent 10+ years reading these articles and the list of things I shouldn't do in a tech interview has grown long. I can't ask whiteboard coding questions, because some people get nervous during them. I can't ask brainteasers because they're useless. I can't give a take-home assignment because no one wants to do those, or has the time. I can't ask about prior experience because it's unfair to people who don't have a lot of experience. I can't ask about side projects because it's unfair to people who don't have time for side projects. I can't ask about open source contributes because not everyone has the time or inclination to contribute to open source projects. And don't get me wrong: I agree with many of those assessments, but if I take every software developer's preferences into account, I'm down to asking their name and that's about it (I also can't ask where they're from because that's offensive and might show that I'm biased against people from other places).

(I could ask for more real-world problem that are symbolic of what I actually encounter during the work day, but then I'll be asking questions like, "You have a Lambda function deployed across multiple regions, and it works in three of the four regions, but for some reason it doesn't work in one region. The function pulls messages from SQS and writes some data to Redshift. It is deployed into the same VPC as the Redshift cluster, which also has an SQS VPC endpoint, but the function is not working, but no errors are written into the Cloudwatch logs. Why not?" but honestly, I think the candidates are going to like those questions far less than even a Leetcode-style interview.)

So by all means, let's get rid of the stupid brainteaser programming questions. But instead of using charged language like "inhumane", can we use more reasonable language like "ineffective"? And then instead of talking about what interview techniques don't work, can we discuss some that do? Can we agree that software developer candidates should have at least some understanding of software development, and it's okay to ask them to demonstrate that knowledge?

10

u/hippydipster Dec 13 '22

A lot of software developers utterly lack perspective on the difficulty of their job. They will wax poetic about how stressful it is because they have to always be learning new things.

Bitch, please. Try working in the medical field. Just try being a nurse! Try being in the military. Try being a sales person. Try just about anything else and see how more stressful those jobs are.

Far too many people with CS degrees get hired and then somehow manage to output nothing at all. Until you fire them or move them to scrum master. So, yeah, you need to do some little bit of coding in interviews.

→ More replies (3)

10

u/useless_dev Dec 13 '22

Great take - I agree with (nearly) all of it.
Just this part -

If I take every software developer's preferences into account, I'm down to asking their name and that's about it

That's not really the case. You don't have to make sure your single hiring process works for every preference.
You can have multiple processes that could work for multiple preferences.
E.g. a candidate has to complete either a short coding assessment OR a take- home task etc. etc.

11

u/bladub Dec 13 '22

I could ask for more real-world problem

Then people will complain that you are trying to make them work for free. Because their answer could help you out.

→ More replies (5)

185

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

Only in this industry would you say that asking a candidate to demonstrate they can perform the task they're being hired to perform is failing to treat somebody lie a human.

I've worked at maybe 7 software companies in ~22 years and the ones that had no coding interviews hired terrible developers. Literally the only thing you can do to prove that you can code is code. For everything else, candidates can lie, cheat or bluff their way through.

Why can't Programmers... Program? is more relevant year by year.

29

u/coder0xff Dec 13 '22

Yeah, lot of wannabes in this thread I think.

27

u/mipadi Dec 13 '22

I absolutely agree. We can argue that Leetcode-style interview questions and their ilk are ineffective (and I agree with that), but asking a programmer to program is hardly inhumane. Software development is one of the cushiest white collar positions: it pays extremely well, doesn't require licensing, doesn't require an advanced degree—hell, we don't even require that developers have any degree nowadays, let alone an undergraduate CS degree—yet developers act like we're sending them off on the train to Buchenwald if we dare ask them to write a line of code in an interview.

I wish these interviews would talk more about what does work rather than what doesn't. They always say what not to do, but at best, the suggestions on what to do are always vague, hand-wavy suggestions.

→ More replies (1)

31

u/AbstractLogic Dec 13 '22

My company opens up our code base and lets you drive. Go ahead, start talking, tell me what everything does. Get in there, find the fat, show me how you read code.

Because you know what’s more value then someone who can write an inversion algorithm to an RB tree? Someone who can read and understand immediately the code base they will be working on.

→ More replies (4)
→ More replies (29)

33

u/devidya1 Dec 13 '22

I generally ask for candidates to find the second largest number in an array. I've been trying to close this position for 3 months but none of the candidates are able to solve this. This is a question I would ask freshers but even lead level candidates are not solving this.

35

u/miyakohouou Dec 13 '22

It’s not a bad question but I do think if you’re finding that nobody can solve it the you need to either consider that you are presenting the problem badly or you need to recruit better.

Finding the second largest number is a bit harder than finding the largest because you have more edge cases (on a single element array do you fail or return the element, on an array full of the same value do you return that value or fail) and it opens up a lot of ambiguity around future requirements (are you going to want the nth largest next? Then it makes sense to sort but otherwise it’s much more efficient to do it in a single traversal).

Again, those can be great things to see if an candidate will pick up on them, but interviews are a different environment from the real world and it’s not always clear how much questioning and pushback a candidate is expected to do. I can see that causing a bit of solution paralysis if it’s presented wrong.

→ More replies (31)

2

u/PGRacer Dec 13 '22

Where do you work, I'm looking and can solve this in 10 minutes.

→ More replies (10)
→ More replies (29)

53

u/stay_fr0sty Dec 13 '22

Oh cool! Story time.

I had a Chinese student coding for me at my research job at a US University. It's a pretty sweet gig for a student. They work 20 hours a week and go to grad school for free, plus they get a salary.

This guy would come in late, leave early, chat with his friends, never work late, and IT even caught him downloading movies...not the best worker...but students are hard to fire and I when he actually worked it was usable work so he was still a net plus for me so we kept him for the semester.

Anyway, outside of work this dude was DRIVEN. His dream was to work at Google, Facebook, Amazon, Microsoft...you know the kinds of places with cafeterias, and a dozens of other perks...OH and a bunch of H-1B visas to hand out so foreigners remain in America while applying for their green card.

Every night after work and after school he would go home and work on solving interview exercises from those companies for six hours a night. HOW did he know the exercises? There was a Chinese website that he would visit where people that interviewed at those companies posted the questions they were asked. And of course, they posted the solutions. When this guy went on interviews at the end of the semester, he had literally already seen every single "exercise" that he'd be asked to do. He knew them inside and out, could explain them, could talk about the "gotchas" etc...

His #1 choice was Google. He kicked ass on interviews at Facebook and Microsoft already, but he really wanted Google. He goes in and it's kind of a rigorous process. You get interviewed by a bunch of people and they ALL have to agree to hire you because you'd be a good fit for the company. He was crushing it, until he got to the last interviewer, and older Chinese man.

The older Chinese man asked him to solve a problem, which this student knew of course, and solved it. The older Chinese man says: "You knew the answer already. I can tell. Will you admit it?" The student said he knew he was busted so admitting it would show honesty and he said, "Yes. I wanted to be prepared." The older Chinese guy says "you studying the exercises before the interview means I can't see how you work out a problem because you already know the answers." The interview with that guy ended after the student tried to worm he was back into a "good" interview.

The student comes to me a few days later and says Google rejected me. I think it was this racist Chinese guy. He doesn't want other Chinese working there...he wants to be special, and he told me the story.

Anyway this guy ended up taking a job at Amazon working on algorithm improvements. He says it's boring but it pays well.

I just thought this sub would find it interesting how much people actually prepare for these exercises, and how most companies fall for it. Or maybe they don't "Fall for it" and think it's a good thing?

TLDR: I knew a kid that worked 6 hours a night for a semester on memorizing every exercise given by big companies...he got busted at his dream company, Google, and now works for Amazon.

17

u/mr_birkenblatt Dec 13 '22 edited Dec 13 '22

the purpose of the tests is not whether you can find the solution. the purpose is to see how you tackle a difficult problem. google doesn't want you to solve problems that already have a solution. they're interested in people who can solve new problems. if you know the answer of the test beforehand there is nothing for the interviewer to see on how you would approach a real problem. they would need to come up with an even newer problem; one that you haven't read the answer for yet

→ More replies (2)

42

u/versaceblues Dec 13 '22

Lol im still baffled by the fact that people think that practicing the answers to common coding problems is cheating.

17

u/MrJohz Dec 13 '22

I think "cheating" is a dumb word to use outside of school. That said, the purpose of an interview is to see how you respond to different challenges. If the answer turns out to be "I look up the answer online, and reproduce it exactly", then they might be a problem later on when you start working on a project where the answers aren't available online, and you need to come up with some original ideas.

I think part of the problem comes from these leetcode problems where there's usually only one right answer and you just need to figure out the trick. If that's all you're asking, then obviously it makes sense for people to learn the trick beforehand if they can. Which is why I think more interviews should involve challenges that don't have an obvious right answer, but where you can go in different directions and have genuine discussions about tradeoffs - precisely the sorts of coding interviews that this panel seems to be criticising.

→ More replies (3)

36

u/ILikeChangingMyMind Dec 13 '22

I doubt Google uses "common" problems.

This guy knew the answers to obscure problems, because he learned about them from another applicant. That's not him being good at coding, that's him cheating by learning the answers to the test ahead of time.

When you get surgery, would you want the doctor who studied medicine, and only got an 80/100 on his final ... or the one who didn't study, memorized the answers to the tests, and got 100/100?

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

8

u/SnowyNW Dec 13 '22

Alright so because I don’t have a job now I’ll be disqualified from getting one the only way that qualifies me?

8

u/NadirPointing Dec 13 '22

Best coding interview I ever saw had a device and a well developed and open SDK and asked them to toggle the led. Took them about 30min with Google and their dev environment. It was practical, it was job related and didnt take forever.

46

u/ILikeChangingMyMind Dec 13 '22

This is what that "hot take" sounds like to me:

We should never assess programmers in interviews, it's unfair to the bad programmers

Here's my "hot take". I once had a friend of a co-worker apply for a job with my team (I was the front-end team lead, his friend was on the back-end team). Being a friend of an employee, he was fast-tracked, and he breezed through the first few interviewers.

Then he got to me, and I gave him fizzbuzz. Yes, actual fizzbuzz; our CTO would later get mad at me for not being more creative, but I'm still a big believer in using regular old boring fizzbuzz. For those not familiar with it see Why Can't Programmers.. Program? by Stack Overflow co-founder Jeff Atwood.

It took the applicant seventeen minutes to write a fizzbuzz! For reference, even fresh out of college/bootcamp applicants still completed it in < 10 minutes!

If I hadn't given him a coding exercise, he almost certainly would have gotten the job ... and I would have been stuck with a terrible programmer who needs 17 minutes to write a for loop and a couple if statements!

8

u/lachlanhunt Dec 13 '22

I’m constantly surprised by the number of developers I’ve come across that haven’t seen or done fizzbuzz. I’ve done a variation of it before at a previous company where I gave them an intentionally broken implementation of it, and had them find and fix the bugs, or realise the code could be clearer by refactoring it.

8

u/ILikeChangingMyMind Dec 13 '22

This was my point (to my boss): most people wouldn't even know what it was. And I still think it's fine for interviews, even if the applicant does know it, because it's not about "surprise, here's a hard problem" ... it's "can you actually code a basic solution?"

But, my boss's point was that, if someone did know fizzbuzz's history, they might think we were lame for using it, which is why he wanted me to use something more creative.

16

u/[deleted] Dec 13 '22

A good senior engineer can write simple fizzbuzz in 3 minutes.

11

u/nxqv Dec 13 '22

I haven't written a line of code in like 4 years due to taking a career gap and I just did it in about 3 minutes. Where's my $200k salary and why's it locked behind 6 months of grinding leetcode?

20

u/hparadiz Dec 13 '22

I've never in my life been asked to do a fizzbuzz and wouldn't even know what it was if if I wasn't reading about it randomly on reddit and HN.

I agree though. It's just that funny enough the % operator is almost never used in my day to day coding.

17

u/ILikeChangingMyMind Dec 13 '22

For the record, I didn't just call it fizzbuzz and expect them to know it; I explained the problem :)

And as for the modulo operator being the issue, I think I told people about it as part of the question, because I agree that knowing it is more trivia than proof of skill. But the thing is, he didn't spend 16 minutes not knowing the operator and then figure it out on minute 17 ... he spent 17 minutes putting the whole thing together.

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

2

u/Adventurous-Bee-5934 Dec 13 '22 edited Dec 13 '22

IMO, it's not about how long to finish it, if the applicant displays the proper understanding while writing it out but get's stuck on a simple/silly mistake that takes up a lot of time that's not an indication that that's a bad developer imo.

edit: to an extent, that is

→ More replies (2)

39

u/[deleted] Dec 13 '22

"Please find the maximum value of this array"

"I'm treated inhumanely. This disfavors people with FT jobs with families"

7

u/germandiago Dec 13 '22

Thank you for expressing my opinion.

6

u/Confused_AF_Help Dec 13 '22

I would take a real life application test over those Hackerrank leetcode bullshit any day.

44

u/GoofAckYoorsElf Dec 13 '22

Couple things that I can say as a dev with a good 20 years of experience:

  • code challanges should not be about coding but about pair programming and the chemistry between the devs

  • yes, there will be people looking over your shoulder; there should be because knowledge transfer is vital for a working and stable team, especially when it comes to devops. There must not be head monopolies to reduce bottlenecks and the truck factor. Pair programming helps a lot.

  • no, code challanges should not be about showing you can write quick sort algorithm in assembler from your memory! No, you should not have to know how to code it without using google! No, you're not a bad developer if you can't write a fifo queue without googling! If anyone tries to tell you that, they are nuts! Don't work for them! Me and my colleagues use google (respectively other search engines) on a daily basis. It's one of our most essential tools! You can't know everything from the top of your head and you shouldn't be required to. The community of devs is huge! Make use of it! If someone tells you not to, they have no idea what they are talking about! Don't waste your time on them!

  • A good job is done in a good team, a good team is defined by the chemistry, the soft skills of the team members, not their hard skills. If you want to know whether the position you're applying for is a good one, get in touch with the peope you're going to work together with. See if you get along well! Are they cool people? Is it a respectful and appreciative environment? Great!

  • After a couple years of experience the tides turn and it's not you applying for a job anymore, but the company applying for your experience and expertise! Don't think you need them! They need you! Make use of it!

12

u/[deleted] Dec 13 '22

about pair programming

I wrote my first computer programs in the 1970s. While I have always loved the idea of pair programming it just hasn't ever happened in my life or really for anyone else I know.

A good job is done in a good team, a good team is defined by the chemistry, the soft skills of the team members, not their hard skills.

Bleh. Just no. If you have "soft skills" but no "hard skills" you will be writing bad code.

Also, I'm a super gregarious and social guy, but that doesn't mean I'm not aware that there are a ton of very good programmers who aren't like me. It is unfair and uneconomic to not consider a strong candidate just because they aren't very sociable.

8

u/julyrush Dec 13 '22

Sorry to be the one breaking it to you, but pair programming is so much the last millennium. Spooning is the new kid on the block:

https://m.youtube.com/watch?v=8wUOUmeulNs

→ More replies (2)

6

u/All_Up_Ons Dec 13 '22

I disagree that hard skills don't matter. They matter more than soft skills a lot of the time. But interviews constantly measure the wrong hard skills (arbitrary knowledge, puzzles, and speed instead of code fluency and legibility).

→ More replies (8)

2

u/tjafaas_31 Dec 13 '22

I mostly agree, except on some essential code basis. Some code knowledge are to be known in the fly and demonstrate formal training / experience.

Coming from a 3+ year of C# developer, the person should know what a using block is for, or difference between throw; and throw ex;.

4

u/GoofAckYoorsElf Dec 13 '22

The basics, of course. I cannot build a top notch multi million dollar app with a band of noobs. But the likelihood of failure, in my experience, is higher with a bunch of egomaniac experts that would love to murder each other, than with an appreciative and respectful family that just knows the basics and how to google. Hard skills can easily be learned, soft skills, especially chemistry between team members not so much.

→ More replies (10)

19

u/pfp-disciple Dec 13 '22 edited Dec 13 '22

I once asked a college graduate to write code to add the numbers from 1 to 100, in any language he chose or even pseudocode (I would've even accepted (1+100)/50, but I didn't volunteer that). He couldn't do it, and seemed offended that I asked.

Edit: so others can learn from my mistake: I meant to say that ((1+100)*100)/2 is an acceptable solution.

11

u/joeyjiggle Dec 13 '22

I don’t think you meant ‘/‘. Interview failed ;)

6

u/pfp-disciple Dec 13 '22

Lol, you're right. That's what I get for interviewing near midnight.

2

u/joeyjiggle Dec 13 '22

func ssum(start, end int) int {

return (start + end)*((end - start + 1)/2)

}

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

10

u/shizzy0 Dec 13 '22

Programming tests should ensure a candidate can code, a low bar; write strcmp(). It weeds out the people who can talk a good game but can’t code themselves out of a paper bag.

→ More replies (2)

5

u/dublem Dec 13 '22

Coding exercises are great, as long as they're representative. Why would I have a problem showing that I'm comfortable doing the work that the job I'm applying for will involve?

What sucks are unrelated games, gotcha puzzles, and exercises whose purpose is purely to demonstrate that the candidate has studied interview exercises.

...or a volume of work that is completely excessive to simply demonstrate competence in the given area.

A good interviewer at a good company should be able to explain exactly how every part of a technical exercise relates directly to real on-the-job work.

5

u/MisterCrispy Dec 13 '22

I've told this story before but there's a good reason why I refuse to take coding test projects unless they meet some VERY specific guidelines.

Way back in the pre-dotnet asp/vbscript days, I had interviewed with a web design firm as a lower-midlevel developer. The coding exam was to build an image gallery where someone could upload an image file and it would automatically show up in the gallery with a title and description. The catch was it could use NO database whatsoever. No xml, csv, etc.

I came up with, what I thought at the time, was a very creative solution to the problem given the restrictions and time frame. They responded with "This seems much more amateur than what we would have expected from your resume. Thanks for applying."

Fast forward about 6 months and I randomly stumble on to a website that was built by the firm I applied to and I noticed that the gallery they used seemed a bit....familiar. Checking the source code, there was my client code with even the comments left in place so I can only assume the server-side script was used as well.

They used the interview test for free development.

I raised a big stink about it but was met with essentially "we own all the code done during an interview". I didn't have the time, funds or energy to fight it more. The bright side, the company went out of business about a year later.

Since then, I only do a code test if it A) cannot possibly be used for something legitimate and B) won't take more than an hour or two. Otherwise, they can look at my work history, check my references and check out some portfolio pieces and open source work that I've done.

→ More replies (1)

19

u/adokarG Dec 13 '22

A mediocre software engineer will bitch about coding interviews because they probably don’t have strong theoretical fundamentals and think that problem solving is about “memorizing”. Most people I find competent had no problem doing some prep for coding interviews, it’s not even as hard as people here make it out to be. They’re just doing it wrong.

If you think memorizing shit is how you pass coding interviews then you’re doing it wrong. I’ve had TONS of people interview who clearly just memorized all of LC, they crumble under any hard questioning about the solution. You’re supposed to understand the solution, and thats why the majority of memorizers don’t make it into FAANG. These problems can very easily be categorized into common algorithm applications, which really shrinks the amount of studying you have to do. If you can apply all of them correctly you should have no problem solving the question and convincing your interviewer that you’re not an idiot. I have had a super high pass rate at top software/hft companies following this approach.

8

u/nxqv Dec 13 '22

Memorizing has got to be by far the least time efficient way of doing leetcode too lol. Filtering those people out is probably actually a good way to filter out people who can't think programmatically enough to even figure that out

30

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

I've been writing software professionally for over 20 years. I've had several jobs in the industry over that time. And I'd like to think I have some idea of what I'm doing. I don't want to make a stupid amount of money, just enough to be comfortable (i.e. I can pay my bills, and enough money to hit the bar with the mrs. every Friday). And I don't want fame for writing something. And I especially don't want to work for one of those awful FAANG/MAANG/TANG/KANG/whatever places.

Why does this matter? How does this relate? Because every interview I've had, and gotten the job, I don't think I ever needed to write a coding exam of any kind. I might have had 1 where I had to write something very small like fizzbuzz or whatever and that was it. And I am super happy about that. I mean I've forgotten so many things over the years, and the field of computer science is so vast it's impossible to know everything before hitting an interview. I dare say I'd probably never be able to get a job now if they do all of these shitty tests.

But, more important than just being old and forgetting things, I also have a major anxiety issue to deal with. In the interviews I've had where I have had to write an exam (and clearly did not get the job), I've had:

  • Severe sweating

  • Shaking

  • Unable to think

  • Heavy breathing, bordering on hyper ventilation.

  • Tightness in the chest

Basically, it's a panic attack every time. It's horrific.

I know, some of you will say "Get over it". I can't get over it, it's a mental health issue. Beyond that, I am still capable of doing the job. And sometimes I even do it pretty well. So, do I not deserve to have a job in this industry because I can't handle the tests?

Judging by many of the responses here, I'm guessing I don't.

15

u/insulind Dec 13 '22

I 100% understand where you are coming from, I do. And if you were interviewing with me I'd suggest we try something different rather than coding in the interview you could 'take them home' and we'd talk through them in part 2.

Your personal needs shouldn't be ignored and where possible people should adjust.

... however...

I, as a hiring person, need to know if you can do the job. You can write a great CV with all your experience and a fantastic cover letter and talk about high level concepts in interviews but I've seen that and I've been those very same people, crash and burn when I stick them in front of a computer to do what we are paying them for... Write computer software.

The truth is you are paid to program you cannot honestly expect not that have that tested in an interview process in some manner

→ More replies (8)

9

u/shizzy0 Dec 13 '22

The alternative to idiosyncratic programmer tests for every interview is obvious: make computer programming a real licensed engineering profession. Take one test. Once you pass that, you never have to take one again.

But do you all want to do that? No, you don’t. So simmer down and take your stupid tests.

11

u/mipadi Dec 13 '22

Exactly. A commenter in this thread asked, "Would you ask a brain surgeon to perform brain surgery in 30 minutes on himself?" Well, no, but a brain surgeon also has a medical degree from an accredited medical school, a medical license, and has to get re-certified by the licensing board every few years, as well as engage in continuing education. Shit, even my dad, a friggin' elementary school teacher, had to do continuing education and get certified by the state to keep his job.

Personally I prefer not having to be licensed to do my job, but in exchange, that means no place I can apply to can assume that I have any knowledge or skills whatsoever.

3

u/OzorMox Dec 13 '22

If this was an option I'd actually prefer it. The industry is just too fast moving and vast to have a certification that doesn't immediately become obsolete unfortunately.

→ More replies (1)

14

u/bigorangemachine Dec 13 '22

Our whole company is ran by coders.

Our take-home is super easy. We still have 3 interviews but we don't have any "auto failure rules" except being a dick.

I do the first technical screening and I ask questions that are more around how things work together. I try to keep it light and fun. I try to build the people back up who need it when they get a question wrong.

You'd be surprised the number of people I give just a pass for them to kill the take-home. The only part I have to worry about the take home is if I pass them if I think they can pass the take home & they are a good fit for one our clients

11

u/manuscelerdei Dec 13 '22

I can't tell whether we're overpaid entitled babies who can't live without free snacks or human beings who are being stressed beyond our limits in a toxic culture that is shared among literally every tech company.

→ More replies (2)

8

u/wesborland1234 Dec 13 '22

An underrated benefit of coding interviews is that they give self taught people who may not have the right credentials a chance to get into the industry.

2

u/thereshegoes Dec 13 '22

That's also because some people with credentials can't code

16

u/vectorized-runner Dec 13 '22

How is this bullshit upvoted so much lol? If you can't program maybe you shouldn't have that job

→ More replies (2)

4

u/Zyklonik Dec 13 '22

What is the alternative? None that is viable. I foresee this mode of interview process to last for a very very long time. To all the sane folks reading this comment, don't get dissuaded or swayed by this ridiculous post - grind, and always keep yourself sharp. In the end, you have to pay the bills and feed your family, no one else will.

4

u/akotlya1 Dec 13 '22

Years ago I had a live coding interview that went badly. The question I got was "create a simple function to list the prime factors of a given number" I just fucking spaced. It was really dumb, and I know how to do it now but during the interview, I panicked. I sat there sweating for 20 minutes completely failing to produce any usable code as I spiraled. Ironically, I was later hired by another company that got acquired by the company whose interview I failed so miserably. I ended up working under the same guy who basically thought I was a complete idiot.

I realize now what I should have said when asked that question "Rather than try to figure this out on the spot I would normally just google this kind of problem and save myself the time I could spend on more impactful business problems"

4

u/picsofficial Dec 13 '22

I don’t understand though, I work full time, have a family and am about to start my CS degree online uni at 26 and I CANT WAIT for coding challenges to prove what I’ve learnt (bootcamper for a while now)

→ More replies (2)

12

u/DrunkensteinsMonster Dec 13 '22

The anti-coding exercise circlejerk is getting completely absurd. I have yet to see anyone come up with a solution that is similarly effective in weeding out false positives.

7

u/aWildCopywriter Dec 13 '22

Hired a mid-dev once that couldn’t sort an array.

There’s tests and then there’s tests.

17

u/[deleted] Dec 13 '22

These coding interviews are not hard. You need to memorize like 15 algorithms and practice them on leetcode for a couple of weeks and then you pass the interview and get the job paying $200k a year.

> It favors people who have time to do them. Disfavors people with FT jobs and families

Ever consider that these companies are specifically trying to filter out the people that aren't obsessed with programming and computers?

→ More replies (2)

21

u/Teembeau Dec 13 '22

As someone hiring people, I get to decide whether you do a coding test or not. It's stated upfront before you apply. Don't come if you don't want to do it.

If these people don't want to do it, if their resources are so bloated that they don't want programmers to demonstrate their skills, that's up to them. If you want to join an orchestra, you're expected to play a violin. If you want to join a kitchen, the chef will ask you to make a roux sauce.

I give people an hour to code something that should take less than 30 minutes. Something quite simple like setting the start of sentences to be a capital letter, or defining the class structure for a recursive employment chart. They get a laptop with Visual Studio and browsers for Google. That is what will be on their desk at work.

90+% of people pass, which is fine. I don't expect many people to fail. If their resume is accurate, they should pass it. All I'm testing for is people bullshitting on their resume. That's the limit of it. I don't believe that in a short period of time I can actually tell if someone is mediocre or great. I've never found a reliable way.

6

u/gc_DataNerd Dec 13 '22

I mean how do you determine that candidates can actually solve a problem or at least code their way out of a paper bag. I agree a leetcode hard problem for a web dev position may be too much. However, a simple code review problem or a system design problem actually exposes the candidates experience and their ability to work through a problem.

3

u/[deleted] Dec 13 '22

Our coding exercise is mostly "Can you tell us generally how this web page works?".

The number of developers who have resumes listing 10+ years of full stack web development experience, but clearly have no idea how to use the web developer tools is shockingly high. To me, it is like a carpenter who doesn't know how to use a hammer. This is a tool that you should be using nearly every day. How is it not as familiar to you as the back of your hand?

→ More replies (2)

3

u/No-System-240 Dec 13 '22

look, if you are good and you fail an interview who's going to lose? you (a good developer who can get another job) or the employer (who lost a good candidate)?

as for 'treating devs like human beings' ... well if you are not treated well then leave. software development this is not a blue collar job and you don't have to take abuse from employers. not only do you have plenty of choices, hell you can start your own solo software business ffs.

3

u/tom_wilde Dec 13 '22

I refuse all forms of ‘coding test’ when I’m interviewing for a new role - it’s a massive red flag for me.

On the other side of the fence I simply talk to the candidates. I know.. radical.

src: been at this a loong time.

3

u/nailernforce Dec 13 '22

In the service industry people do trial shifts and spend their whole day interviewing. Sure, they get paid, but you wouldn't hire a baker without seeing them bake, or a chef without seeing them cook.

5

u/piperatomv2 Dec 13 '22

I think asking to code during an interview is a fine metric but as someone with a FT job and a family I cannot for the life of me remember all the different patterns. Instead I like something like let’s code a tournament scheduler together or a game engine shell. At my experience and age I can relate to problems but difficult to remember raw DS and algorithms.

6

u/TikiTDO Dec 13 '22

When I'm watching people coding, I'm not looking for their amazing solution. I'm looking for how they develop, what processes they use to solve problems, when and where they go for help, what sort of tools they use, and how well they use those tools. It's entirely possible to bluff your way through an interview with a moderate knowledge of programming, but it's a lot harder to bluff an ability to think on the fly, or the muscle-memory instincts that you develop overs years of experience. However, if I ever encounter someone that just flying through stuff because they've clearly done a lot of it my normal solution is to just throw in a few more challenges until they are struggling. In an interview I just want to get an understanding of whether you'll be able to adapt to challenges, or if you just want to do the bare minimum.

Incidentally, the way I normally structure interviews is "You're at your work. You can use whatever you would normally use. You can treat us as team members and us ask questions you would normally ask such people. Here's the project requirements. Go." Also, we usually give them an idea of what they will be building ahead of time, with the expectation that they come prepared. Honestly, one of the most interesting things in this case is to see where they go to first. Will they draw out block diagrams? Wireframes? Just jump into code? Do they start with discussion and requirement gathering? Is their environment ready enough given the information we provided them ahead of time? Little details like that tell you so much more.

You shouldn't need a multi-hour assignment for any of this stuff either. If you are a sufficiently experienced developer yourself, watching someone working for 30-45 minutes should be enough to tell you a lot about how they think, what sort of behaviour you can expect in meetings and PRs, and what sort of roles they can fill when they start.

→ More replies (1)

6

u/hindustanimusiclover Dec 13 '22

It's like saying there shouldn't be any auditions for acting jobs. Stfu and study for the damn thing like the rest of us

4

u/shoot_your_eye_out Dec 13 '22 edited Dec 13 '22

I broadly disagree with this article.

There are certain coding exercises that aren't appropriate and don't help an employer identify talent. Many are far too difficult and weed out good candidates for absolutely no good reason. Others are too domain-specific, and weed out excellent candidates who are perfectly capable of learning that domain on the job.

Others challenge candidates on technical skills that aren't important for the job; many coding challenges have too much emphasis on algorithmic rigor. But what if the job's primary challenge is addressing business complexity? What if good communication skills are vitally important? Designing a quality public API? Integrating with other third-party software?

There's a whole world of skills a good developer has that may not involve algorithmic prowess. They need to be able to code for all of these roles, but the problem isn't necessarily algorithmic.

Here's how to get a coding challenge right:

  1. Focus first on weeding out candidates who simply aren't qualified. For years, we asked candidates to write code to find the greatest difference between integers in a list. I don't need to bother with a candidate who cannot provide a working solution to a problem this simple.

  2. Identify a simple challenge (under an hour; ideally under thirty minutes for most candidates) that roughly resembles the sort of complexity a candidate may have to deal with in your codebase and/or business. Keep it simple.

  3. A combination of these two challenges can be invaluable during the hiring process. The first screens people who aren't qualified, and the second gives you some good material to dig into during the interview and a little better understanding of how the candidate approaches a problem.

source: guy who writes talent assessment (interviewing) software that includes a 'coding challenge' product. The problem isn't coding challenges--it's our usage of challenges.

4

u/[deleted] Dec 13 '22

I disagree 100% if you have a little bit of experience interviewing people you know this is nonsense

4

u/[deleted] Dec 13 '22

If you don’t ask at least one simple fizzbuzz coding question, you are at serious risk of hiring somebody who can’t handle even a simple fizzbuzz coding question. The candidate pool is full of people with great resumes and degrees from good schools who can’t handle a simple fizzbuzz question.

If you are competent, and interviewing for a job, and they don’t ask you even a simple fizzbuzz coding question, you are at serious risk of having to work on a team of people who can’t handle a simple fizzbuzz question. Look elsewhere.

5

u/iluvatar Dec 13 '22

I'm hiring people to write code. If they can't do it in an interview, they won't be able to do it when they're working for me. I'll stick with it.

9

u/stinkylibrary Dec 13 '22

I find it appalling that I can write 20,000 lines of custom code that literally runs an enterprise level e-commerce site but you won't hire me because I am unable to pass your dumb algo test that proves nothing.

Oh well, I'll just go work at a way better place and never look back.

→ More replies (1)

2

u/IlIllIIIIIIlIII Dec 13 '22

As someone who gives technical interviews on an almost daily basis during recruiting season. There's way too damn many cheaters for the take home tests. Today I had someone bold enough to try cheating on a video call interview.

2

u/billsil Dec 13 '22

Well I'm about to hire someone. I asked my buddy at Amazon and he told me to pick something off leetcode and to know the different options.

What do you want me to do? I thought that's what internships are. What do you do for someone with 10 years of experience? I'll give you a 6 month internship at a reduced salary and cut you if you aren't what we expecting, but no senior dev is going to take that.

The way I see it is if you want me to really respect your time (and my time), I should not do an all day interview, not send you home with an unpaid assignment (you said you could have a family), and to not give you an onsite coding test (again family). Way I see it is the coding test isn't something you need to study for. You know it or you don't. You've had 10+ years to study.

After 16 years at a single company, I jumped ship. I reviewed maybe 10 hours total in the week before my interview. You're solid. Just show it. Review a few topics you're rusty on.

2

u/KnifeFed Dec 13 '22

Another LinearB spam account.

2

u/[deleted] Dec 13 '22

Talkers vs doers debate!!

2

u/Average_Life_user Dec 13 '22

won’t have people over your shoulder watching you code

Yes you will. Both of my jobs I have working have involved tons of pairing sessions, often 1-2 per day. On top of that, I frequently am coding in front of my superiors when I have questions and I am explaining my thought process.

Not necessarily arguing for live technical interviews, but it’s definitely a skill that they look for

2

u/bye_petrol Dec 13 '22

I personally prefer live code exercises than 'take home' - exercises...

2

u/[deleted] Dec 13 '22

I thought this, until I started interviewing people for dev positions. After you hire the first person who has somehow memorized a decade's worth of facts and details about all the technologies in your front- and back-end stacks but can't write a single function for a web endpoint to save his life, you start having live coding as part of the interview. That said, I don't do brain teasers or leet code exercises where need to find the absolute optimal solution, just simple but realistic problems.

If that offends you, okay. A one-liner declining the interview is fine, no hard feelings. Maybe it's our loss - though we probably wouldn't get along in any event - but I am not taking chances on my ability to sniff out fakers ever again.

2

u/saintex422 Dec 13 '22

I love when senior engineer coding interviews are like taking a final exam of everything I learned in college 10 years ago and have not used since and will not even use in the role I’m interviewing for. I’m sure that is a good way to find candidates

2

u/Zimmax Dec 13 '22

I don't mind a little code-golf during an interview, especially if applicant doesn't have public projects/open-source contributions to speak of.

"Homework" tasks, however, are never a good idea.

2

u/jacobbeasley Dec 13 '22

We do code tests, but they're pretty basic to just make sure the person understands basic coding concepts like variables, flow control, functions, and classes. It is 15-30 minutes. We do 2-3 quick ones and then transition to talking about software architecture, systems architecture, and the software development lifecycle. And yes, there is some diagramming on a whiteboard. Nothing too heavy, but we need to know you know the basic concepts.

2

u/[deleted] Dec 13 '22

Just had someone cancel an interview today, thanking use for the test, because the code test let them find out that they actually want to switch fields.

2

u/Omni__Owl Dec 13 '22

I really hate those generic tests where you are sent an email with a link to a test, and then you have like 2-3 hours to do them. All you get are a couple of descriptions of like 4-6 algorithms and then you are expected to make it like that.

Whenever a job sends me one of those my heart sinks and I stop responding. Those do not define my worth as a programmer, or anyone. They are dehumanising tests that checks if you are a robot or not.

2

u/shaidyn Dec 13 '22

The best technical interview I ever had was for my current job. I do selenium automation and they gave me access to their QA environment and said "here's a simple task. Automate it."

So the test was to show them I knew how to do EXACTLY WHAT I WOULD BE DOING DAY TO DAY AT THE JOB.

I smashed it and got hired.

2

u/CitizenJosh Dec 13 '22

Paid interviews FTW!

At CloudSploit, we would have qualified applicants do a specified PR on our open source repo and pay them a fixed amount for their completed work even if we had to clean it a little to use it.

2

u/[deleted] Dec 13 '22

Absolutely terrible take. The job is to write code, and during the interview, you don’t get asked to write code? Come on. It’s not hard. I would refuse joining a team that didn’t test my ability.

→ More replies (1)

2

u/pachinoco Dec 13 '22

Coding exercises only make sense for new grads. Anyone with full time work experience shouldn’t have to do them anymore.

2

u/theboned1 Dec 13 '22

We give all our prospective coders a test that involves making something functional. Take it home and send it in. No time limits. Speed is nice, but not a deciding factor at all. Im the boss, not a code guy. My job is to see what they did, how well they followed instructions, and how well the thing functions. A Lead Programmer looks at the code and determines whether its good code, or bad code, or complete nonsense. This approach works great because if done well, most people do about the same code wise, but its how they did everything else that sets them apart. I have never picked someone based on their speed. NEVER!!

2

u/magnakai Dec 13 '22

My company does a coding test as part of a longer interview process. I occasionally run them.

The task is very small and we do it straight into an online IDE that’s already set up. I emphasise to the interviewee that it’s not a memory test, but more of a problem solving exercise. They’re free to look things up, in fact I often encourage it. If they get genuinely stuck, I’ll prompt them along. I try to get them to relax and aim for it to be a fun chat about code and practices whilst doing a little exercise. That’s not for everyone of course, so I try and adjust it to what the interviewee is comfortable with.

I’m very aware of the stress of the interview situation and the panic that can set in when someone is watching you work. I don’t particularly care if people make glaring mistakes as long as they can explain it when I ask them about it. Better yet, they catch it themselves!

Communication skills, breaking problems down, understanding the problem/asking for more info, etc are as much what I’m looking for as actual coding knowledge.

At the end of the day, I have to judge whether I’d want this person on my team. I’m always happy when I can say yes.

2

u/[deleted] Dec 13 '22

I thought the same way... then I hired someone for an SDE 1 position who interviewed really well, only to discover they can't code themselves out of a wet paper bag.

I treat coding interviews as a way to get a vague idea how true a candidate's previously claimed proficiencies actually are, as well as their ability to interpret technical instructions, ask intelligent questions, and wrap their heads around problems. I've been burned too many times by people who I had high hopes for after a generic personal interview, only to discover they can't walk their talk, to give up any kind of technical exercise to let someone prove their competency in an interview.

And before anyone jumps down my throat about it, I do take into account that some people don't perform well under pressure, and always give people the benefit of a doubt in my final judgment. If I have to offer help to someone in a coding interview to get them unstuck, I don't necessarily count that against them. We all need some help sometimes. How well you deal with frustration and stress and panic is also a valid data point for me to take away from an interview, and will help me make an educated guess of if you'll be a useful addition to the team.

Also, as I hire people for higher level positions, the coding exercise part of the interview becomes less important. If I'm hiring an SDE 3, for example, I'm likely not going to give them a coding interview at all, and rely on how well they can talk about the technical details of the systems they worked on to determine if they're full of shit or not.

2

u/short_vix Dec 13 '22

I just refuse to work for any firm that sends out a HackerRank or whatever crap test as part of their interview process, the way I see if it these are firms I wouldn't want to work for, filled with people I don't want to work with. Easy filter and time saver for me.

2

u/[deleted] Dec 13 '22

For a regular development job, sure. For a job at a big corp that will pay you a quarter million+ $, they can test you however they want.

2

u/Runehalfdan Dec 13 '22

Why do I have to spend 60 minutes listening to something I could read in 10?

2

u/Tyler_Zoro Dec 13 '22

“There should never be coding exercises in technical interviews. It favors people who have time to do them.

Full stop right there! If your coding problems are too time-consuming for someone who doesn't have a lot of time, what the hell are you doing?!

Coding problems for a job should be relatively easy to complete, but also to polish. The expectation should be that the candidate will spend an hour on them on average, and that 90% of the applicants that have actually coded professionally will be able to complete them in that time.

What you're looking for is not a pass/fail based on solving your tricky little puzzle. You're looking for:

  • Coding style (not how long the lines are, but how maintainable their style is... do they name variables with single letters; do they use tricky, poorly documented features without comment; etc.)

  • Correctness. Do they handle all of the cases you specified correctly (having a test suite for submissions helps)

  • Did they test their own correctness?

  • Do they fall into obvious and severe performance mistakes (remember, a quick submission shouldn't be perfectly optimized, but it also shouldn't have quadratic time approaches where there's an obvious liner time approach either).

  • Do they take relevant standards into account? I was told once to read in a unicode file and do something with it. First thing I did was check for a BOM and that actually scored me some serious points with the interviewer.

2

u/jackw0lf Dec 13 '22

I think it's kind of obvious that at some point a coding interview may not be necessary (perhaps based on years of experience, places the candidate has worked, etc) but I do think there's also an advantage to newcomers. I've been part of many hiring committees and have also been subject to several coding interviews and I believe strongly that if you're fresh out of school with zero job experience the coding interview is an opportunity to shine. Otherwise someone would just throw your resume away and mark it as "no experience" (which unfortunately happens at a lot of places and they end up not giving a brilliant person a shot and missing out). I've interviewed several people fresh out of academia (master's, PHD, post-doc) who decided it was time they got a real job (sorry, lol) and their resumes were inches away from being thrown out because "no job experience". If they show up and kill the coding test then it makes up for having an empty resume.

PS: If you're just now finding out 99% of tech companies don't care if you have a master's or PHD on your resume sorry. I hope that wasn't your sole motivation for seeking higher education (it often isn't, but yeah...).

2

u/staples34 Dec 13 '22

Sounds a little silly. Companies shouldnt test coding skills for coding jobs?

Correct, the candidate is unlikely to have someone looking over their shoulder once employed, hence why employers want to validate their skills during the hiring process.

2

u/Senior_Ad9680 Dec 13 '22

Quite honestly I’d rather give a developer buggy code and time frame to resolve those bugs. If they can find, debug and resolve the code then you have yourself a great developer. problem solving is quite honestly 70% of the job whether coming up with solutions or debugging a code base

2

u/MCShoveled Dec 14 '22

In-person coding is really a good way to weed out people that “talk the talk” but can’t seem to be able solve the most basic programming tasks. It doesn’t need to be long, 20-25 minutes is plenty for most jobs. I prefer doing something generic like shuffle an array of numbers, but it really doesn’t matter. Just let them talk through the problem and verbalize what they are coding, and what they are skipping to save time.

On the other hand, take home assignments are an automatic “nope” for me. If you can’t spend the time to watch me code it, then it’s not worth my time. Also, most of the 1337 code problems are just not necessary for most jobs. In rare circumstances I can accept that it might be valuable, but for the most part keep the problem simple.

2

u/Awkward-Chair2047 Dec 14 '22

While special accomodations can be made for people - depending on their individual circumstances, let's keep in mind that when hiring programmers, we really need to get a handle on their learning and coding abilities, and how much they enjoy it.

As someone who has been programming for more than three decades, it is a lot more expensive to the organization to fire bad programmers than hiring good programmers.

An ability to code and their attitude to code is paramount.

2

u/notouttolunch Dec 22 '23

I do enjoy a bit of a syntax coding test. But nothing obscure. At an interview you’re not in the right frame of mind for even what seem trivial things like shuffling numbers or calculating the Fibonacci sequence (I don’t even know what that is really outside of an interview).

I want to see simple things like what their opinion of include directives in include files are or if they recognise the reason for using a structure/union. It also gives us something to talk about technically. After all, a well tested and scalable averaging function for an ADC is half a days work. But knowing someone is going to read the data in correctly with consideration to endianness is a bit more esoteric.

More usually I prefer it as a way of asking each candidate similar things in a similar timeframe without straying off topic.

4

u/[deleted] Dec 13 '22

I bet her company fails.

4

u/unixfan2001 Dec 13 '22

There shouldn't be extensive technical interviews, period.

I'm currently in the process of interviewing for a new job. The first interview was really great, they offer decent pay, nice benefits and a mission that's dear to my heart.

Now, 10 minutes into my first 70 minute assignment (that I spent all weekend preparing for. Because I'm bad at test taking and theoretical things in general) I'm already tired and disheartened. Even if I pass the test (TestGorilla is utter garbage, btw. Some of these questions are not even questions but preferences. Tabs VS Spaces, camelCase vs snake_case, etc), there's another two full fledged live interviews filled to the brim with technical questions by the team and, ultimately, the CTO.

I feel like I'm not being valued at all.

They tell me I'm the perfect candidate, they know I have over a decade worth of contributions to open source, but they don't value my time.

My current job at an insurance company was an easy hire, meanwhile. However, the pay is garbage and the company culture is so toxic that just one week after signing up for some sort of corporate review site (similar to Glassdoor, but German), they already garnered three negative reviews all complaining about pretty much the same issues (low pay, ignorant bosses, lack of work-life balance and, my new personal favorite, "freezing for Ukraine" — they want us all to work from the office instead of from home, but they turned off all heating and it's currently close to -10 degrees Celsius outside and not much warmer inside).

3

u/germandiago Dec 13 '22

There shouldn't be extensive technical interviews, period.

When you do it, do it your way. When others do it, even if wrong, let them do. Why? Because they will pay the cost.

Everyting is ok the way it is. If it is so wrong, they will end up not doing it, believe me. Noone wants to pay unnecessary costs.

3

u/0bsconder Dec 13 '22

no... you need to weed out the people who don't understand the basics and can possibly barely even type. I've worked at a LARGE company and after a bad hire (who got paid A SHITLOAD for YEARS until layoffs finally made it convenient to get ride of them) my team decided to implement a "coding test" and literally they only watched to see that the person could type at a reasonable speed (because they got bit by previous hire who was so incompetent). It was sick, in a bad way. Plenty of people can BS a resume and buzz words... you need to see if their brain works also.

3

u/HugsyMalone Dec 13 '22

How will they know the quality of work you do if you don't demonstrate it to them? Unfortunately, this is one of those fields where everyone believes they're a brilliant programmer but most of them are absolutely awful at it.

It's a very subjective field where there is no right or wrong way to accomplish things. Ask people how to do something in code and you'll end up with a million different answers. None of those answers are necessarily wrong but some of them are definitely way better than others.

It can depend on the situation too. You can be a brilliant programmer in one situation but that doesn't guarantee you'll be a brilliant programmer in all situations.

3

u/[deleted] Dec 13 '22

I have had incredibly terrible interviews with companies for most of my career. And I have aced the vast majority of the interviews I have accepted. Being good at shitty interviews is not a flex, let me tell you. One job hired me without me having to demonstrate coding at all. They just liked talking with me. Weird.

In my opinion the take home test is the worst one. The people who are scheduled to interview you barely read your resume, let alone review your take home project. Most resort to asking me to present the take home project on the fly and explain it to them.

On one take home assignment, I was ambushed at the interview by 7 or so developers. It was extremely uncomfortable. They projected one of my answers and accused me of cheating unless I could explain it. I had apparently subverted expectations for one of the problems that they expected me to write a loop for. Instead I solved it with math. How did I manage this, they demanded? I demonstrated that the problem had a pattern that I noticed, and so I abused the pattern with an equation. Neatly enough, the equation works for any size array. Instant calculated answer, no looping needed. Only one of the devs in that room understood what I did, everybody else was confused and angry. My answer passed the unit tests, it was a pretty uncomplicated math problem, what was the problem?

In my most recent job I found the answer. People running interviews often run them with a lot of ego. Our job is hard, so I'm going to be hard on you to see if you produce results I can accept. It made me remember having interview partners throwing reverse binary tree problems at candidates. But my current job just wanted to see 1. If I was competent, 2. If I was passionate, and 3. If they think I'd be problematic to work with. 1 hour interview, I showed them a Discord bot and a game mod I wrote and talked about the features and bugs I had to work through for them. They asked me some really basic computer science questions. Done. They gave me feedback after that I was probably one of the few candidates they could find who clearly liked programming and could admit faults.

I found by interviewing with them for other candidates that their philosophy was pretty good. When you find someone who wants to do the work, can do the work, and isn't an asshole, it's a no brainier. If your interview process is looking for the best programmers who can solve stupid riddles, or answer some obscure and esoteric programming problem, or put up with ridiculous timelines, I think you have missed the point.

3

u/joesb Dec 13 '22

Nah. I have met too many applicants who can talk all the talk but can’t code simplest shit.

Very recently, in my current company, I had to work with a “senior” block chain developer who, unlike others, did not have to take coding test because he claim it was insulting to his level of title. Fast-forward 3 months and we had to fire him because he never wrote a single line of code and always find excuse, COVID, divorce, etc., to never write one.

→ More replies (2)

3

u/UggWantFire Dec 13 '22

If we had industry certifications that we could trust, maybe we wouldn’t need this. But we need some way to evaluate people, and interviews are expensive, especially in small companies.

An interview costs us 1/4 of a dev’s productive day between prep, the interview, and post interview steps.

Around 40% of candidates that we pass through the CV review phase end up not moving to the interview stage because of their performance in the coding assignment. And it’s not some convoluted leetcode thing - it’s relevant to what they’d be doing day to day. 50% of the candidates who pass that end up not moving past the first interview stage because they are unable to discuss the solution they provided in the coding assignment.

If so many people didn’t exaggerate or outright lie on applications, we might be able to trust CVs. But as it stands, either us or the candidate has to spend some time, and we can’t handle the DDoS of manually interviewing each candidate.

3

u/[deleted] Dec 13 '22

I 100% agree with this sentiment. Coding interviews are so silly for a few reasons (in my experience):

-They're not reflective of real world coding in the slightest. In the real world we have code completion, snippets, etc for things we commonly do but none of that exists in a coding exercise. I remember my current job asking me the syntax for URLSession to pul data back from a web service.

That's something I've done a million times which is why I have it stored in a snippet in Xcode and could look up in an instant online, but nope, they wanted the exact syntax in an interview.

-A large portion of my day is spent in meetings, solving complex problems (outside of coding), putting out fires, etc. Coding is probably 20% of my job yet in an interview I'm expected to answer tricky leetcode interview questions that are literally useless in the real world because modern languages/frameworks already solved those problems.

Unless you're being hired for a VERY specific role where you'd be writing those frameworks, expecting candidates to know things they haven't needed to touch since their CS degree days is silly. They've developed much more useful skills since then but those are largely ignored in interviews.

-Watching someone code over your shoulder is terrible, especially for those of us with high anxiety. I'm on a computer 12ish hours out of the day and have been for decades. If someone is looking over my shoulder you would think I've never touched a computer because my brain clams up and I go into stupid mode, and MANY people are just like that.

If you want to see people operate like they would in the workplace, give them a take-home test, don't expect them to code on the spot, or in a google doc, or any other nonsense. You're potentially passing on really good candidates who just suck at being put on a weird spot like that.

3

u/[deleted] Dec 13 '22

What's the alternative? Just hiring random people with absolutely no checks for their skills? Anyone can write anything in their resume with very few checks. I can't help but feel the people complaining about this are the ones who don't put any effort into finding a job, and then complain they can't get one.

3

u/Entropian Dec 13 '22

The older I get, the more of a giant waste of time grinding leetcode feels like.

6

u/germandiago Dec 13 '22 edited Dec 13 '22

How would you evaluate the technical skills then?

You know what pisses me off from this discourse? That people , concretely many westerners (and I am one of them), are always complaining. Did you ever live in Asia? Go to China or Vietnam. See if someone is asking for less labour all the time or things of this nature in general.

At least they can distinguish a couple of things: that labour is labour and the most productive/hard working is likely to end up with something better economically speaking (better jobs usually in the average unless you are a genius or discovered something new that makes you stand out).

If you have a family or whatever and want to do something else instead of coding, do it and take a more comfortable job or organize your life to perform at work, have some slots with kids and whatever. Figure out something, but do not complain about "hey, some cannot do this work".

Yes, singers cannot live all year in the same place, they perform in concerts. Or you are going to say that singers that want to live the whole year in the same place have the right to perform concerts only in their place of birth and they are in disadvantage?

It is such a silly reasoning, seriously. If you want something, you go for it. If you do not want, leave it, find something that fits you better. With all costs and also all benefits (economic, family conciliation or whatever).

Things are what they are. Be brave, go for it, or don't. But do not whine like a child.

Needless to say, if I found a person with a profile like yours, I would ban that person from hiring. It is about attitude not about knowledge.

→ More replies (3)

5

u/deckstern Dec 13 '22

I've seen winners of speed coding competitons not having a single complex project completed. I'd rather hire someone slow but who made something complex than someone who is fast and not being able to do a multilayer thinking required for complex architectures.

13

u/[deleted] Dec 13 '22

and how are you going to evaluate whether someone can do the multilayer thinking required to build something complex and isn’t just bullshitting about a project someone else did within a reasonable interview timeframe?

→ More replies (2)

4

u/crusoe Dec 13 '22

Code gold and architecture are two different things. Yup

2

u/[deleted] Dec 13 '22

False comparison. Nobody is arguing that fastest coders "win" interviews more than slow coders. It's not a race.

→ More replies (1)

6

u/manliness-dot-space Dec 13 '22

What next, "there should never be test drives in car buying, as this favor those cars which are drivable?"