Geeks Just Wanna Have Fun = #songsincode

By | | Web Tech

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.

Written By:

Alex Walker

Alex manages design and front end development for SitePoint.com and writes Design Festival's monthly design newsletter, the SitePoint Design View.

Website
>> More Posts By Alex Walker

 

{ 46 comments }

Lers September 18, 2009 at 10:09 pm

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

Mike August 29, 2009 at 12:18 am

These are all so good… Here is my contribution…


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

Ronnie August 28, 2009 at 4:29 pm

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

Fahad Sadah August 25, 2009 at 8:52 pm

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

Mark August 24, 2009 at 4:17 pm

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}

@jockeselin August 24, 2009 at 7:39 am

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))

ETbyrne August 23, 2009 at 4:52 am

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

Matthew Magain August 23, 2009 at 12:04 am

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())}

Anonymous August 22, 2009 at 9:32 pm

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

Ryan August 22, 2009 at 8:02 pm

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”;}

Ryan August 22, 2009 at 8:01 pm

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

MyWebs August 22, 2009 at 8:08 am

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”);
}

RockyShark August 22, 2009 at 7:51 am

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

ThomasWoof August 22, 2009 at 6:51 am

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

RealRusty August 22, 2009 at 6:43 am
ChrisK985 August 22, 2009 at 6:28 am

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

Mehal August 22, 2009 at 6:00 am

#define FERGILICIOUS L”Make the boys go loco”

slightlymore August 22, 2009 at 5:12 am

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");
}

POTFU August 22, 2009 at 5:11 am

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

@kissmyawesome August 22, 2009 at 3:59 am

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

Anonymous August 22, 2009 at 2:12 am

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

..or..

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

DaveMaxwell August 22, 2009 at 12:53 am

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

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

Chris Pratt August 22, 2009 at 12:18 am

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

CrazyMuttDesign August 21, 2009 at 11:26 pm


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

BlueSeca August 21, 2009 at 10:54 pm

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 ;)

Bad Idea August 21, 2009 at 10:42 pm

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

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

Derek Erdmann August 21, 2009 at 10:14 pm

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

tjk August 21, 2009 at 8:31 pm

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

Add August 21, 2009 at 8:20 pm

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

@kampfschlumpf August 21, 2009 at 7:25 pm

Another one:

if($you->go_down){

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

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

}

Dean C August 21, 2009 at 6:50 pm

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();
}

Ketira August 21, 2009 at 6:46 pm

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?

rhysboy84 August 21, 2009 at 6:24 pm

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

robdixon August 21, 2009 at 6:22 pm

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

robdixon August 21, 2009 at 6:18 pm

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; }
}

rhysboy84 August 21, 2009 at 6:14 pm

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";

@kampfschlumpf August 21, 2009 at 6:07 pm

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

alert(“ella”)

}

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

alert(“eh”)

}

Anonymous August 21, 2009 at 5:39 pm


$i = brandnew Me();

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

$i->hardNonsenseWork();

vacation:
$i->relaxTakeItEasy();

Anonymous August 21, 2009 at 5:10 pm

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

Ben August 21, 2009 at 4:44 pm

@alexweber
Had the same idea:

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

{RainmakeR} August 21, 2009 at 3:52 pm

Thanks for fixing the formatting, Alex :)

AlexW August 21, 2009 at 3:47 pm

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

RockyShark August 21, 2009 at 3:38 pm

Oh no – I’ve been Rickrolled in code!

jeff August 21, 2009 at 2:36 pm

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

{RainmakeR} August 21, 2009 at 2:07 pm

$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);
}

alexweber August 21, 2009 at 1:49 pm

$this->canTouch = !isHammerTime()

Comments on this entry are closed.