At my last company we made up a little mini exam for all of the prospective developers...
5 separate mini programs printed out, 3 had a bug and 2 were written inefficiently... They had to correct the problem and explain why (writing with a pen).
One guy ended up asking for extra paper, and by the time he was done had written what was basically an essay... We hired him
