Writing vs. Coding
I recently read Clive Thompsonâs book Coders. One of the things he mentions is how coding feels so much more satisfying than writing.
One front-end coder I know used to do a lot of visual art but found she did it less now that she was programming for a living. Why? She so deeply enjoyed the binary jolt of joy when a program started working. âI think part of the reason Iâm not doing just art anymore is it just doesnât satisfy me the same way,â she said. âThere is no âahaâ moment with a painting,â no instant when it suddenly beings âworking.â
I noticed this effect myself. Iâm in my late 40s but havenât done much programming since I was a kid. But when I started researching this book, I began teaching myself a bit more and quickly discovered something dangerous: It was much more satisfying to program than to write. (81)
Interesting, no? Writing prose does not possess the same âbinary pass-fail parametersâ as coding. You donât have âcoderâs blockâ the way you have âwriterâs blockâ. In writing, the stereotype is that authors are actively avoiding writing. In programming that rarely seems to be the case. In fact, stepping away from the act of codingâfrom the computer itselfâis often the best thing you can do to solve a particularly thorny programming problem. But itâs incredibly hard to doââNot until this damn thing starts working!â Personally, Iâve heard countless stories of people who were working on a difficult problem and passed on food and drink for hours until they were finally so beaten down by the computer they gave up. When they came back the next day, they solved the problem in two minutes. âIf only Iâd stepped away sooner,â is often the refrain when it comes to coding.
Thompson continues with his own story:
Faced with the pleasures of coding and the pain of writing, I started opting for the former. Any time my writing got difficult or existentially painful, I abandoned itâand pecked away at some code instead. It didnât matter what type of programming; anything would do, no matter how seemingly useless or pointless or simply exploratory.
I do this too. Rather than write (or do something hard in my personal life) I go âpeck awayâ at some code. I can easily slump into being a âcomputer bum, a compulsive programmer.â
Thompson goes on to describe how he wrote a number of python-based tools for himself to interact with Twitter. After a couple days noodling around, he realized he hadnât done any work on his book. Heâd merely been coding. But it was much more fun!
Obviously, I enjoy writing! Iâve been a journalist for 25 years. Some of the joys of publishing are the same as the joys of coding. They both have the joy of creation ex nihilism; where there was once nothing, now there is something. But...My achievements at codingâmodest as they wereâfelt more objectively solid, more tangible, than my achievements at writing.
The quality of writing is notoriously subjective. This is something that tortures all scribes. Letâs consider the column I published last month in Wired magazine. Is it a good column? Well, that depends on who you ask. As the writer, I can tell you how satisfied I was with it; maybe it seemed âserviceably okayâ to me, or maybe I felt I knocked it flaming out of the ballpark. Or you could ask readers or poll their reaction. Did it get a lot of shares on Twitter or Facebook? Did it produce a surge of traffic on the Wired site? Those are crude measures of popularity and donât necessarily reflect, in some abstract and Platonic sense, the columnâs good-ness. In writing, there is no objective measure as to oneâs quality or efficacy. A writerâs reputation is built off the approval of others, which is what makes it feel like such a dodgy, slithy enterprise. When youâre writing youâre constantly second-guessing yourself, wondering how other people will receive it.
But the code I wrote? Thereâs no question there: It works...You cannot really ask whether any particular Wired column I write is âworkingâ; writing does not possess similarly binary pass-fail parameters.
Writing is hard. Programming is hard too, but in a different way. Iâve always found it much easier to sit down and code than sit down and write. I used to think maybe thatâs because I practice coding so much. If only I practiced writing more, it would be just as easy. But hereâs Clive Thompson, a professional writer, and he still finds it much more satisfying to code than to write.
And yet, Mr. Thompson wrote a book and continues to be a writer. Perhaps he meant âsatisfyingâ in a more narrow context. Personally I think I find coding more satisfying day-to-day, writing more fulfilling year-to-year.