Physical health
Do you find yourself sitting at your desk all day? How about eating lunch at your desk when you're trying to meet deadlines? And you're getting eight hours of sleep, right?
Unfortunately, many of us answer yes to the above questions about common bad habits of programmers that are very unhealthy. They can lead to weight gain, bad posture, sore backs, carpal tunnel, and inability to think clearly.
Mental health
It's not just your physical health that you need to monitor. If you aren't getting enough sleep or are stressed for long periods of time, it will soon negatively affect your mental health. Also if you aren't managing your stress this can lead to physical problems and burnout.
Opportunity
If your physical and mental health are lacking, you're likely distracted and irritable. This can lead to missing out on little and big opportunities, effectively giving yourself bad luck.