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.