News for hackers. Stuff that matters.
Re:The Non-Programming Programmer by patio11 on Monday February 22, 2010 @06:33AM (#1142427)
This is why I think that Codility (covered on HN earlier here: http://news.ycombinator.com/item?id=1039140 ) is such an amazing idea. You can administer a web-based company-appropriate FizzBuzz for rounding error next to the cost of doing an interview or (worse) hiring someone who can't do FizzBuzz.

Incidentally, if you think Java programmers who can't figure out how to count the number of occurrences of the letter "a" in the string "Java java java" are bad, you should see how many interpretations of "advanced oral and written Japanese proficiency" we've had. Oh boy. Let's hypothetically say you're a recruiting company and you get a candidate as far as our door without disclosing that their exposure to Japanese is, I kid you not, "I loved watching Kenshin in high school" -- we will not be doing business with you again. Hopefully ever.

Re:The Non-Programming Programmer by gfodor on Monday February 22, 2010 @08:20AM (#1142565)
See, honestly I think something like Codility misses the point of these coding exercises.

For me, a coding exercise is more than just a way for me to see if the person can produce something that works. It's also a kick-off point for other questions. Often there are things the person will do along the way to a solution that reveals some lack of knowledge, so I keep my eyes peeled as they talk through their solution for these potential gaps.

One of the biggest problems now is that you have people who can even pull of FizzBuzz but don't know much of anything beyond how to get something like that working. They don't understand data structures, algorithms, or how a computer really works.

A simple coding exercise like FizzBuzz can reveal these gaps too, even if they get the problem right. The trick is to use their implementation as a way to probe their thinking.

For example, if they are just using a "sort" function, like in Ruby, ask them how it contributes to the runtime of their algorithm. Or, if they are loading a file into RAM instead of just iterating over reads on a file handle, ask them about it. Or, if they are iterating over the keys of a hash (h.keys), ask them how they think that works. (This recently revealed to me the candidate did not understand that a hash function was irreversible.)

None of the major gaps in knowledge I've found that separate mediocre from good candidates were found by just looking at their code and giving them a thumbs up or thumbs down. That's good for separating the mediocre from the morons. To find out if they're good, you have to probe.

To find out if they're great, well, that's another story entirely that is far afield from FizzBuzz :)

Re:The Non-Programming Programmer by jlampart on Monday February 22, 2010 @12:34PM (#1143177)
"That's good for separating the mediocre from the morons."

That's a lot, if you ask me - the morons usually make up the vast majority of candidates, so by filtering them out effortlessly at an early stage, you get to spend your time more effectively - identifying the great ones among those who at least hold a promise.

Re:The Non-Programming Programmer by gfodor on Monday February 22, 2010 @02:21PM (#1143472)
Yeah a good point, actually. I actually am just subconsciously responding to the implicit meme that seems to be spreading that if they get the coding question right, they win. I think for screening out morons, that is probably a good bar. But don't forget to do the next coding question in person, and drill into areas where they gloss over things that they may not understand.
Re:The Non-Programming Programmer by Sukotto on Monday February 22, 2010 @08:51AM (#1142604)
That casts the old "I'll just pick up the language as I go... I'm a fast learner" in an interesting light. And I'd take it as a good counter argument to "smart and gets things done". (edit: maybe not "counter arguement since SAGTD is also important. Maybe "corollary" would be a better word choice?)

I've seen a few "will pick up [perl | c++ | java | whatever] as a I go" type guys. (Come to think of it... I've been that guy on occasion)

Re:The Non-Programming Programmer by MaysonL on Tuesday February 23, 2010 @02:48PM (#1146230)
I've done that a few times myself - my first coding experiences with a number of languages were paid gigs [C, shell, Modula-2, Data General Nova assembly, PL/I].