Comment Tricks bad, problems good (Score 1) 672
I think the tricky brain teasers are fun, but when you use them, you run the risk of missing out on someone who might be a good developer just because they can't guess the trick. You also might get a bad programmer who just gets lucky and guesses the trick. These questions use up using a lot of time and don't necessarily tell you much about a candidate.
I disagree with a lot of the comments that say whiteboard problems don't tell you anything about candidates. I think seeing a candidate write code can be very helpful, as long as your evaluating problem solving skills rather than esoteric API knowledge. A good programing problem that requires several steps to complete tells me a lot about a candidate when I watch them solve it, even if they don't get the correct solution. I've started doing computer-based whiteboard problems which let candidates take advantage of an IDE with code completion and real-time error finding. This is more interesting, but you need to use a simple, well-known IDE (like Eclipse for Java) that someone can use easily without too much learning.
I agree with the OP that you never know how a developer will turn out until they do some real work.