3 ms·
I have written code in my dreams. When facing a particular problem if I think about it obsessively all day long I can sometimes end up dreaming about it. If the
by IgorPartola 6y ago
I have written code in my dreams. When facing a particular problem if I think about it obsessively all day long I can sometimes end up dreaming about it. If the dream comes towards the morning I can often times remember the code I wrote and go try it out when I wake up. It doesn’t make for good sleep but the code usually works even if it has some really weird convoluted quirk that I end up working out once awake.
I had similar things happen in high school. For example the first time the teacher explained integrals I had a rough time visualizing the geometry. Having a dream a few nights later of an integral being like an apple peeled into a long strip helped me wake up with a better intuitive understanding of integrals.
- hliyan 6y agoThat's odd. There's a belief that you cannot read in dreams because the part of the left brain that specializes in it tend to be less active during dreaming. Well, you can read, but the symbols look jumbled. For some people, they can make out words, but if they look away and look at the page/area again, it says something else. In my case, personally, it's quite peculiar: I can read words, but not digits. In one recent dream, I noticed some Japanese-like characters in a road-side ATM screen, panicked and started grabbing people of the street and yelling "Show me a number! Show me your phone clock!" and sure enough the digits were garbled, which is how I realized I was dreaming.
- IgorPartola 6y agoI can’t really read large chunks of code but for me code is less a collection of words and more interconnects between concepts plus processes that allow them to communicate. I don’t need to read it as much as think about what the things are and what they should do. I remember doing this with some networking code a few years ago and thinking of how I wanted to structure different datagrams and which parts of the system would be responsible for creating and processing them. It had less to do with waking up and copying everything word for word and more to do with thinking of “put this function into this module which should do this kind of thing, then hook a callback to it from this function”, etc.