Thursday, August 20, 2009

k.Tel (#songsincode > 100) ;

Python, javascript, cobol and more - good, bad, ugly syntax and all - jumped to the forefront of entertainment for a few hours today as the #songsincode hashtag on Twitter shot up the charts. I see some folks hating on it already, so that proves its gone over the top. Just so I don't have to drill through all the spammers everytime I want to look at them and love them all over again, I am putting some of my favorites here, attributed to the awesome Tweeters who made them possible.

In no particular order...

John Zeitler from Pittsburgh contributed several good ones - http://twitter.com/jzeitler

public void reality() { try{ if( this.realLife()||this.justFantasy() ) { throw new Landslide(); } } catch (Landslide l) { this.reality() } }

public void timeWarp() { this.jump(left); this.step(right); this.thrust(pelvic); this.timeWarp(); }

if( me.has(you) || !me.has(you) ) { /*this won't happen*/ me.live(); }

if( me.cash > 1000000 ) { house yourHouse = Store.buy(house.class); you.give(yourHouse); }

djbigdaddy from NYC tips in - http://twitter.com/djbigdaddy

cometogether = [] cometogether.append('right now') cometogether.append('over me') for i in cometogether: print i

import stalker stan = stalker() if eminem.be(just like him) == 'yes': stan.girlfriendintrunk()

m = 'Makes us harder, better, faster, stronger!' x != 'kill me': x + 1print 'Can only make me stronger, %s' % (m)

Here's a few from Tallahassee's Ben Clark - http://twitter.com/benclark

$self.dance = !$madame.ask($self, 'dance'); do { $madame.mood('charming', 'gentle'); } while ($madame.style == 'continental');

$alive = ($you['location'] != 'by my side') ? array('afraid', 'petrified') : TRUE;

$self = trap($purgatory); destroy(new Object()); while (not $reprisal) { wait(1); } $others.acquire(DEATH); $sky = '#FF00000';

Geoff Longman adds some variations http://twitter.com/metageoff

require 'barenakedladies'; if me.cash >=1.million.dollars; Realtor.find_house(:nice).first.buy.give_to(you) end

puts 'We are DEVO' if we.are_not_men?; %(D E V O).each {| l | puts l } if we.are_not_men?

assert me.is_a?(Girl) && World.find_by_type('Barbie').contains.me && me.life.type == :plastic && me.life.status == :fantastic


Adobe's Ryan Stewart weighed in with some of my faves - http://twitter.com/ryanstewart


itsyBitsySpider.upWaterSpout(); new Rain(); itsyBitsySpider = null; new Sun(); rain = null; itsyBitsySpider.upWaterSpout();

it_array.push("bulls","blood","dust","mud","boots","chaps","cowboy hats","spurs","latigo","ropes","reins"); rodeo = it_array;

$self.dance = !$madame.ask($self, 'dance'); do { $madame.mood('charming', 'gentle'); } while ($madame.style == 'continental');

crazy:Crazy=new Crazy(); crazy.feelingLonely=true; objMe=crazy; crazy.feelingBlue=true;

Josh Buhler from http://ghostradio.net joined the fun - http://twitter.com/joshbuhler

if (myLife.contains("you") == false) { myLife.sucks = true; }

if (you.want == Want.DESTROY_SWEATER) { while (you.holdThread()) { this.x++; } }

if (elevator.brokenDown) { while (currentFloor < abletorock =" false;">var whatYouGet; if (Math.random() > .5) { whatYouGet = whatYouWant; } else { whatYouGet = whatYouNeed; }

if (friend == @ryanstewart) { friendsInLowPlaces = true; }

var bottlesOnWall = new Array (99); while (bottlesOnWall.length > 0) { var b = bottlesOnWall.pop(); passAround(bottle); }

Jude.makeBetter(sadSong); while (studioTimeLeft) { trace("na"); }

Not to be outdone, mesh (Mike Chambers) joins in - http://twitter.com/mesh

var brothers = new Array();i=0;while(i <>queen.dead = true; limb.lonely = true; while(limb.on) { life.lonely = true; } if(you.lonely) { life.long = true; }

my.name = "Jonas";my.carry(wheel);for each(var a in you.haveShownUs){a.thanks()};my.feel = this;

(Mike correctly pointed out that at this point worldwide developer productivity was in serious decline for the day)

Canadian Trevor Squires chimed in - http://twitter.com/protocool

self.boat? && self.go_out(:on => Ocean) { self.pony? && self.pony.ride(:on => self.boat) }

(1..3).map { "a lady" } && i.love(:you)

Some other notable ones I found:

Tracey Kensing
if ( i != 'colorblind') { $world = 'black and white' } try { keepAnOpenMind() } catch(Exception $e) { cantSleepTonite(); }

Zach Moazeni
(!Elephants.treated_unethically? || Elephants.count == 0) { assert Humans.count == 0; self.binary_solo! }

if self.location == "boat" { self.yell "I'm on a #{"mother effin " if rand(2) == 0}boat"; self.find_mermaid.deflower! }

Leandro Ferreira
while(me.hate<2){me.love=me.drinks++%2==0;me.hate+=me.drinks%2?1:0;}


Alex Sanchez
while(true){cliente.habla("buenas, tiene madalenas?");panadero.habla("muy buenas!");


Micah Craig
me.job[policeDept].quit()&&me.job.add(steady); try{ her.help(me); her.steal(); her.rob(); }
catch(CannotRob cr) {mon.phone(me);}


Eskaban
Sky.Describe(Me); if (PERFECT_DAY) {PerfectDay.LayAfter(); while(We.Opacity > 1) We.Opacity--; We.CreateWorld();}


SniperZN
if(name == "Lola" && isShowGirl && hair.feathers.color == "yellow" && dress.cut) { merengue(); chacha(); }


cesque
10 LET n=1 20 IF n<>13 THEN PRINT n,", ",n+1,", ",n+2,"oclock,",n+3,"oclock rock!":LET n=n+4:goto 20


RickGladwin
if ("you_want_my_body" == TRUE && "you_think_im_sexy" == TRUE) { baby.cmonletmeknow();}

say_to_you = New.array[]; say_to_you[0] = "Da doo doo doo, de daa daa daa"; end; I.want = say_to_you[0];


san1t1
function check(){if (timeHasCome){document.getElementById("theButton").click;}else{setTimeOut}


Jeff_Lamarche
self.target = sheriff; // self.target = deputy; self.selfDefense = YES;


xiinite
class ParadiseCity(){ public static const grass="green"; public static const girls="pretty";} me.take(new ParadiseCity());


z_rose
$i = new Istanbul; $c = new Constantinople; $i = $c; $i = $i; /* !$c */ $c->why_works = $you.turk ? $you.business : $you.nunya;


admast
if($tickets_to_paradise == "2"){ $packyourbags=true; $leave='tonight' }


Nathan Blevins
var BuyStairWay = Lady.IsSure() && All.ForEach(x => x.Glitters = "gold") ? True : False;


Stuart Sharpe
function start(x) { if (day.isNiceDayFor("White Wedding")) start("again"); }


Chronotron
satisfaction.addEventListener(IOErrorEvent.IO_ERROR, noNoNo());


There are tons more...I had to add my own as well.

girl.OnceHadMe(); var NorwegianWood = good; switch (timeforbed); do laugh.SleepinBath while girl = workMorning };

I would appreciate people posting any really good ones to the comments here.