Live data from Hacker News

Ask HN: Does anyone dream of code?

news.ycombinator.com

31–40 of 146 posts

Re: Ask HN: Does anyone dream of code?

#31

When I go to sleep after having worked on something complex and didn't fully resolve it, I'll almost always dream about trying to solve it. Sometimes I see code, sometimes it's more abstract, but it's always disconcerting. My wife says I mumble things like, "I'm pretty sure 'also' is a keyword unless I'm losing my mind and need to check the documentation"

The worst cases for me are with math-heavy problems. I'll see code mixed with shapes and graphs. The mornings suck, because you wake up knowing you were only half-asleep.

That's why I like to play some easy games or read a book 1hr before going to sleep. Sometimes they induce creativity though and are counter-active.

Re: Ask HN: Does anyone dream of code?

#33
Yes, all the time. I was a military academy cadet and I train all the time in my mind, I dream 12-24 times a year that I have managed to get back in and do basic/etc. I was a TA and I prep/teach lessons in my mind, and I also slice and dice code in my mind all the time.

I never know which I am going to get but coding is the most pleasant of them, by far. The higher my stress, the more likely it's not fun.

The fact that my current job is to untangle legacy Java code and we actively oppose any "unnecessary" changes hurts me, because I can't not untangle it in my head, working or sleeping. Resting/playing is OK though. That's why it's important.

Of course, we don't have any unit tests, because how else could we employ 2 testers per coder? And we obviously don't have any time for that useless stuff.

Re: Ask HN: Does anyone dream of code?

#34
I used to dream in code all the time. It was when I was tackling a programming problem I was having trouble with. My mind would often solve it while I sleep; and I'd be able to solve the issue quickly in the morning.

It happens less these days. Either because I am more experienced or because development tools have improved; I no longer get stuck like I used.

Re: Ask HN: Does anyone dream of code?

#35
I don't. I had dreams about my workplace, but it never happened to me to dream myself at the desk writing on a keyboard. Funny, I'm on a computer up to 10 hrs a day. I always dream about people, and I'm never alone in my dreams. Even when I'm breathing with trouble at night, I have someone trying to save me. Curious, it makes me feel less "isolated" now that I'm thinking about it.

Re: Ask HN: Does anyone dream of code?

#37

In CS 101 I spent all night working on my final homework, walked into class, put the printed solution on the professor's desk, sat down in a desk right in front of his and fell asleep. I dreamt about the homework problem, and realized I had made a mistake. I immediately woke up, grabbed the paper, and made the correction. The whole class burst into laughter, but the professor didn't seem disturbed. Later he told me s…

[deleted]

Re: Ask HN: Does anyone dream of code?

#40
post #29

I've been doing this for 30 years. Why? Because I work in such a way to make it happen. What you call a problem, I embrace as a gift. Of all the things I've discussed here at Hacker News over the years, this is probably the #1 subject. Most programmers have the opposite problem of you: they have trouble turning their minds on . I always turn my computer off several hours before bed. The last thing I do every night is…

A lot of programmers I respect like to work on printed out code, and it's something I enjoy as well. Furthermore I'd love if we could work completely offline, with pen and paper.
Post reply on HN