Saturday, August 22, 2009

Songs In Code

Christian Heilmann of YDN fame, started a meme on twitter for writing songs in code, within the 140 char limit of course. Participation was simple: simply add a hashtag of #songsincode to the tweet. Quite soon, it became a trending topic on twitter. One way to look at it is that people on twitter have nothing to do, but the more likely one is that geeks found something to kill time with on a Friday.

Of course, quite a few gems came out of it. I'm listing a couple of my favourites below:

  • !my.isLover(billyJean) && billyJean.claims(my.theOne) && !my.isSon(theKid)
  • while (countdown > FINAL)
      countdown--;
  • public void setShirt(Shirt s){
        throw new ImTooSexyException(s);
    }
  • if (this.streets.name == undefined) {
        _root.where = this
    }
  • SELECT person WHERE AGE > 12 AND AGE <20 AND SMELLS LIKE '%SPIRIT%
  • <span style="color:#f00">
        <span style="color:#f00">wine</span>
    </span>
  • if(me.crazy.go()){
        you.call(meSuperman)
    };
    function meSuperman(){
        return '?' //Kryptonite
    }
  • .clowns{float:left;}
    .jokers{float:right};
    #me_you{position:fixed;margin:0 auto;width:100%}
  • var i = {shot:{sheriff:true,deputy:false}}
  • try{if(money>0 && work=='' && chicks=='free'){
        throw 'that ain\'t working'
    }}
  • class HotelCalifornia {
        void checkOut () {
            canLeave=false;
        }
    }
  • while(1){
        try {
            Britney.Sing();
        } catch (Exception ex) {
            throw new Exception("Oops");
        }
    }
  • UPDATE people SET parent_occupation = 'preacher man' WHERE has_pleased = 1
  • ["step", "move"].forEach(i.watchingYou);
  • (defun get (x) (if (neq x 'satisfaction) (error)))
        (get (not satisfaction)) ;
  • 99.times {Ballon.new(:red)}

2 comments:

John | Retro Programming said...

My favourite is the following by royvanrijn:

for(Leaf leaf:leafs)
{ leaf.setColor(new Color(139,69,19)); }
sky.setColor(Color.GRAY);

Rahul - Web Guru said...

I'd love to read it, but unfortunately, i'm not much into programming ;)

ShareThis