Live data from Hacker News

Coding interviews are stupid (ish)

darrenkopp.com

231–240 of 679 posts

Re: Coding interviews are stupid (ish)

#231
Maaaaaybe, but I’m not ditching them. When I’m interviewing someone, I try to set them at ease. I’m not here to spot typos. I’m trying trying to trick you. I want to see how you think about problem solving, and I’m cheering for tou. I want you to be The One!

At a prior job I was the person who asked candidates to write fizzbuzz, and it was much more of a filter than I ever would have suspected. One senior engineer, from a company you know, with a master’s in compsci, couldn’t write a for-loop for the life of ‘em. Another QA engineer wanted to write tests for their implementation by capturing stdout and comparing it to a hardcoded string.

Me: What if you want to test the output of 1,000,000,005?

Them: We could store the test output as a file on disk instead of a string!

Me: Well, ok, suppose you only want to test that one specific value and not all the others?

Them: Ah, got it! We could discard all but the last line of stdout and just look at that.

Me: Can you think of a way to structure your code so that we could just calculate the output of one single number without all the numbers before it?

Them: Uhhh...

Those are 2 examples out of many. I honest to god don’t know how some people managed to build their resumes while not knowing how to do the simplest thing in their field imaginable. Imagine you were interviewing cardiologists and a solid 1/3 of them had never heard of blood. What? How? How did you get to this point?

And that’s why I’d never hire someone until I’ve collected evidence that they personally can turn ideas into code. If you can’t wrap your brain around fizzbuzz, you’re gonna have a hell of a time when a customer gives you a change request.

Re: Coding interviews are stupid (ish)

#232

Earlier quoted context omitted.

If you're anything like me then you think a lot while you code, like inner monologue thinking, and that's what the interviewer is testing for.

And vocalizing this inner dialogue comes naturally to you I suppose.

If you can't explain your thoughts out loud then you're going to have a difficult time working anywhere.

Re: Coding interviews are stupid (ish)

#233
Everyone seems to agree live code interviews are both terrible and necessary.

I'm a self-taught coder without a degree. I guess it may be extra frustrating for graduated candidates where your hard-earned degree buys you no credibility for skill.

Kinda similar, after ten years of lead development coding every day in the enterprise on huge projects I still don't get a pass on the code interviews.

I will say, if you're trying to career pivot and apply for a management or product or sales engineering role etc., lots of technical experience does carry weight in interviews.

Re: Coding interviews are stupid (ish)

#234

Earlier quoted context omitted.

Sorry, I was paraphrasing the question and not giving every detail that I received. They also stated that there are no gaps, the values increment by one, and start at zero.

How is that "in an unordered fashion"? It sounds pretty ordered to me!

The data itself is ordered (which is why the task is to print them in order), but the order you receive the values is can happen in any order (ie the processing was split into multiple threads and each thread is posting back the results from the work).

Re: Coding interviews are stupid (ish)

#235

Earlier quoted context omitted.

What, exactly, was the substance of their complaint(s), if any? Was it just that you made them do their job in a way different from how they are used to?

This was years ago (pre-covid) but what I remember was a mix of: - "Oh, you're using a laptop" - "Do you really need to use that?" - "Just write it on the whiteboard" - "It would be easier to see on the whiteboard" They also didn't give me a mouse, so using the trackpad was slow. What I hate most about whiteboards is how you can't easily insert lines so you have to leave lots of space. I tend to write code like an on…

When I interviewed at Google I was making iOS apps using Objective-C at my current job, so I decided to stick with that for the whiteboard so I wouldn't blank out on some syntax at an inopportune time.

Big mistake. The method names get so long I was kept running out of space on the whiteboard and it took forever to write it.

I don't remember exactly what I wrote anymore (it was over a decade ago), but this site[1] has some examples of really long property and method names in Cocoa (its framework), like:

splitViewControllerPreferredInterfaceOrientationForPresentation

or

initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel:

Anyway, for that and other reasons I didn't get the job (I apparently didn't prepare quite the right things, despite preparing for a few hours every night for the two weeks prior, which is how long the recruiter gave me before flying me to Mountain View, so my performance for at least two of the six interviews I had that day were a bit weak).

[1]: https://github.com/Quotation/LongestCocoa

Re: Coding interviews are stupid (ish)

#236
post #203

Earlier quoted context omitted.

Exactly this. In the interviews I give I care about whether the candidate can write code, yes, but also talk and think about code. The conversation is the most important part of the interview, and the thinking (and communication) is the most important thing I'm trying to judge after basic skills. Like you said, you can get a good sense within the first few lines of pseudocode if someone's at least competent at writin…

Coding tests are an awful place to test someone’s conversational skills. I don’t talk while I code. You don’t either. Honestly I can’t even remember the last time I talked to anyone about the code itself outside of a PR. People talk about architecture and database migrations and why their containers aren’t behaving locally. Nobody ever tests for that stuff.

Personally I only ask super easy questions because you should at least be able to talk about something trivial. Yet unfortunately the question “find the second largest number in an array of numbers” has a high failure rate as the first question, because there are a lot of people lying on their resume just throwing spaghetti at the walls.

Re: Coding interviews are stupid (ish)

#237

My approach to interviews over the past decade has been as follows: 1. My preparation for an interview involves researching the company, not technical matters. I don't brush up on coding interview questions. I've never done leetcode. 2. If I find the interview questions to be ridiculously off-topic (such as silly algorithm questions), I end the interview. You're not the kind of company I want to work with. 3. If I fi…

How do you end the interview? To me it seems like that might be awkward.

Re: Coding interviews are stupid (ish)

#238
post #203

Earlier quoted context omitted.

Coding tests are an awful place to test someone’s conversational skills. I don’t talk while I code. You don’t either. Honestly I can’t even remember the last time I talked to anyone about the code itself outside of a PR. People talk about architecture and database migrations and why their containers aren’t behaving locally. Nobody ever tests for that stuff.

If you're anything like me then you think a lot while you code, like inner monologue thinking, and that's what the interviewer is testing for.

This provided me with a fascinating, albeit somewhat familiar, piece of insight: which is that I don't really ever hear my inner monologue. I'm not sure I have one! I'm either typing out my thoughts as I have them or speaking them as I have them.

I struggle in coding interviews precisely because of this: either I end up vocalizing my emotions and insecurities instead of coding, or I end up coding instead of talking about what I'm trying to accomplish. Often I will see many alternate pathways branching out before me, but if I try to start talking about them, I am no longer coding, and so my brain context-switches to "social and emotional."

Probably something I could get better at with practice, but I honestly end up commenting on places like HN simply because it "allows" me to think. If I could have a coding interview in the form of realtime text chat + code, that would be ideal for me.

I guess I have seen companies do things like "contribute to this open source project and work through an MR." I do find that quite appealing as an interview process.

Re: Coding interviews are stupid (ish)

#239
Assuming that a company does not look for candidates who are naturally good at ICPC-type of questions or geniuses who can come up with amazing algorithms in a matter of minutes, there is actually a different way to do coding interview: just give a high-level description of a sophisticated enough algorithm to a candidate and ask the candidate to turn that into code. I think it strikes a good balance between depth in CS and the coding abilities. This type of interview is similar to what engineers do at work too. We rarely invent new algorithms, but we do read white papers or blog entries or books to pick an algorithm to implement.

There are many variations in questions too: search a tree or graph with some customized criteria, using a double buffer to implement a tree-style prefix scan, implementing an integer multiplication with unlimited digits, some streaming algorithm, tree-walking to transform one tree to another, a simplified skip list, the options are unlimited. A good candidate tends to grasp the high-level concepts quickly (and they can ask questions), and is quick to convert intuition into working code. I find that there is a strong positive correlation between the performance in work and the performance in such coding interviews.

Re: Coding interviews are stupid (ish)

#240
post #215

Earlier quoted context omitted.

Paid how much? 15 hours is over a thousand dollars - probably closer to 2 or more

is that really a lot of money for a company? don't you often spend that much in having your developers interview candidates and white board them?

i am curious how much they are actually paying. i have no intrinsic qualm with it and agree that developer time is expensive
Post reply on HN