DEV Community

Discussion on: How crucial is 'sleep' when it comes to programming?

tqbit profile image
tq-bit • Edited on

I wouldn't say it's just crucual for programming. The less you sleep, the more sleep debt you build up.

Besides, sleeping helps your brain to process memories, given it has the opportunity to rest (enter the REM phase of sleep)*. If you do your thinking after hitting the sheets, try and keep a diary of sorts to get them out of your head. For myself, it also helped to move the phone and tv out of the bedroom. Turns out scrolling memes is rather counterproductice in the evening / morning.