Developing Secret Powers: Solving While You Sleep
I don’t know about you but whenever I have a problem which I can’t solve no matter how many ways I try and think about it, no matter how many patches and recompiles I try. With these types of problems I have come up with the best strategy to solving them - go to bed.
It may sound crazy but having a good nights sleep will not only relax you but also give you a clear head for the problem at hand. By simply attacking it with round after round of caffeine you become blind to the problem. Many times I have come back to a problem the next morning and thought “wow, the solution is so simple”. Generally this process ends with you kicking yourself.
Sometimes I even wake up and instantly the answer pops into my head, but I think this has more to with the fact that I stare at code way too much.