pictures | blog | videos

Songs In The Key Of C++

This story begins when I was thinking in the shower about how I’d write Bon Jovi’s “Livin’ on a Prayer” in code. It took a little thought but I realized that to hold on to what we’ve got would be phrased

	we.holdOn(we.get());

as you wouldn’t call “got” because code doesn’t really have past tense. Then I realized “doesn’t make a difference if we make it or not” could be reinterpreted to say “No return check necessary” because it doesn’t make a difference

//No return check, doesn't make a
//difference if makes it or not.
we.holdOn(we.get());

I started noodling with this at work, and I put a few up on our wiki, and (partially because it was a boring day) a number of people from the team started submitting all sorts of codified-songs. So I thought – maybe there’s something to this?

And with that, songs.nicreations.com was born.

Song lyrics and computer languages are not usually considered chocolate and peanut butter, but they fuse together in tangy ways. Submissions can come from any song and any programming language. Just follow the link.

One Response to “Songs In The Key Of C++”

  1. Nick Says:

    Testing adding a comment

Leave a Reply