The Craft of Code

December 29, 2014

Writing code for a living is a lot like writing for a living, except that your primary audience will never see the words you write. Architects have their work on display for all to see. Writers can touch the souls of their readers directly with their prose. But coders build things that you will only see ephemerally, a distant and indistinct experience that you can only define as "working" or "buggy." That doesn't stop the code from being as much an extension of our personality as a writer's work is. All coders have a particular style to their programming. Some might chalk it up to "best practices" or "the way it should be," but really, it's character. No one will ever write the most efficient code, though we might strive for something akin to that. No one will write code without some hint of their personality creeping into it; be that perfectionism, minimalism, or perhaps a flair for the dramatic. Characters and narratives don't play so much a part in code as they do in other creative works, but other forms of art also exist primarily as an expression of the craftsman. Paintings are particularly evident of this. The next time you write an app, or even a simple script, take a moment to think about how you've written it. What does it say about you?