paint-brush
Your brain can fix bugs while you sleep.by@gigacore
952 reads
952 reads

Your brain can fix bugs while you sleep.

by Santhosh SundarNovember 18th, 2016
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Sometimes you spend hours or if not the entire day trying to find a solution that can fix a bug in your code, but might end up in causing a regression or not finding any solution at all. The same applies if you are trying to refactor your code or maybe add new features that might not work well with your existing approach. Needless to say, that is extremely unproductive.

Company Mentioned

Mention Thumbnail
featured image - Your brain can fix bugs while you sleep.
Santhosh Sundar HackerNoon profile picture

Photo courtesy: lucid.me

Sometimes you spend hours or if not the entire day trying to find a solution that can fix a bug in your code, but might end up in causing a regression or not finding any solution at all. The same applies if you are trying to refactor your code or maybe add new features that might not work well with your existing approach. Needless to say, that is extremely unproductive.

This doesn’t mean you are not capable of finding a solution, but would mean that you lack enough sleep. According to National Center for Biotechnology¹, sleep deprivation impairs attention and working memory and it also affects other functions, such as long-term memory and decision-making. This impacts your ability to solve problems. Your brain needs rest. At times, going to bed and waking up with fresh mind in the morning can do miracles in getting those daunting bugs fixed.

Don’t burn out yourself, take enough breaks, get enough sleep and exercise every morning. You are a human being, you get exhausted, your brain seizes to function at it’s maximum potential when you are drained out.

Next time you find yourself burning the midnight oil with no sign of positive outcome, just hit the bed!

  1. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2656292/pdf/NDT-3-553.pdf