|
|
|
|
|
by igurari
3856 days ago
|
|
One possibility is that this is because you're working/programming late at night, basically up until the time you're going to bed (or within an hour or two of it). I've found over the last 10 years that if I'm programming late (and really only programming, other types of work don't do this to me), and don't give myself 2-3 hours of down time before bed, my sleep is exactly as you described. My brain is running on work, it takes me a long time to fall asleep, and my night is spent drifting in and out of light sleep and work related thinking. It's pretty bad and can screw me up for days and weeks at a time. Usually this happens because my focus is very high with late night programming (to keep me going longer), and I don't give my brain the time it needs to finish working through problems after I'm done coding. (You may be able to relate to thinking up a solution to a problem after closing your laptop, or waking up realizing there is a bug in your code. It's this type of thinking that your brain needs to finish.) I'd suggest that if you are programming late at night, stopping 2-3 hours before you usually go to bed and do some reading or watch a movie. A few nights of that is all that it takes for my sleep to get back to normal. |
|