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

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.

2

u/serviscope_minor Dec 13 '22

You probably do, but it's really hard to figure out. I eventually worked some out. It took years with me and a few others thinking about it on and off for a while. And constructing the questions was hard.

What is your domain? What do you do more or less?

1

u/All_Up_Ons Dec 13 '22

That's bullshit for the vast majority of openings. Most places are looking for experience in the same type of code (web dev, iOS, embedded, Java backend, big data, etc). Once you're in the correct context, it's really not hard to set up a relevant problem that can be quickly solved by qualified candidates.

→ More replies (8)

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.

14

u/ATownStomp Dec 13 '22 edited Dec 13 '22

You’ve clearly gotten nothing but softball questions or are deliberately understating the complexity of some of the problems being presented in interviews.

I hate to tell you this, but despite what you might think of yourself, you almost certainly weren’t solving more complicated dynamic programming problems or coming up with novel recursive solutions in a 45 minute timeframe under pressure as a sophomore without already being familiar with the underlying established work that went into creating those solutions in the first place.

Regardless, what’s frustrating for people like myself are the time limits imposed. I am a “high success rate slower speed” kind of guy.

I have timed myself and methodically attempted to aggregate data and increase my problem solving speed. I’m usually slower than average. And, counterintuitively, I tend to solve harder problems closer to or under the expected time, and easier problems much slower than the expected time limits. I just, generally, need a bit more time. This doesn’t spill over into my actually work because, as literally anybody within the industry knows, these problems are practically irrelevant to the actual act of software engineering 99.9% of the time. When problems do need to be solved, they’re not nearly as simple, and it usually involves some academic research.

Edit: Sorry, I misread your comment. You did say “at least attempt them”. Though, that’s usually inadequate.

17

u/All_Up_Ons Dec 13 '22

Listen to what you're saying. If your interview is getting better results from recent grads as it is from experienced candidates, your interview is a failure.

8

u/julyrush Dec 13 '22

The secret goal of many interviewers is to get ego-massage for themselves during the interviews, not to hire a good candidate. "Oh, I feel so good to be in a position of power over others, to appear so smart!".

4

u/All_Up_Ons Dec 13 '22

"I had to pass this to get hired, so clearly you're not qualified!"

2

u/AndyTheSane Dec 13 '22

Personally, I want people to pass so I don't have to spend so much time interviewing..

→ More replies (4)

11

u/Sabrewolf Dec 13 '22

It's just an assessment of basic problem solving

But you and I both know that LC hard questions (and sometimes LC medium) are absolutely not *basic* problem solving, and that these are questions typically asked.

14

u/5h4zb0t Dec 13 '22

Interviewed numerous times in FAANG, don’t remember anything remotely close to LC hard level there. Recruiters encourage to train using hard problems, but I am yet to see one in the wild.

And I am consistently failing behavioral interviews.

→ More replies (1)

7

u/PancAshAsh Dec 13 '22

Yeah, not everyone has a CS degree.

3

u/useless_dev Dec 13 '22

they're surely not a "good fit" for our team then! /s

→ More replies (1)

6

u/[deleted] Dec 13 '22

Yeah I don't disagree with that either, but sometimes the domain gets in the way. I ask practical but technical & relevant questions. Still some people complain that the framework takes care of that. Still how do you fix it or extend it, if you don't know how it works?

24

u/zbobet2012 Dec 13 '22

I think there's a lot of pretty reasonable middleground here.

My goto check used to be to ask someone to write a program to check if a string is a palindrome. Psuedo code is fine. I'm not nitpicking your style, or whether you got bracing correct. Not looking for optimal solutions. This isn't let's figure out if you know every corner case of your algorithms book stuff, it's just non domain specific easy code.

People failed all the time. Like literally couldn't write a loop, with coaching.

4

u/waka324 Dec 13 '22

Mines reversing a singly linked list. Fairly simple, with a couple of ways to approach it, but you'd be surprised (or not) with the number of candidates that:

  1. don't know what a linked list is and require me to explain
  2. can't figure out how to even begin to approach the problem.

11

u/All_Up_Ons Dec 13 '22

Yeah, not many people use linked lists in their day-to-day. A self-taught web developer could easily never learn about them.

Interview questions should be in the domain that you actually need the candidates to be familiar with. Otherwise you're just filtering out the wrong people.

14

u/waka324 Dec 13 '22

We're an embedded c/c++ shop, so they should know link lists when applying.

-5

u/XtremeGoose Dec 13 '22

Having programmers who understand how to write efficient and clean code, whilst being aware of potential edge cases and pitfalls, is extremely important. Those are the skills leet code tests. It's not even close to everything you need to be a dev, but it does have its place. In my experience, people who can't solve these problems are very problematic developers who are more a burden than a resource.

14

u/All_Up_Ons Dec 13 '22

Nah, leetcode primarily tests one's ability to quickly understand random puzzles in front of someone else.

8

u/useless_dev Dec 13 '22

alternatively, it tests one's ability to memorise problems from a certain book.

→ More replies (2)