First, consider what your goal is. Is your goal to use programming to get into something else, or is your goal to make a long career of it?<p>If it is the latter, consider that you will be running a marathon, not a sprint. Early on, look for positions and people to work with with good mentoring possibilities. Also, cultivate relationships with healthy and optimistic people.<p>Later on, look for positions where you can be the mentor, and don't be afraid to strike out in new directions. If you never fail at anything, you likely have not pushed yourself enough (a cliche, but true).<p>Like any marathoner, you need to take care of yourself. Physically, if you do not actively cultivate healthy habits, you will not last in this career. Drinking, smoking, drugs, unhealthy food, lack of exercise - they all take a toll. The couch potatoes who were ubiquitous in this field when in their twenties are gone within 10 - 15 years, or they are in a stagnant niche job.