Live data from Hacker News

Ask HN: Do you struggle to sleep after coding all day?

news.ycombinator.com

71–77 of 77 posts

Re: Ask HN: Do you struggle to sleep after coding all day?

#71
post #70

Having practiced 20 minutes of meditation per day since the age of 16 (I started to learn how to lower heart rate and calm myself since I was heavily into sports), I thankfully have no issues going to sleep. That said, things I learnt along the way. 1) your bed is for sleeping and sleeping only. Not all of us are lucky enough to have a separate room for work and sleeping but at the very least, don't even think of tak…

> your bed is for sleeping and sleeping only

Point taken, but can we expand that list by one? ;-)

Re: Ask HN: Do you struggle to sleep after coding all day?

#72
post #70

Having practiced 20 minutes of meditation per day since the age of 16 (I started to learn how to lower heart rate and calm myself since I was heavily into sports), I thankfully have no issues going to sleep. That said, things I learnt along the way. 1) your bed is for sleeping and sleeping only. Not all of us are lucky enough to have a separate room for work and sleeping but at the very least, don't even think of tak…

> your bed is for sleeping and sleeping only Point taken, but can we expand that list by one? ;-)

I really should have thought that line out. :D

Re: Ask HN: Do you struggle to sleep after coding all day?

#74
Anybody have those code dreams?

Those are worse than no sleep. You sleep all night feeling like you're struggling with this mammoth problem or even worse having a breakthrough in the problem, then wake up feeling tired and can't remember whether your revelations were real or figments of your imagination.

Anyway, I used to have those a lot in school, when I was working towards more solid deadlines and literally fell asleep coding. They've happened once or twice since I've been out and working and I've learned that it's better to put the problem down and walk away than to spend my free time or sleep time trying to solve it. That's only going to lead to an unproductive day the next day, when I actually have my tools in front of me.

Occasionally, I'll be watching TV after work and the solution just pops into my head. A relaxed mind is a creative mind. Even then I won't pursue it, just make a note to investigate tomorrow.

Post reply on HN