This is not a philosophical point about programming being as beautiful as Shakespeare sonets. This is real poetry made with code. Started as an unofficial initiative within Java developer community of Vilnius, Lithuania, Source Code Poetry Challenge was first held in 2013 and has been evolving ever since.
Source Code Poetry is an initiative that encourages software developers to write code that rhymes, has poetic rhythm, and fascinate us. We show off how creative developers are and how multidimensional programming languages can be.
Let us examine some of historic submissions. Those do speak louder than any words.
It is a C++ poem about the deep nostalgic feelings the author has towards the now-gone era of classic C; and about the new scary times brought in by the C++ – which “spoiled” and “broke” the innocence of ancient art of software development.
From a technical perspective, the poem is a pure nugget: there are neither
#defines, nor any other boilerplate code – the whole text is a smooth human-readable text. Author only uses the “class” keyword to make his point – classes are unnecessary for writing good code (there’s no such thing that couldn’t be coded in the bytecode as well).
Another one, from 2014, a mind-bending C++ code by German academic Droggl: one obvious attempt to trigger cognitive dissonance inside the brain of a C/C++ programmer.
When trying to code-review this piece, all the shaky fragments rhyme in your head as you go from one line to another, from one keyword to the next – all the way convincing yourself it should NOT compile, yet it still somehow does. To tell why it compiles when it should not, you have to read it several times.
It is hard to tell its poetic value exactly; however chances are you will never be the same C++ coder again after spending enough time analyzing this stuff: cpp keywords you’ve known for many years do rhyme.
Bjarne Stroustrup must have intentionally designed The Language this way.
Each year the competition is different from the ones before. This year it is dedicated to Shakespeare's 400th death anniversary. Thus, submissions have to be related to the great wordsmith one way or another. Just like this year's submission by Lector George: All we received was an HTML file with complete text of "Hamlet" in it. After checking the Console tab we found something we'd never expect to find - a hidden "roses are red..." message.
When picking best submissions, the decision is far from easy for the jury board. Important aspects – such as humor, technical implementation, overall emotional impact, storyline, originality, poetic value – are all subjects to the human interpretation.
The competition is still ongoing. Even though it's only a few days left, everyone is welcome to submit their masterpieces. The jury board is waiting with their breath bated.
See more submissions, prizes, get to know jury board members at sourcecodepoetry.com
Submit your entry to firstname.lastname@example.org BEFORE June 6th.