Finding Flow: writing vs. coding

When I first started to learn programming, about 15 years ago, I remember being surprised at how easy it was for me to get focused and stay focused.  I loved (and still love) the feeling of getting lost in a project, and could easily spend hours upon hours “in the zone”. No procrastination, no resistance, only focus and enjoyment.  It was easy for me to find Flow.

Part of why this surprised me so much is that I had always struggled to achieve (and still do) a similar state when writing.  Dating back to the first paper I ever wrote (maybe 4th grade? Certainly 6th grade), the feeling I most associated with writing a paper was terror, dread, resistance, and avoidance.  Procrastination station.

Programming and writing are pretty similar activities, so I often think about what makes programming such a joy and writing such a chore (for me at least).

Recently, the answer has been revealing itself to me, as I’ve been seeing a mindfulness therapist. Mindfulness centers around the practice of noticing your thoughts — developing a kind of “meta awareness” — so that you can then develop more control over how you react to your thoughts.  In other words, often times, the thing that troubles us isn’t our direct experience, but rather our reaction to that experience.  Mindfulness (at least at the stage I’m at) helps you distinguish between the two.

So, as I’ve been working on the mindfulness practice, and at the same time working on a few long-form writing projects, I’ve been paying a lot of attention to that moment when I find myself resisting the task.  When that feeling rises up in my belly that pushes me to turn away, break focus, check my email, snap out of whatever Flow I may have achieved.

And each time that happens, I’ve been trying to take a second and examine that feeling, try and figure out why I’m pulling away — trying to notice what, exactly, is going on.  It’s a really odd thing to do, and is pretty illuminating.

As far as I can tell so far, the difference between writing (where I feel the constant pull of avoidance) and coding (where I easily melt into Flow) is a certain form of terror, of not knowing “the answer” — whether that’s a certain wording, and idea, a structure, etc.  Whereas with coding, I don’t expect to know the answer, and bring wrong (try, break, repeat, repeat) is just part of the process.

Also, I often get intimidated by the scope of a writing project, whereas it’s easier for me to tackle programming work in pieces, so no one piece feels looming and huge.  Recently, I’ve been trying to focus my time on smaller pieces (now I’m going to focus on the outline, now I’m going to flesh out the second section, etc), and have had some success.

I am curious if others see this the same way, and/have techniques that work for them?

The thing is: writing is powerful, exciting and fun, if I can just get over the hump, and then stay in the zone.  So this is something I’m going to keep working on.

P.S.: other places I’ve found flow: skiing, cooking, doing carpentry/construction work, singing, playing drums, building powerpoint decks, talking on panels at conferences.  It sure is a good feeling.



  • awesome discovery dude.

  • randcraw

    I think flow requires focus. If you lose focus, perhaps when writing by becoming distracted by a new thought or doubt about the direction you’re taking, you lose inertia and become mired in thought, exiting flow.

    Outlining is a good way to map out your path before wordsmithing and stay focused. Some don’t need to outline as much when coding as when writing. I’m like rhat too, though flow arises for me when doing both tasks, but writing disrupts my flow more easily too. Perhaps it’s because that language is much richer and more powerful. :-)