Take your candidate to a computer, ask the programmer what he/she is working on. Have the candidate sit down and continue the work for ten minutes. If it works, hire him/her.
Have you done this during interviews with applicants? Have you received feedback from applicants?