« PREVIOUS ENTRY
The politics of game death

NEXT ENTRY »
Tubes of the world!

Programming as poetry — the song

For years, programmers have been arguing that writing code is oddly similar to writing poetry. In both cases, the idea is to write with the maximum compression possible — cramming the most amount of meaning and substance into a very short space. That’s why the best programmers are always praised for the elegance of their code — how spare and clean it is. It’s kind of like early modernist poetry, which tried to strip language down as far as possible, the epitome of which might be Ezra Pound’s famous “In a Station of the Metro”.

This comparison is not actually as fey and aesthetic as you might imagine: The question of the literary style of code is politically significant, insofar as there is a heated debate about whether a computer program would be protected by the U.S. courts as a form of speech. If you believe, as I do, that computer language has a literary style of its own, then it’s damn hard to explain why it shouldn’t be given free-speech protection. But many judges do not yet grok this, and maybe never will. I predict this fight will one day hit the Supreme Court in a big way, and have rather earthshattering implications for determining which programs can and can’t be written.

One guy who needs no convincing about the literary status of code is MJ Hibbert. He’s a U.K. musician who has written and recorded “Programming is a Poetry for our Time” — a totally deranged and hilarious song that makes my argument above, except wrapped in a trippy folk melody. You can download the song here, and view the lyrics here; they’re excerpted below:

Take a complicated idea

And make the underlying point of it clear

Compress it down to fit in memory

Now tell me what’s the difference

Between programming and poetry?

Programming is a poetry for our time
It’s a poetry for our time

Indenting every line
Sorted into stanzas so that you can find
Selected lines to quote or just a phrase to paste
Into the epics that live underneath
The Web and Word and Databases

Programming is a poetry for our time
It’s a poetry for our time

I wonder would Wordsworth have written in Perl?
Would Keats have used Notepad for HTML?
I reckon Byron would see
The irony
Of writing words to change the world that we
Can’t live without but no-one ever sees

I can’t imagine how surreal it is to be in a bar when he plays this thing.

(Thanks to Little Things for this one!)


blog comments powered by Disqus

Search This Site


Bio:

I'm Clive Thompson, a writer on science, technology, and culture. This blog collects bits of offbeat research I'm running into, and musings thereon.

Currently, I'm a contributing writer for the New York Times Magazine and a columnist for Wired magazine. I also write for Fast Company and Wired magazine's web site, among other places. Email or AOL IM me (pomeranian99) to say hi or send in something strange!

More of Me

Twitter
Tumblr
Flickr


Recent Entries

A long German word for “noticing when ads are being customized based on your surfing history”

Gay squid sex

“El Ajedrecista” — an analog chess-playing computer from 1912

Hacking the Model T

“How did you find my site?” and Vannevar Bush’s memex

» visit the Collision Detection archives

Clive Thompson's Tumblr
a bunch of stuff

May 20, 2011 » 02:28 PM

From Christopher Kennedy’s very droll book “Neitzsche’s Horse”.

July 28, 2010 » 07:35 AM
“Wr” - S

July 06, 2010 » 10:05 AM

My Xbox broke, and I was trying to Google some possible technical solutions, when I noticed that Google appears to be encouraging me to make a typo. I suppose it’s possible that Google’s algorithms know that typing “wont” instead of “won’t” would produce better results.

June 29, 2010 » 05:00 PM

On the other hand, when I tried the test for multitasking, I was pretty abysmal. I performed worse than people who identify themselves as heavy multitaskers, and those who identify as low multitaskers.

June 29, 2010 » 04:58 PM

I finally got around to trying out the interactive “test your distractability and multitasking” page at the New York Times, which they put up alongside their story earlier this month about how computer distractions are eroding our lives. 

According to the test, I guess I have good focus — I’m not very distractable! 

» visit my Tumblr

Recent Comments

Photos

» see all of my photos on Flickr

Collision Detection: A Blog by Clive Thompson