burnout_tmp
Little things like that. Programming takes a lot of mental discipline, so you need to be at your best.
It's a nice meme to say that burnout's all in the mind, but you don't know anything about OP, and you certainly don't know anything about the mass majority of people who've had to balance immensely stressful work situations with immensely stressful personal situations. Maybe you should be more measured in your words instead of being presumptuous about OP's drive or character.
If your job is nasty like mine was, I know it's hard to start moving on but you have to switch. The longer you let yourself be burned out, the longer it takes to get back to 100%. I've made a certain set of choices that let me pursue a graduate degree and I feel much better, but you have to be on the lookout for abusive situations. For me, it's about 3 to 6 months of laying off of work. But really, extricating yourself from whatever situation is bothering you is what you want to do.
Avoiding burnout is pretty simple - be in an environment you like, surrounded by people whose company you enjoy, spending your spare time doing healthy things (exercise, going out, meditating, whatever works for you) that aren't related to work. Avoid indulging too much in vices like drinking, smoking, and drugs. Take breaks when you work, stand up, stretch, walk about. Sitting down for too long makes you stiff and feel stagnant. Take your vacation days when you feel worn out. Do what you can to make sure you're healthy and happy. If your employer feels threatened by you taking care of yourself, you find a new job.
Basically, work is a function of your competence, willingness, and emotional state. You do your best when all three of those are at max.