Blank Page

Blank Page is home to stories that help creatives get smarter at writing.

Follow publication

Member-only story

The Surprising Similarities Between Writing and Coding

Photo by J. Kelly Brito on Unsplash

Every day, for hours at a time, I sit at my computer and tapdance my fingers across the keyboard. Sometimes I type words for emails or articles. Sometimes I type a weird pseudo-language full of brackets and dots and semi-colons, telling the computer what to do.

When we write prose, there is plenty of whimsical advice. Think about your ideal reader, they say. Imagine them reading your words and write to them directly. Don’t use (pointless) adjectives. Passives should be avoided. Never use a five-dollar word when a fifty-cent one will do. But whatever we write, some people will enjoy it and some will not. We have no platonic reader who will get each reference and love every turn of phrase. When we write code, on the other hand, we do have an ideal “reader”: the computer. A reader that is simultaneously more forgiving and less forgiving than a human. Computers don’t care about style or clarity. They won’t try to start bad-faith arguments with you on Twitter. But they really, really care about typos.

There is plenty of whimsical advice about coding too. Use meaningful names. Don’t reinvent the wheel. Coding advice tends to contain more acronyms. YAGNI — “you aren’t going to need it.” DRY — “don’t repeat yourself”. SOC — “Separation of concerns”. They sound like verbs: dry your code out, soc it on the nose. Some advice is more…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Blank Page
Blank Page

Published in Blank Page

Blank Page is home to stories that help creatives get smarter at writing.

Simon Pitt
Simon Pitt

Written by Simon Pitt

Media techie, software person, and web-stuff doer. Head of Corporate Digital at BBC, but views my own. More at pittster.co.uk

Responses (5)

Write a response