Live data from Hacker News

The Programming Interview from Hell

pythonforengineers.com

71–80 of 147 posts

Re: The Programming Interview from Hell

#71

I wrote a linked list today, outside of a job interview. Systems programmers exist :'(

Not even just system programming. It's a fundamental data structure and concept. I don't think it's unreasonable for a company to say: we expect this role to understand what goes on behind this abstraction.

Re: The Programming Interview from Hell

#72
post #37

The hiring manager of a small software company gave me a quick brief before handing me off to his technical heavy. "He's hard to get along with, but he's really smart. Oh, and he has two PhDs. He'll tell you that." I was ushered in. The Guy with Two PhDs (he showed me his business card first, and there were indeed two PhDs on it) asked me: "What is the simplest way to synchronize two threads?" I rattled off some sync…

> I never found out the BEST way to share data between programs Come on, add another layer of indirection! When given a problem to solve, hand back another problem. In this case: Q: "I want the SIMPLEST possible way to synchronize two threads. What is it?" A: The SIMPLEST possible way to synchronize two threads is a global maximal element (not necessarily unique) of a poset induced by a partial ordering on possible m…

Just run one after the other.

Re: The Programming Interview from Hell

#73
post #5

What a fun interview it would be to actually do this. My favorite interview was for an architect position, where my two future peers took turns telling me horror stories about working there, to see if I would run away screaming. I got the job and only ran away screaming 18 months later.

I've learned in the past few years that, if the interviewers gripe about anything in the interview (especially management), it's best to stay away from that company. In an interview, the company is trying to put it's best face on to sell themselves to you, and if the employees can't hold it in for 30 minutes, that's a bad sign.

Re: The Programming Interview from Hell

#74
I was once received a modified version of FizzBuzz (the word is replaced by company name) for my coding interview (via email). I told the HR person that I know the problem already, expected to have another more challenge problem. She asked do it anyway.

I gave them my solution, but, well, my interesting in that company has gone.

Re: The Programming Interview from Hell

#75

I've actually used (politely, of course) many of these answers in interviews, whenever I felt the interviewer was trying to show off or read from the script instead of actually judging my abilities. "I'd google it. Anything less would be a waste of our time." That cuts through a lot of bullshit. After saying that at my last interview, we got into actual problems (structuring a program, building an API, writing code t…

I used a polite version of "I'd google it" while interviewing with Google. I explained that I didn't think anyone could be reasonably expected to know how to do everything in every language on demand and that virtually every professional programmer I knew consulted Google from time to time.

Maybe I was just ahead of the times or they weren't looking for someone to be as honest as I was but I didn't make it past round 3 of their interviews.

Re: The Programming Interview from Hell

#76

Earlier quoted context omitted.

linked list is not complex for christ sake.

> linked list is not complex for christ sake. There are many people for whom this is complex, you're assuming a foundation that not everyone has. There are also many people for whom nothing is complex, they assume they can understand everything, while they don't currently, they assume they'll be able to learn it without issue. Dealing with new starts who are straight out of education is often like reading posts from…

But there's also nothing crazy about a company saying: for this role, we expect the candidate know linked lists. It's not esoteric and I think a lot of us would consider normal programmers who have had to write linked lists (and other data structures) for one reason or another.

Re: The Programming Interview from Hell

#77
post #37

The hiring manager of a small software company gave me a quick brief before handing me off to his technical heavy. "He's hard to get along with, but he's really smart. Oh, and he has two PhDs. He'll tell you that." I was ushered in. The Guy with Two PhDs (he showed me his business card first, and there were indeed two PhDs on it) asked me: "What is the simplest way to synchronize two threads?" I rattled off some sync…

> I never found out the BEST way to share data between programs Come on, add another layer of indirection! When given a problem to solve, hand back another problem. In this case: Q: "I want the SIMPLEST possible way to synchronize two threads. What is it?" A: The SIMPLEST possible way to synchronize two threads is a global maximal element (not necessarily unique) of a poset induced by a partial ordering on possible m…

OMG...too funny.

Re: The Programming Interview from Hell

#78

Thats hilarious. I was once interviewing for a C++ position and the interviewer presented me with some C code with a broken "swap" implementation and a driver function and asked me to fix it. I simply prefixed the call to swap with "std::". He wasn't very happy about it. ;-)

Hired. Seriously that's the correct answer as far as any productive engineer is concerned right?

Except these days you are not supposed to call std::swap directly but should go though ADL lookup. I.e.:

  using std::swap
  swap(a, b)
/doublesmartass

Re: The Programming Interview from Hell

#79

I've actually used (politely, of course) many of these answers in interviews, whenever I felt the interviewer was trying to show off or read from the script instead of actually judging my abilities. "I'd google it. Anything less would be a waste of our time." That cuts through a lot of bullshit. After saying that at my last interview, we got into actual problems (structuring a program, building an API, writing code t…

    new java.util.HashMap()
In case you ever get such a stupid question again.

Re: The Programming Interview from Hell

#80
post #68
post #64

Earlier quoted context omitted.

> I never found out the BEST way to share data between programs. In fact, I'm still looking. I think we all are. Copy-paste.

See, I was gonna go with Data.txt in a shared network drive. Btw = if you're worried about conflicts - it's Ok there's a second file called "writeStatus.txt" which you have to claim by replacing the String NULL with your processId - thereby claiming write access to data.txt and causing any other processes to Thread.Sleep until it's free. Unrelated, who's hiring...

But who has access to writeStatus.txt? Classic rookie mistake. You needed a writeStatusWriteStatus.txt.
Post reply on HN