songs in code

, , August 24th, 2009

A bit of geeky fun cropped up on Twitter a few days ago in the form of the #songsincode hashtag game, the purpose of which was to rewrite popular songs in the form of programming code and still have the song be recognisable (I said it was geeky). I’ve listed all my entries below, written in a Java-like code. Can you name the songs?

if (guitar.played()
    || (microwave.isInstalled() && kitchen.isDelivered()
        && fridge.isMoved() && tv.isMoved())) {
    getMoney();
}
if (touchers.contains(you)) {
    throw new InvalidOperationException(CANT);
}
hammerTime.stop();
try { ...
} catch (FallingStar fs) {
    fs.setFadeRate(0.0f);
    pocket.add(fs);
}
if (weather.isRainy()) {
    fs = pocket.get();
}
for (SlimShady ss : slimShadys) {
    if (ss.isReal()) {
        ss.requestPoseChange(STANDING);
    }
}
blueJeans.add(this);
blueJeans.setMutable(false);
blame.remove(SUNSHINE);
blame.remove(MOONLIGHT);
blame.remove(GOOD_TIMES);
blame.add(BOOGIE);
feet.setControl(null);
while (kids.hasNext()) {
    k = kids.next();
    k.setFighting(KUNG_FU);
    k.setSpeed(LIGHTNING);
}
setFrightLevel(LITTLE_BIT);
for (i = countdowns.getFinal(); i >= 0; i--);
setDestination(VENUS);
setPose(Standing.TALL);
addObserver(VENUS.inhabitants());

How many did you get?

If you liked those, you can see all the entries by searching for the #songsincode hashtag game on Twitter. Why not make up some #songsincode of your own and join in?

John Girvin

John Girvin is a software engineer, sci-fi buff, cyclist and retrocomputer fan (ie: nerd) from Belfast, Northern Ireland.

If you liked this article, why not subscribe to the RSS feed for more?

You may also enjoy these great related articles:

9 Comments:

  1. John Self

    Hehehe, brilliant. I’d contribute a few of my own except that my coding would be so implausible that it would take the point away from the joke…

  2. Niall

    Not sure if I should be proud or embarrassed that I got them all!

  3. John | Retro Programming (twitter: @)

    Fantastic, I’m still stuck on one of them though! Going back for another look.

  4. Lambday

    Would you please help me to #songsincode http://1u.ro/fF8
    { Serge Gainsbourg | ” Je t’aime moi non plus ” } in AS1, maybe ?

  5. John Girvin

    Sorry Lambday, but I don’t speak enough of either French or AS1 to help you!

  6. flybywire2 (John Metcalf)

    Twitter Comment


    rt @hashsongsincode Four amazing collections of #songsincode http://bit.ly/GWhCF http://bit.ly/6Zzxi http://bit.ly/JRi1S [link to post]

  7. #songsincode

    We’re planning to get #songsincode trending again on Friday 20 November, three months after @proxymoron created the meme. Want to join us? :)

  8. Stephen Houston (twitter: @)

    Oh dear, I fear there is

    setLimit(NO);

    to your geekness :)

  9. Stephen Houston (twitter: @)

    Oh dear, this is addictive

    if (BusState.COMING == busService.findByProvider(“venga”).getState()
    && PersonAction.JUMPING == everybody.getCurrentAction()) {
    everyBody.addLike(PersonAction.PARTY);
    }

Bang your doors:

Powered by Wordpress | Theme based on Deliciously Blue by j david macor.com
© Copyright 2013 John Girvin, All Rights Reserved.