I've been programming for over 2 decades and had 2 bouts of burnout. The first was around the dotcom bust, when I thought my career was over because all the jobs were going to go overseas, and the second after a too-long stint at a shitty well-known enterprise software company where I felt useless and worthless.<p>I didn't take a break during the first one, which took a toll and probably had a hand in my subsequent divorce. The second time, I stuck around as long as I could until I got health issues, so I quit for a year. That was the best thing I've ever done and I wonder if I'll ever get a chance like that again. I spent probably $50k in cash and lost out on $100k net income after taxes, so delta in money was large, but worth it for my sanity and overall career. It helps having a supportive spouse with a great job/health care and good savings.<p>During my break, I programmed for 8 hrs a day 5 days a week, except on things that I loved, and it was worth it. I did things like spend 3 solid weeks improving the accuracy of my OCR system using OpenCV/Tesseract from 90% to 98%, something I never could have done without all the freedom or time. I regained my love for programming as well as my self-esteem, and so far so good. Hopefully I can ride this current wave out until I retire, but if it happens again, I have enough fuck you money saved to take more than a few months off.