3 ms·
I had a really similar experience during college. I was trying to display a binary tree in the command line. I was not able to solve it while awake. I went to b
by elboru 5y ago
I had a really similar experience during college. I was trying to display a binary tree in the command line. I was not able to solve it while awake. I went to bed with that problem in my mind. Then I dreamt the solution. I woke up and the dream made sense. I couldn’t believe it so I tried in the code and it worked! That was a surreal experience.
- emi2k01 5y agoDreaming of code is something that happens to me very frequently when I'm working on difficult problems and only the first few times was cool. Now, when I dream of code, I can hear my inner self saying "no, please! I actually want to rest" because most of the times I feel like I'm in a loop exploring the same solutions over and over. I've had to get out of bed and do something else so I can go back to sleep without having one of those weird dreams.
- nelblu 5y agoWow. You described my experience exactly! I used to love earlier when I dream solved complex problems, but now I don't like it. My technique to get good sleep is to fantasize that I am in a spaceship flying through the galaxy or observing Andromeda galaxy. Other times I dream of the Shire and that works too!
- ohiovr 5y agoAh.. We need to campaign for siestas in the office. Productivity really goes up after a nap I think. Mexicans were known to do this.
- srcreigh 5y agoSome Google offices have employee nap pods. Or at least they did in 2015.