Apparently currently I am doing this.
Ask HN: Do you struggle to sleep after coding all day?
11–20 of 77 posts
Re: Ask HN: Do you struggle to sleep after coding all day?
#12Pick a time for a week and go to bed then regardless of anything else. Try to limit light exposure for the hour before sleeping (no phones in bed) and see if that helps. The more consistent you can be, the more consistent your sleep will be.
Re: Ask HN: Do you struggle to sleep after coding all day?
#13Now I just take Melatonin in the evening ( http://www.gwern.net/Melatonin ) and sleep somewhat normally.
EDIT: I also use the flux app, and I reduced my coffee consumption significantly, now down to zero, but melatonin had the quickest and most observable effect.
Re: Ask HN: Do you struggle to sleep after coding all day?
#14Re: Ask HN: Do you struggle to sleep after coding all day?
#15Re: Ask HN: Do you struggle to sleep after coding all day?
#16Sleeping takes practice like any other skill. If your bedtime is erratic, if your sleep pattern is erratic, if your environment is erratic, your brain isn't sure when it's time to go to bed. Pick a time for a week and go to bed then regardless of anything else. Try to limit light exposure for the hour before sleeping (no phones in bed) and see if that helps. The more consistent you can be, the more consistent your sl…
Additionally, the Sleep as Android app makes for a great way to track and log sleeping patterns, and has a nice adaptive alarm.
Re: Ask HN: Do you struggle to sleep after coding all day?
#17Re: Ask HN: Do you struggle to sleep after coding all day?
#18Sleeping takes practice like any other skill. If your bedtime is erratic, if your sleep pattern is erratic, if your environment is erratic, your brain isn't sure when it's time to go to bed. Pick a time for a week and go to bed then regardless of anything else. Try to limit light exposure for the hour before sleeping (no phones in bed) and see if that helps. The more consistent you can be, the more consistent your sl…
I hate the "no phones in bed" rule, and literally everything I do is PC-based or phone-based, so I stare at one screen or another right until I sleep. The f.lux and Twilight (Android) apps have been very helpful at making me feel more naturally tired when I should be. Additionally, the Sleep as Android app makes for a great way to track and log sleeping patterns, and has a nice adaptive alarm.