- Take regular breaks
- Practice good ergonomics
- Exercise regularly
- Eat healthily
- Avoid stress (meditate or find another way to relax)
You can let any career push you into an unhealthy lifestyle. Programming doesn't sentence you to an unhealthy, overweight, aching shorter life. It's all about taking care of yourself.It's good practice to maintain your code. Treat your body like source code that you have to maintain for your entire life.
Organ grinders .... the worst of the "thousand nuisances that made it impossible for the householder to enjoy any quiet" .... such "instruments of torture" had cost him a quarter of his working life. At one point he tallied 165 nuisances in 90 days.
his 1871 obituary in the London Times notes that he lived to be almost 80 "in spite of organ-grinding persecutions."
http://www.futilitycloset.com/2009/04/14/quiet/
Because of his campaigns against street music, buskers deliberately turned up at his lodgings to annoy him, even following him down the street.
but seriously babbage should have stuck some beeswax in his ears
alternatively, he could live in a tower like a proper wizard
It's like pizza when you're a kid. You could eat it every day for every meal. As an adult, you still like pizza, but even twice a week feels like too much.
And in most regards, I think its fine. I had my day of the 90 hour work week. I'll let the new guys take their turn.