I generally agree that exercise is the key, but pushups can be terrible for tendonitis in the shoulder/upper-arm area. Just wanted to warn people from my experience.
It took me way too long to realize that coding all day and games all night is a recipe for pain. Working out is not fun, but it's absolutely necessary for serious software work.