Thats true, and I find that true in my own work, but low compensation also turns someone off just as much.
As long as your programmer feels they are being paid a fair amount, give them fun work to do and they'll slave away at it like billions of dollars are going to come out of it.