Live data from Hacker News

Ask HN: Does anyone dream of code?

news.ycombinator.com

131–140 of 146 posts

Re: Ask HN: Does anyone dream of code?

#131

If you think the dreams are weird how about this. There was a period when I was was spending a lot of time writing code every day. And there were some nights where I'd fall asleep then partially wake up and look at the window to see light cast on the curtain in a way that would sometimes spell a message that helped me debug, figure out a problem, or discover a new technique. Or give me an idea for an operating system…

Are u bill?

Re: Ask HN: Does anyone dream of code?

#132
post #104

Earlier quoted context omitted.

Yes, I've been doing this for at least a couple years. I've been writing various kinds of code for money since 1995, and no change has ever been as helpful to me as this one. It's just a suggestion. Not everyone will like it or agree to seriously try it. I don't think it would necessarily work well for someone who's forced to use a certain editor or configuration at work, for example (and probably continues to rely o…

Out of curiosity, what languages are you using when you do this? As a primarily Python and Haskell writer, I have no idea what you're talking about with this "unchain your mind from syntax" stuff- though I guess that in Python the syntax may be so expressive as to be no cognitive restraint, and in Haskell binding your thoughts with syntactical structure is the point .

Just Web really -- JavaScript, SQL, some bash, a little less awk, extremely rarely Perl, and a lot of the dreaded PHP.

In principle I could imagine some languages might exist in which the concerns of developers are so confined to the smallest language bits and pieces -- at the expense of bigger-picture concerns -- that the drag of ever-present syntax cues is less of a drag.

But even from what I've seen of Haskell I can't imagine wanting to have those cues in my face all the time, unless I'm either learning the language or at my wits end trying to locate a (maybe) syntax bug ... in other words, when I'm not really writing or reading code. If anything, its proximity to math might make me more eager to be free of those cues.

I think in just about any significant code-making effort, we'll need to be able to think clearly about the meaning and intent of chapters, pages and paragraphs (and maybe sentences) without hundreds of little tethers constantly reminding us about commas and parentheses and subject-verb agreement.

All I can say really is that I had no idea how much of a drag those syntax cues were until I got used to being without them. Nobody has to do it just because it worked for me (and others). It's just a suggestion.

Re: Ask HN: Does anyone dream of code?

#134

I started out in system administration and network engineering before switching to programming. I once had a dream that my cigarette needed an IP address before I could smoke it.

I think I am gonna write a Chef recipe to automate that, so we don't have to worry to assign those IP addresses, if I was you I would switch to IPv6 though

Re: Ask HN: Does anyone dream of code?

#135
When I first started to learn to program, in the very first week, I slept very little. Not because I was up late at night working but because I was so enticed and interested in what I had been learning that my brain refused to stop thinking with that mentality. So yes, I do.

Re: Ask HN: Does anyone dream of code?

#136
Yeah, happens a lot if I go to sleep without enough down time after coding. My dreams have me going over code that is needed to perform some kind of dream action, like sitting, walking, or whatever else. I'll often get stuck in a loop and go over it again and again, trying to get the logic right all night long. My wife thinks it's hilarious because sometimes I'll talk in my sleep about it.

Re: Ask HN: Does anyone dream of code?

#137

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"

I find myself dreaming in code far more frequently if I've left a problem unresolved. I never end up finding resolution in sleep though, and the problem I'm dreaming isn't usually related to what I'm actually working on. It's more like an exercise in working out the logic behind some kind of dream action, like walking or turning a door handle. I'll get stuck in a loop and go over it all night long trying to understand why is this not working!

Re: Ask HN: Does anyone dream of code?

#138
This is normal, and gamers also experience it. It's only an issue if it's interfering with your sleep regularly. You'll find that it's most acute when you're deep in a problem or learning something completely new. If you find yourself in a "loop," get up and read a few pages from a book that you're not too excited about (not code related, history or a novel). The dreams should recede when you're under less cognitive load during the day, which should happen as you learn in your role.

Re: Ask HN: Does anyone dream of code?

#139
Programming in your sleep or in the shower or any other place away from the computer is awesome, because it's often where you'll achieve a breakthrough (even in your sleep)! As Rich Hickey would say, slowing down and stepping away from the computer forces you to think more deeply about a problem and explore it more. I view it as a good thing, but it usually only happens to me when I've been deep in a problem for a while, so it's an occasional thing.
Post reply on HN