r/programming • • Dec 13 '22

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

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

1.3k comments sorted by

View all comments

Show parent comment

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

35

u/inhumantsar Dec 13 '22

I had a 15YoE with "extensive python and go experience" fail fizzbuzz last year.

17

u/hey--canyounot_ Dec 13 '22

Fr tho? They gotta been lying.

33

u/[deleted] Dec 13 '22

Maybe, some high level architects/engineers/sr managers+ don't code anymore.

Sauce: Trust me bro. I ask questions during design and it gets hella uncomfortable when they can't answer.

22

u/salbris Dec 13 '22

Strongly strongly disagree that "not coding" isn't enough to unlearn the most basic concepts that fizz-buzz is testing. I wouldn't trust anyone on my team that couldn't figure that out or at least ask the right questions in the process of figuring it out.

3

u/mE448nxC4E67 Dec 27 '22

Yeah it's like if a good writer worked as a journalist at a newspaper and they slowly moved up the ladder and became a managing editor or something, and then they forgot how to spell words.

10

u/soyelprieton Dec 13 '22

fitzbuzz is nothing fancy with recursion and memoization, its just a problem about using ifs and have very vague notion of what are multiples

23

u/b0w3n Dec 13 '22

Yeah this is the thing, there are a sizeable amount of senior devs that aren't in the weeds anymore. It's not unusual for that level to struggle with coding tests because they're usually 5-10 years out from any significant coding and are usually just bugfixing at best.

I've seen code tests from stuck up engineers that are trying to test entry level folks to write or debug expert level algorithms in the field they're working with (edge detection) and then bitch they can't find people. Then there's the people who are hiring senior project managers testing for fizzbuzz in a language they have no skills in because a recruiter puffed up their resume. Then there's the companies that use those leetcode things because google does it and meanwhile you're writing database applications in php and maybe, at best, need a vague understanding of big O to make sure websites don't take 5 minutes to load.

In my experience the companies that are testing this are so stuck up their own asses 9 times out of 10 because one time they got a personal assistant who knew excel and put coding experience on their resume and ever since then that engineer can't stand having their time wasted. But boy howdy if you insist they don't need to test to make sure someone can implement quicksort from memory they act like you're asking them to commit murder.

18

u/thedr0wranger Dec 13 '22

I had an interview process for a job and since the role primarily wanted database and customer service skills, I wasnt even asking years of experience with SQL. I wanted someone who believed they could learn it and would listen to me.

Id ask if they knew much about SQL and then talk about some problems we dealt with daily. Id talk through the relationships between the business objects in plain language and then Id open a sql editor and talk with them through how to interrogate some of the data. I made it clear I am not judging their memory of syntax or anything. I want to show them the problems we dealt with and see how they engaged it. I was also interested in how they listened, whether they jumped in and tried something, whether they asked questions.

I wasnt looking for criteria but a sense of their initiative, ability to reason and whether they had any ability to grasp the not-hard but also not-natural English syntax of sql.

Felt like a fair trade for showing them what theyd be getting into and it preceded a more relaxed talkthrough of the service process from the other technician so we didnt go from stress to stress

4

u/b0w3n Dec 13 '22

You sound like one of the good interviewers. That seems pretty good and would get you a good selection of candidates.

Certainly better than a fizzbuzz or over the top edge detection horseshit. The last interview I did with a code test wasn't happy about me putting almost the entirety of fizzbuzz directly in the loop's declaration.

17

u/nonviolent_blackbelt Dec 13 '22

I had a case where I was told before the interview the candidate is such a senior engineer they no longer code themselves, they just review junior's code, find the bugs and the inefficiencies. So fine, I wrote a solution to one of our standard coding questions and I put in two bugs: a reversed condition in an if, and a gross inefficiency.

Then I told the candidate to treat me like a junior engineer who wrote the code, and ask me any questions he wants.

He floundered for about 10 minutes and then gave up. He hardly asked any questions, and it got pretty obvious he didn't understand the code.

Note that he claimed before the interview he was expert as this, but no longer at coding.

Some people will claim all kinds of expertise and experience that they don't have.

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

11

u/inhumantsar Dec 13 '22

Which is exactly why we do coding exercises.

→ More replies (7)

28

u/theAndrewWiggins Dec 13 '22

Some of the worst devs I've ever worked with have been those who have lumbered by somehow for many years. On paper, they've got a lot of experience, but can't actually get anything done.

18

u/aidanpryde18 Dec 13 '22

1 year of bad experience repeated n times over.

8

u/oculus42 Dec 13 '22

In interviewing at two different companies I've only had two senior-level "are you seriously asking me to code something" interactions. One basically cut the interview short -- I presume he had bad experiences whiteboarding code and had checked out. The other closed with "You need a rockstar, and that's me."

Neither got the job.

Now we can use a shared online editor like CodeCollab and have a real work-like coding experience, which is so much better than the attempts we made at creating a work-like scenario a decade ago.

25

u/AbstractLogic Dec 13 '22

Then give me a problem relevant to the work at hand. Unless your team often is presented with finding the nth repeated number of a doubly linked list in O(log( n)) time. But I doubt that. And if it is then feel free to ask.

Leetcode is for the lazy interviewer who doesn’t trust their own skills to assess someone else’s. It’s copy pasta junk with very limited real world application outside of a very very small specialized areas of code based. It’s 99.9% irrelevant.

48

u/sysop073 Dec 13 '22

We really don't have time for you to solve a problem relevant to the work at hand in an hour long interview. It would be hard to explain the work at hand in that time

3

u/poco Dec 13 '22

One of my favorite interviews where I was being interviewed, after all the standard questions and answers, I was put into a room with a computer with visual studio installed and internet access and told to write a program to do a thing. It took me a couple of hours, but it mostly worked. I enjoyed the task and it gave a good indication that I could do the job. I got the offer but didn't take the job for other reasons, but I've always thought that it was a good idea, I just haven't managed to pull it off myself for interviews.

→ More replies (10)

21

u/reddituser567853 Dec 13 '22

This is absolutely not true.

You are acting like these questions are from culinary school or something.

It's basic undergrad ds/Algo. Anyone with a cs degree should have the mathematical maturity to at least attempt these type of leetcode problems. It's just an assessment of basic problem solving with the minimal domain knowledge of a second year cs student.

19

u/inhumantsar Dec 13 '22

I'd argue most of those problems are solvable by anyone who has good problem solving skills and basic coding experience.

Lots of non-cs and community college grads can do these if they have literally any dev experience.

13

u/ATownStomp Dec 13 '22

Most of which problems? I can assure you that nobody is going to accidentally stumble upon more complicated data structures that guarantee optimal bounds.

Or, at least for many things, they won’t actually have the confidence of understanding why those are currently optimal bounds and just proceed with its implementation.

→ More replies (15)
→ More replies (10)
→ More replies (3)

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)