r/programming • • May 09 '15

"Real programmers can do these problems easily"; author posts invalid solution to #4

https://blog.svpino.com/2015/05/08/solution-to-problem-4
3.1k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

327

u/OrionBlastar May 09 '15

The sad part is that interviewers are going to use these questions in job interviews to screen candidates. Thinking that they are valid questions to ask because they appeared on the front page of /r/programming and not knowing that example #4 has extra difficulty to it that had to be addressed by the author, and not everyone will get it correctly.

481

u/[deleted] May 09 '15

What is even funny, according to his post about problem #5, is he won't even hire himself now.

I never said that you'll be hired if you know how to answer these problems, but I won't consider you if you can't.

https://blog.svpino.com/2015/05/08/solution-to-problem-5-and-some-other-thoughts-about-this-type-of-questions

199

u/[deleted] May 09 '15

Lol gotta commend him for having high standards I suppose

541

u/[deleted] May 09 '15

People like the guy who made that post are so desperate to let everyone know that they are a true programmer. It's fucking hilarious

306

u/d4rch0n May 09 '15

Much too much ego stroking in our field.

Programming is fucking hard, and most of us are not as amazing as we think we are.

146

u/2Punx2Furious May 09 '15

Thank you. I was starting to think that every programmer was a genius but me.

0

u/[deleted] May 09 '15

[deleted]

0

u/[deleted] May 09 '15

[deleted]

0

u/[deleted] May 09 '15

[deleted]

→ More replies (12)
→ More replies (3)

41

u/thrakhath May 09 '15

I'm pretty sure you know Impostor Syndrome, but just in case someone reading this is thinking "Hey ... me too ...", you are not alone! I get it pretty bad myself too.

→ More replies (7)
→ More replies (7)

20

u/Vocith May 09 '15

I've worked in dozens of companies.

The "genius" programmer who holds up to any form of scrutiny is one in a thousand.

Most 'genius' programmers are bad at their job in a company where everyone else is worse.

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

21

u/hes_dead_tired May 09 '15

Yep. Most of us are just average and mediocre. Statistics and bell curves and all.

21

u/morphemass May 09 '15

Yes but being average on a bell curve means that you are at the peak of your field!

→ More replies (1)
→ More replies (13)

81

u/Rusty_Katana May 09 '15

Home run:

If you bother to read this blog at all (or any other blog about software development), you are probably good enough to solve these and 5 more problems within the hour. The people that think are above all these "nonsense" are usually the ones that can't code crap.

0

u/[deleted] May 09 '15

[deleted]

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

0

u/[deleted] May 09 '15

[deleted]

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

92

u/databyss May 09 '15

To be fair, I wouldn't hire people with his sort of attitude. So I guess it kinda works.

→ More replies (1)

33

u/respeckKnuckles May 09 '15

"I wouldn't work for any company that would hire me as an employee" - Misquoted groucho marx

→ More replies (3)
→ More replies (14)

29

u/JNighthawk May 09 '15

1-3 (but dropping the third to like the 20th number in the sequence) are great pre-on site questions. I'm not sure how it works outside of the game industry, but prior to bringing anyone on site (which means flying them out/putting them in a hotel), everyone does an easy, remote programming test to see if it's even worth bringing them on-site.

→ More replies (4)

117

u/Decency May 09 '15

They're decent questions for getting insight into the way people think.

When I give coding interviews, it's actually a lot more useful if the person's initial solution doesn't account for edge cases. So having a problem with a lot of edge questions that isn't also a you know it or you don't style question is non-trivial. These err a bit to the latter, and the first 3 are basically hello-world difficulty, but the final two would be pretty good. ESPECIALLY if you could whip up some unit tests before hand to run the person's solution through and then see their troubleshooting abilities.

I'm much more interested on whether you can iteratively improve on a solution, which resembles actual software engineering, than whether you can pull some complex algorithm out of nowhere that works on the first try in a 45 minute interview.

302

u/Stormflux May 09 '15 edited May 09 '15

Hmm. What bothers me about this is when we interview accountants, we don't give them "accounting puzzle challenges." We just talk to them, maybe take them out to lunch, that sort of thing.

With programmers, it's all "pop quiz, hotshot, you have a fox, a chicken, and some grain... explain to the fox why manhole covers are round, without using a third variable!" I mean, what the hell?

76

u/bikeboy7890 May 09 '15

I've had programming interview, and countless electrical engineering and computer engineering (and a few mechanical engineering) ones. That one programming one was worse than every other one combined. 7 hours straight of solving dumb puzzles and quizzes with a guy grilling you the entire time.

I was nervous as fuck, and despite feeling that I did well on all but one of them, got the call the next day that I wasn't their kinda guy. I was devastated for a few, as it was my FOURTH round with them, and I truly fell in love with the company during the interview process. Never again. It's not worth it to me.

Every other interview I've been to wants to know how I perform as a person, this programming mentality makes me feel like a pampered robot.

30

u/thatblondebird May 09 '15

This actually highlights the huge disparity between permie and contract job interviews -- I've only ever interviewed for one permie job (which I got, but from other peoples stories I can see was a "standard interview process"), but from my experience permie job interviews are long, more involved (multiple " tests", discussions with multiple people, etc.). I've never had a contract interview that was more than 45 mins and was generally laid back with mostly a "this is what the project involves and what you'll be doing" type conversation. Even better is the fact contract jobs pay at least 2x more!

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

131

u/[deleted] May 09 '15

"Do you do a lot of work with foxes and manholes?"

"No, we do extremely dull CRUD apps".

38

u/[deleted] May 09 '15

Yeah, we write programs that query databases and display HTML. Now, back to the interview. Write a program that given the current time in hours and minutes on an analog clock finds the angle between the hour and minute hands.

→ More replies (9)
→ More replies (83)
→ More replies (2)
→ More replies (16)