When I was in my early twenties, hungry and looking to prove myself, it was fun for me to stay up all night programming, put in wild hours to get stuff done, lose myself in overly ambitious projects etc. At some point I realized I kept hitting a wall (which was just actually me burning out, but I didn't recognize it at the time) and finding it basically impossible to care or get even the simplest things done for weeks at a time.
My overall productivity was extremely bursty then–herculean efforts followed by barely anything at all. Now, years later, I'm much more defensive of my time, it's far easier to maintain a consistent flow of good work, and I no longer wake up in the middle of the night having had a bad dream about my code crashing.