None of this advice really addresses the core issue: people don’t want to be on other people’s schedule nearly all the time for 30+ years of their adult life. It’s relentless and soul crushing. I get 4 weeks off a year, and even if I take them all in a row, the only thing I can think of once my vacation starts is “the clock is ticking till I have to be back in the office.” And that’s always in the back of my mind no…
This is the real answer to preventing burnout: focusing on getting to financial independence starting from the very first day you start your career. There is nothing more liberating and comforting than knowing you don't have to stay at your job one moment longer than you feel like it.
Granted, it's not an option for everyone because of their life circumstances, but it is for most people in the software industry.