Ask HN: Why not use on-site programming contests to hire employees?
Just like a normal programming contest, you would be able to submit your solution for automated testing and resubmit if an error is found.
Contestants who solve the most programming problems in the given time limit would be offered jobs.