2 ms·
I buy the third explanation, that sleep is key. How often do you find yourself thinking about code in your sleep? A lot, right? And then when you wake up someh
by lordnacho 8y ago
I buy the third explanation, that sleep is key.
How often do you find yourself thinking about code in your sleep? A lot, right? And then when you wake up somehow you have some clarity about the problem to hand. Once you've mucked around a bit and found the solution, cleaned it up, written some unit tests, and documented it, you're a bit tired. And the next problem is starting to form without being entirely clear.
- ThrowawayR2 8y ago> A lot, right? Can't say I've ever thought about code in my sleep. Is that a common thing among coders?
- evincarofautumn 8y agoI sometimes dream about being & moving amongst the abstract structures that I build in my head when reasoning about a complex problem. Sometimes it gives me an insight; others, it’s meaningless, the Tetris effect in another form.
- Jill_the_Pill 8y agoSometimes that is really poor-quality sleep, when your brain is gnawing on a complex problem.
- vorpalhex 8y agoI've solved many difficult problems sleeping or showering.
- Jill_the_Pill 8y agoI wake up with answers. My first waking thought is often a solution or something I failed to notice.