I had the same problem. Using f.lux[0] and writing down all the problems (programming related or not) that occupy my thoughts on a notepad which lives next to my bed, just before going to sleep totally eliminated the issue. [0]: https://justgetflux.com/
Ask HN: Do you struggle to sleep after coding all day?
21–30 of 77 posts
Re: Ask HN: Do you struggle to sleep after coding all day?
#22Re: Ask HN: Do you struggle to sleep after coding all day?
#23Re: Ask HN: Do you struggle to sleep after coding all day?
#24Re: Ask HN: Do you struggle to sleep after coding all day?
#25Last night for me was particularly tough. Coded essentially all day, struggled with a bug for hours, and was still on a caffeine high past midnight. The game plan for me should just be to wake up even earlier and wear myself out through more exercise.
At least I know the pattern. A problem without solution is already solved: I just pick up a good book and wait it out, knowing I'll be sleepy the next day.
Re: Ask HN: Do you struggle to sleep after coding all day?
#26When I find my mind won't settle down, I'll do 1 of 2 things. If I'm concerned about a list of actions I need to do the next day, I'll write down the list on paper. This allows me to relax and know I won't forget anything. Otherwise, I'll write in my journal about what ever my thoughts are. This allows me to slow my brain down the my writing speed. It lets me process my thoughts. Its helped immensely.
Re: Ask HN: Do you struggle to sleep after coding all day?
#27Re: Ask HN: Do you struggle to sleep after coding all day?
#28Re: Ask HN: Do you struggle to sleep after coding all day?
#29Re: Ask HN: Do you struggle to sleep after coding all day?
#30I had the same problem. Using f.lux[0] and writing down all the problems (programming related or not) that occupy my thoughts on a notepad which lives next to my bed, just before going to sleep totally eliminated the issue. [0]: https://justgetflux.com/