Ask HN: How to relax after coding for too many hours?
Hi, what do you do to relax and sleep after coding for many hours straight? I tend to get very agitated and can't sleep well.
See https://codewithoutrules.com/2016/08/18/productive-programme... for more.
The suggestion to exercise to physical exhaustion is a good one. I usually don't have to go that far, though. Even walking a couple miles usually takes the edge off and gives the brain a chance to wander into other paths.
Doing something else that's almost entirely physically oriented can also help - a craft project, cooking, etc.