Earlier quoted context omitted.
I never use Ruby's case or switch or whatever-it's-called. I could make up some mumbo-jumbo about case being a code smell and that it should actually be refactored to a method dispatch over polymorphic objects, but the truth is that I have no idea why I don't write case statements, I just don't.
Add me to the "never uses switch statements" list. I've never seen the point in learning the syntax in any of the languages I know, since a bunch of else ifs (or elseifs, or elsifs, or elifs, depending on the language) does the same thing. If I waste a few keystrokes, but save a few brain cells, I think it's a worthwhile bargain. Of course if I had to write that kind of construction often I'd probably learn the synta…
Ask HN: coding challenges as part of interviews: yes or no?
51–58 of 58 posts
Re: Ask HN: coding challenges as part of interviews: yes or no?
#52I like to believe that I can get a pretty good understanding of someone's technical abilities by asking thorough questions about his previous experience, and maybe ask them to explain a couple of basic patterns or programming concepts to me. I remember interviewing a senior java developer who claimed 5+ years of experience and had no idea what a Singleton was. What made it worse was that even after explaining it to h…
> Would you rule out a candidate who doesn't know 0xFE ? If they didn't know it after a moment's thought, I'd cut them some slack; If they couldn't calculate it, with pencil and paper, in 10 minutes (and that's giving them plenty of extra time for interview-nervousness), then I'd be seriously concerned.
but then i read this and i thought "would i really want to give a job to someone who needs a pen and paper to subtract 1 from 255?"
i'm not sure what the lesson is here - perhaps that programming tests are dangerous because it is very easy to over-interpret the results, even when you start with the best of intentions?
[edited for grammar]
Re: Ask HN: coding challenges as part of interviews: yes or no?
#53If you have the sense from whiteboard discussions that the candidate understands computer science (like gets recursion) but you want to make sure they can code, why not choose a subset of a problem that you (your company) needs to solve?
Re: Ask HN: coding challenges as part of interviews: yes or no?
#54I like to believe that I can get a pretty good understanding of someone's technical abilities by asking thorough questions about his previous experience, and maybe ask them to explain a couple of basic patterns or programming concepts to me. I remember interviewing a senior java developer who claimed 5+ years of experience and had no idea what a Singleton was. What made it worse was that even after explaining it to h…
Re: Ask HN: coding challenges as part of interviews: yes or no?
#55Earlier quoted context omitted.
Neither Python nor Haskell have it - as far as I know. Perhaps you can create one out of monads though.
Actually, case is built into Haskell: it's the evaluation primitive in Haskell Core; see Don Stewart's blog post http://cgi.cse.unsw.edu.au/~dons/blog/2008/05/16 .
Actually pattern matching can also be described as something like a case-switch.
Re: Ask HN: coding challenges as part of interviews: yes or no?
#56Earlier quoted context omitted.
I don't think that I would ever hire a insert language programmer. When looking for someone to program, I'm just looking for a programmer; language isn't important.
A lot of people get hired in for emergencies. In such cases waiting for person to learn your offices language of choice isn't ideal.
Re: Ask HN: coding challenges as part of interviews: yes or no?
#57Earlier quoted context omitted.
> Would you rule out a candidate who doesn't know 0xFE ? If they didn't know it after a moment's thought, I'd cut them some slack; If they couldn't calculate it, with pencil and paper, in 10 minutes (and that's giving them plenty of extra time for interview-nervousness), then I'd be seriously concerned.
i read through some answers here and i nodded in agreement with raganwald saying that this only worked as a filter on failure. but then i read this and i thought "would i really want to give a job to someone who needs a pen and paper to subtract 1 from 255?" i'm not sure what the lesson is here - perhaps that programming tests are dangerous because it is very easy to over-interpret the results, even when you start wi…
Now, if it appeared that the candidate had no idea how to solve the problem, that would be a different story.
Re: Ask HN: coding challenges as part of interviews: yes or no?
#58Earlier quoted context omitted.
I don't think that I would ever hire a insert language programmer. When looking for someone to program, I'm just looking for a programmer; language isn't important.
A lot of people get hired in for emergencies. In such cases waiting for person to learn your offices language of choice isn't ideal.