For me, exercise is key. If I get in 30+min of exercise after work it's like hitting the reset button on my energy and I can squeeze out another couple hours of productivity.
I totally agree with this. 2x per week I play a game of soccer after work and then grab dinner with friends. By the time I get home around 9pm I could easily do another stretch of work.
On the days when I don't switch gears, there would be no way I could do focused work for more than an hour or two.
Honestly, if I ever really wanted to do a computer-based startup, I would leave my 9-5 job and do landscaping or something physical during the day. I don't think it's realistic to ask your body to be in front of a computer for 12 hours a day.
+ this. I find I'm FAR more productive if I get a decent run in straight after work (where I'm in a PM role) before then getting down to some coding in the evening.
You have to be disciplined though. On the days where I skip the run to get more coding done I invariably actually don't get more done as I have less energy.