A fellow programmer(CEO of a startup firm) used the same tricks and got a great programmer.Some programmers don't want to work and that leads to trouble for them and the firm.
Hiring great programmers is hard. I have been advised that great programmers have great ideas. You can also ask questions (open ended) about coding during the interview.