Ask HN: Do you struggle to sleep after coding all day?
31–40 of 77 posts
Re: Ask HN: Do you struggle to sleep after coding all day?
#32Re: Ask HN: Do you struggle to sleep after coding all day?
#33I've tried melatonin, cutting out alcohol, f.lux, not looking at a screen for an hour before bed, but the one thing that has had the most influence on my sleep (for the better) is cutting out caffeine after 4pm. (relevant study: http://www.aasmnet.org/jcsm/ViewAbstract.aspx?pid=29198 )
Re: Ask HN: Do you struggle to sleep after coding all day?
#34A few things I've found that help me: - Exercise. I work out 8-12 hours/week. Being physically tired makes sleep easier. - Eat dinner >2 hours before bed and avoid late snacks. - No alcohol (I do have an occasional drink, but it always impacts my sleep) - No TV in bedroom. I either read for 30-60 minutes or talk to my wife until we doze off.
Re: Ask HN: Do you struggle to sleep after coding all day?
#35Maybe try reading before sleeping- or something that can take your mind off the day's activities (that's probably what winds up happening with me).
Re: Ask HN: Do you struggle to sleep after coding all day?
#36Err ... to proactively eliminate parsing errors:
Is anyone other than me going to suggest sex as a strategy on this public internet forum?
Unless your workplace is much more interesting than mine it is a change of pace from day to day work, I guess it counts as light exercise, its fun and stress reducing unless you're doin it wrong.
Re: Ask HN: Do you struggle to sleep after coding all day?
#37Re: Ask HN: Do you struggle to sleep after coding all day?
#38Re: Ask HN: Do you struggle to sleep after coding all day?
#39Re: Ask HN: Do you struggle to sleep after coding all day?
#40I've tried melatonin, cutting out alcohol, f.lux, not looking at a screen for an hour before bed, but the one thing that has had the most influence on my sleep (for the better) is cutting out caffeine after 4pm. (relevant study: http://www.aasmnet.org/jcsm/ViewAbstract.aspx?pid=29198 )