Geeks Just Wanna Have Fun = #songsincode

Here’s a little bit of coffee break fun for geeks and code monkeys.

Songsincode memeToday’s trending topics picked up perhaps the geekiest, funniest, in-jokiest hashtag to hit Twitter yet — the #songsincode meme.

The idea is relatively self-apparent to anyone familiar with code and likely completely and utterly baffling to those not. Simply take any well know song title/lyric and represent it as code. I’m amazed at how at how much this meme has captured the imagination, with literally thousands of musical nerds trying to outdo each other.

It certainly got some snickers and woops around the SitePoint HQ and elicited our own contributions.

  • if(isout(my.milkshake)) { yard.attract(boys.all()) }

And the seminal rap masterpiece…

  • try { me.closeToTheEdge() } catch( loseMyHeadException ) { dontPushMe() }

Our SitePoint Collective Top 12

  • if (this.streets.name == undefined) { _root.where = this}
    @joshamman
  • if (problem.comes(along){you.must(it.whip(good))}

    @DopeGhoti
  • SELECT person WHERE AGE > 12 AND AGE <20 AND SMELLS LIKE '%SPIRIT%'

    @nickhodge
  • while(i=1;i == 3; i++) { lady++; }

    @ruxton
  • if($me->killed == $man && $me->gun->location == $man->head){$me->gun->trigger->pull();$me->mother->tell();}

    @snikchnz
  • ghostbusters();

    @alexgrey
  • if (self.hedgerow().hasBustle()) { self.alarmCallback().clear(); }

    @daveslutzkin
  • If (BillieJean.is != my.lover) { BillieJean.justa = 'girl'; i = 1; }
    @pud
  • def jungle: if time.tmhour > 20 OR time.tmhour < 5: lion.sleep()@GeordieGuy
  • <span style="color:#f00"><span style="color:#f00">wine</span></span>

    @alicam
  • if (walk < =500) {walk++)} if (walk <= 1000) {walk++) else fallatdoor()}

    @wolfcat
  • if(Girl.styles.borderBottomWidth > 100) { RockingWorld.rotate(); }

    @ruxton

The challenge has been thrown down. Do your baddest.

Free book: Jump Start HTML5 Basics

Grab a free copy of one our latest ebooks! Packed with hints and tips on HTML5's most powerful new features.

  • alexweber

    $this->canTouch = !isHammerTime()

  • {RainmakeR}

    $guy->setLove($girl->getLove());
    $guy->setRules($girl->getRules());
     
    $guy->commit();


    if ($guy->name == "Rick Astley")

    {
       $girl->setGiveYouUp(false);
       $girl->setLetYouDown(false);
       $girl->setRunAroundAndDesertYou(false);
       $girl->setMakeYouCry(false);
       $girl->setSayGoodbye(false);
       $girl->setTellALieAndHurtYou(false);
    }

  • jeff

    today was a fun day. I got zero work done.

  • http://www.waterfallweb.net/ RockyShark

    Oh no – I’ve been Rickrolled in code!

  • http://www.sitepoint.com AlexW

    I must admit, I considered Rick, but couldn’t have bettered that rendition!

  • {RainmakeR}

    Thanks for fixing the formatting, Alex :)

  • Ben

    @alexweber
    Had the same idea:

    if (cantTouchThis) { echo “stop!”; hammerTime(); }

  • Anonymous

    self.stare(she);
    if( self.stareLength > self.MAX_STARE_LENGTH ) {
    self.breakDown();
    self.cry();
    }

  • Anonymous


    $i = brandnew Me();

    if($i->closedTasks() && $i->finishReports()) {
    goto vacations;
    }

    $i->hardNonsenseWork();

    vacation:
    $i->relaxTakeItEasy();

  • @kampfschlumpf

    alert(“Umbrella”);
     
    for(e=0;e<songs["umbrella"].length;e++){ 

    alert(“ella”)

    }

    for(i=0;i<songs["umbrella"].length;i++){ 

    alert(“eh”)

    }

  • http://www.retrogarden.co.uk/ rhysboy84

    I’m sorry for this. It’s a Cure song.

    if ($monday == "blue" || $monday != "blue")
    {
    if ($tuesday == "grey" && $wednesday == 2)
    {
    if ($thursday != "care about you")
    {
    $friday = "I'm in love";
    }
    }
    }

    $monday = "you fall apart";
    $tuesday.myheart = break();
    $wednesday.myheart = break();
    if ($i == 1 && $i != 1)
    {
    $thursday.start();
    }
    $friday = "I'm in love";

    $saturday.wait();

    if ($sunday == "comes too late")
    {
    $sunday != "comes too late";
    }

    if ($i == 1 && $i != 1)
    {
    $friday = "hesitate";
    }

    if ($monday == "black" || $monday != "black")
    {
    if ($tuesday == "heart attack" && $wednesday == "heart attack")
    {
    if ($thursday != "looking back")
    {
    $friday = "I'm in love";
    }
    }
    }

    $monday = "hold your head";
    $tuesday = "stay in bed";
    $wednesday = "stay in bed";
    $thursday = "watch the walls instead";
    $friday = "I'm in love";

  • robdixon

    Nice ones! Here’s a few more I came up with. Mostly ActionScript. :)

    mine.getChild("sweet");
    ------------

    if(hammer) {
    with(this.land) {
    hammer(morning);
    hammer(evening);
    hammer(danger);
    hammer(warning);
    hammer(love);
    }
    }
    ------------

    var Ah:Array = [];
    Ah.push(it);
    Ah.push(it["good"]);
    Ah.push(it);
    Ah.push(it["real good"]);
    ------------

    function God() {
    save(queen);
    if (queen != humanBeing)
    future = !future;
    }
    ------------

    function get satisfaction():Boolean {
    return false;
    }
    function get girlReaction():Boolean {
    return false;
    }
    ------------

    stop();
    look(around);
    var it = 0;
    while (++it <= 19;)
    {
    if (nervous) { break; }
    }

  • robdixon

    stop();
    look(around);
    var it = 0;
    while (++it <= 19)
    {
      if (nervous) break;
    }

  • http://www.gospelrhys.co.uk/ rhysboy84

    Suppose to be really geeky “blue” should be replaced with “#0000FF”, “black” with “#000000″; and “grey” with “‘CCCCCC”

  • Ketira

    I think I’ve got this right:

    if (you=there {you=goneforever)}
    if (i=there {i=losemyway)}
    if (we=stayhere {we != together)}
    then {anywhere=is}

    It’s the chorus of “Anywhere Is” by Enya –someone check the code to see if I’ve got this right, please?

  • http://www.deanclatworthy.com Dean C

    Haha this is probably my favourite blog post on SP to date :) I actually LOL’d at some of these :) 3 times a lady was the best!


    $chanceTook = false;
    $honeyImStill = null;
    $firstInLine = false;
    if(youChangeYourMind())
    {
    $firstInLine = true;
    }
    $honeyImStill = 'free';
    try {
    $chanceTook = true;
    }
    catch(Exception $e)
    {
    throw new ChanceNotTookException();
    }

  • @kampfschlumpf

    Another one:

    if($you->go_down){

    if(gender_of("singer")=="w") $bodypart="hair";
    else $bodypart="<head>";

    $you->spin_my($bodypart, "right round");

    }

  • Add

    if(i.shot() == 'sheriff') { return (i.shot() == 'deputy'); }

  • http://timkenington.wordpress.com tjk

    while (altitude.level ≤ -1 && paintColor == "yellow") { System.out.println("We all live in a " + paintColor + " submarine"); }

  • Derek Erdmann

    I posted this on twitter yesterday:
    i = 0;
    while ( i < 1 ) { believe(); }

  • Bad Idea

    $me = “Bad Idea”;
    $smallestpart = “Bad”;
    $biggestpart = “Idea”;
    $you = “here”;

    if ($you!=”here”) { $me = “Bad”; }

  • BlueSeca

    I can’t believe no one’s called out DopeGhoti (2nd in the list) on his egregious syntax error. That if condition needs a closing parenthesis! Classic noob mistake ;)

  • CrazyMuttDesign


    If dogs.letout Then
    For i As Integer = 0 to 3
    Console.Write("who")
    Next
    End If

  • Chris Pratt

    ["nothing's wrong with me", "something's got to give"].each { |str| 4.times { |i| puts “#{i+1}, #{str}” } } bodies.letHitFloor

  • http://www.keystonecapitalchorus.org DaveMaxwell

    if(i.shot() == ‘sheriff’) { return (i.shot() == ‘deputy’); }

    Shouldn’t that be
    if(i.shot() == 'sheriff') { return (i.shot() != 'deputy'); }

  • Anonymous

    Shouldn’t that be
    if(i.shot() == ‘sheriff’) { return (i.shot() != ‘deputy’); }

    ..or..

    if(i.shot('sheriff')) { return !i.shot('deputy'); }

  • @kissmyawesome

    for (var i=0;i<=9;i++) print “no”;
    while (i++);

  • POTFU

    if (your_love == all_i_have_in_this_life) then
    do until (time.EOF)
    your_love = enough()
    loop
    end if

  • slightlymore

    Some of mine:

    so = new swfObject();
    so->addParam('can_save', ['universe','∀of us']);

    red = new Colour();
    Red.addItem(new Person('lady'));
    Red.lady.danceWith(new Person('me'));

    CA=new Hotel();
    CA.lovelyThings('place','face');
    CA.setRooms(∞);
    CA.daysOpen(365);
    CA.location->('here');


    for (i=1; i<100; i++) {
    print ("red balloon");
    }

  • Mehal

    #define FERGILICIOUS L”Make the boys go loco”

  • ChrisK985

    LMAO, very good stuff. My fav. though has to be ghostbusters();.

  • RealRusty
  • ThomasWoof

    Public Class Field
    Public Shared intWidth as Integer
    Public Shared intHeight as Integer
    Public Shared tsDuration as TimeSpan
    Public Shared strVegetation as String

    Public Shared Sub Add()
    intWidth += 1
    intHeight += 1
    tsDuration = tsDuration.Add(New Timespan(0, 0, 1))
    End Sub
    End Class

    Public Class FieldSizeDuration
    Public Shared Sub Calculate()
    Dim fStrawberry as Field = new Field()
    fStrawberry.Vegetation = “Strawberry”
    While (1)
    fStrawberry.Add()
    Do
    End Sub
    End Class

  • http://www.waterfallweb.net/ RockyShark

    if(!$haveYou){
    $anybody->want(false);
    }
    //baby

  • MyWebs

    if ($bf == “Cheating”){
    CreateSong($Title = ‘Tear Drops On My Guitar’);
    $msg = “U said U <3 me!”;
    mail($bf, Dear John Letter, $msg);
    fopen(“date.com”,”r”);
    }

  • Ryan

    Heres my attempt that I posted the other day:
    #billiejean:not([my=lover]):after {content:”She’s Just A Girl Who Claims That I Am The One”;} http://twitter.com/thecssninja/status/3439873164

  • Ryan

    Here’s my attempt I posted the other day:
    #billiejean:not([my=lover]):after {content:”She’s Just A Girl Who Claims That I Am The One”;}

  • Anonymous

    @bpanulla java.lang.IllegalAccessException: Class You can not access a method touch() of class This.

  • http://www.magain.com/ Matthew Magain

    A bit late to the game, but my contribution:

    me = new person(garden->do(); weeds->dig()); who = me++; if (me == 64) {you.validate(me.need()); you.validate(me.feed())}

  • http://www.evanbot.com ETbyrne

    To be quite honest, the whole #songsincode thing on twitter has been really annoying…

  • @jockeselin

    Person.new(YOU).shake(Person.new(self) if (Time.now > Time.gm(Time.now.year, Time.now.mon, Time.now.day-1, 22)) and (Time.now < Time.gm(Time.now.year, Time.now.mon, Time.now.day, 5))

  • Mark

    We had a day at work of this, and since we’ve been learning Ruby on Rails:

    ["give you up","let you down", "run around", "desert you"].select{|action| false}

  • Fahad Sadah

    while (1==2) { //Never
    giveUp(YOU);
    }

  • Ronnie

    Door theDoor = me.See();
    if (theDoor.Color == #FF0000)
    theDoor.Paint(#000000);

  • Mike

    These are all so good… Here is my contribution…


    if(month == 11) { rain(); }

  • Lers

    Been some days since the last post, but if anyone of you coders are still reading this id like to make a request. I saw it once but i cant seem to find it anymore.
    If your happy and you know it. I know it makes a great piece of text and its quite funny