Here’s a little bit of coffee break fun for geeks and code monkeys.
Today’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}
@joshammanif (problem.comes(along){you.must(it.whip(good))}
@DopeGhotiSELECT person WHERE AGE > 12 AND AGE <20 AND SMELLS LIKE '%SPIRIT%'
@nickhodgewhile(i=1;i == 3; i++) { lady++; }
@ruxtonif($me->killed == $man && $me->gun->location == $man->head){$me->gun->trigger->pull();$me->mother->tell();}
@snikchnzghostbusters();
@alexgreyif (self.hedgerow().hasBustle()) { self.alarmCallback().clear();}
@daveslutzkinIf (BillieJean.is != my.lover) { BillieJean.justa = 'girl'; i = 1; }
@puddef 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.
Related posts:
- More Stencil Fun For Designers The Yahoo Design Stencil Kit gives you a set of...
- Techy Treasures #5: Fudging CSS Counters in Internet Explorer CSS Counters are a useful but under-used feature of CSS2...
- Truthy and Falsy: When All is Not Equal in JavaScript Anything in JavaScript can be considered to be either truthy...







$this->canTouch = !isHammerTime()
August 21st, 2009 at 1:49 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);}August 21st, 2009 at 2:07 pm
today was a fun day. I got zero work done.
August 21st, 2009 at 2:36 pm
Oh no – I’ve been Rickrolled in code!
August 21st, 2009 at 3:38 pm
I must admit, I considered Rick, but couldn’t have bettered that rendition!
August 21st, 2009 at 3:47 pm
Thanks for fixing the formatting, Alex :)
August 21st, 2009 at 3:52 pm
@alexweber
Had the same idea:
if (cantTouchThis) { echo “stop!”; hammerTime(); }
August 21st, 2009 at 4:44 pm
self.stare(she); if( self.stareLength > self.MAX_STARE_LENGTH ) { self.breakDown(); self.cry(); }August 21st, 2009 at 5:10 pm
$i = brandnew Me(); if($i->closedTasks() && $i->finishReports()) { goto vacations; } $i->hardNonsenseWork(); vacation: $i->relaxTakeItEasy();August 21st, 2009 at 5:39 pm
alert(”Umbrella”);
for(e=0;e<songs["umbrella"].length;e++){
alert(”ella”)
}
for(i=0;i<songs["umbrella"].length;i++){
alert(”eh”)
}
August 21st, 2009 at 6:07 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";August 21st, 2009 at 6:14 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; } }August 21st, 2009 at 6:18 pm
stop(); look(around); var it = 0; while (++it <= 19) { if (nervous) break; }August 21st, 2009 at 6:22 pm
Suppose to be really geeky “blue” should be replaced with “#0000FF”, “black” with “#000000″; and “grey” with “‘CCCCCC”
August 21st, 2009 at 6:24 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?
August 21st, 2009 at 6:46 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(); }August 21st, 2009 at 6:50 pm
Another one:
if($you->go_down){ if(gender_of("singer")=="w") $bodypart="hair"; else $bodypart="<head>"; $you->spin_my($bodypart, "right round"); }August 21st, 2009 at 7:25 pm
if(i.shot() == 'sheriff') { return (i.shot() == 'deputy'); }August 21st, 2009 at 8:20 pm
while (altitude.level ≤ -1 && paintColor == "yellow") { System.out.println("We all live in a " + paintColor + " submarine"); }August 21st, 2009 at 8:31 pm
I posted this on twitter yesterday:
i = 0;while ( i < 1 ) { believe(); }August 21st, 2009 at 10:14 pm
$me = “Bad Idea”;
$smallestpart = “Bad”;
$biggestpart = “Idea”;
$you = “here”;
if ($you!=”here”) { $me = “Bad”; }
August 21st, 2009 at 10:42 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 ;)
August 21st, 2009 at 10:54 pm
If dogs.letout Then For i As Integer = 0 to 3 Console.Write("who") Next End IfAugust 21st, 2009 at 11:26 pm
["nothing's wrong with me", "something's got to give"].each { |str| 4.times { |i| puts “#{i+1}, #{str}” } } bodies.letHitFloor
August 22nd, 2009 at 12:18 am
Shouldn’t that be
if(i.shot() == 'sheriff') { return (i.shot() != 'deputy'); }August 22nd, 2009 at 12:53 am
..or..
if(i.shot('sheriff')) { return !i.shot('deputy'); }August 22nd, 2009 at 2:12 am
for (var i=0;i<=9;i++) print “no”;
while (i++);
August 22nd, 2009 at 3:59 am
if (your_love == all_i_have_in_this_life) then do until (time.EOF) your_love = enough() loop end ifAugust 22nd, 2009 at 5:11 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"); }August 22nd, 2009 at 5:12 am
#define FERGILICIOUS L”Make the boys go loco”
August 22nd, 2009 at 6:00 am
LMAO, very good stuff. My fav. though has to be ghostbusters();.
August 22nd, 2009 at 6:28 am
@RealRusty me = new Cowboy() \n me.riding(”steel_horse”) \n if me.isDead()? || !me.isDead()? \n me.setWanted(true); \n end #songsincode
@RealRusty water->attach(smoke) && sky->attach(fire) #songsincode
@RealRusty while ($you->take_breath()) $me->watching($you) // #songsincode
August 22nd, 2009 at 6:43 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
August 22nd, 2009 at 6:51 am
if(!$haveYou){ $anybody->want(false); } //babyAugust 22nd, 2009 at 7:51 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”);
}
August 22nd, 2009 at 8:08 am
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
August 22nd, 2009 at 8:01 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”;}
August 22nd, 2009 at 8:02 pm
@bpanulla java.lang.IllegalAccessException: Class You can not access a method touch() of class This.
August 22nd, 2009 at 9:32 pm
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())}August 23rd, 2009 at 12:04 am
To be quite honest, the whole #songsincode thing on twitter has been really annoying…
August 23rd, 2009 at 4:52 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))August 24th, 2009 at 7:39 am
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}
August 24th, 2009 at 4:17 pm
while (1==2) { //Never
giveUp(YOU);
}
August 25th, 2009 at 8:52 pm
Door theDoor = me.See();
if (theDoor.Color == #FF0000)
theDoor.Paint(#000000);
August 28th, 2009 at 4:29 pm
These are all so good… Here is my contribution…
if(month == 11) { rain(); }August 29th, 2009 at 12:18 am
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
September 18th, 2009 at 10:09 pm