Wordiness Considered Harmful


February 22, 2006

Good programmers know that code is not an asset. Code is a liability. Lines of code are something you spend in order to build a product.

Why?

Two reasons (mainly):

  1. The only code you can be absolutely, positively sure is bug free is no code.
  2. The more code you write, the more you or someone else has to (re)read to understand what your system is doing.

This is the Zen.

I was pondering this idea on my way home from work this evening when it hit me that there is actually a corollary in writing (English, that is).

Words are not assets. Sentences are something that you need to spend to get your point across.

Whenever I finish a new blog, the first thing I do is go back and delete all the nonessential crap: extra words, prepositional phrases - usually sentences and paragraphs too. A lot of the in order to's, that's, anyway's and so's get the axe.

Then I go back and read what I wrote again with an eye towards rewording sentences so they require fewer words. Then I go back and rewrite what I wrote with an eye towards rewording sentences so they require fewer words.

Why does this make your writing better?

In our code corollary, above, it has more to do with point two than point one. Words are things that your eyes have to travel over and your mind has to process in order to absorbe their meaning. Reading, itself, would really blow if it weren't for the ideas conveyed by those words on the page. The less you have to read to get at that meaning the better1, but then if extra words are necessary to convey the exact feeling you want then they're necessary and there's nothing to be done about it.

This is why someone like Jane Austen is such a pleasure to read while someone like Kant is so awful that we mostly just keep him around to make fun of his writing in essays like this2.

In most cases, however, the difference isn't so pronounced. It's more subtle and subconscious.

It's the difference between walking into a room that has just been dusted and one that hasn't. Ninety-nine times out of a hundred you can't peg the difference unless you're specifically looking for it. You just know that the tidy room feels better.

Concise writing just feels better.

In and of itself, it may not be the quality without a name (that magical quality that defines good writing). But if the quality without a name is there, it allows it to come through more clearly. So bring the axe, and keep it clean.

This, similarly, is the Zen.

[1] With notable exceptions mostly having to do with poetry and word play I think.

[2] Ok, I'm being facetious here. I don't actually know very much about Kant. I'm sure his philosophies are brilliant in their own way. I just wouldn't know because whenever I try to read his stuff it feels so much like trying to wade through maple syrup that I have to stop.