The tag was first used on twitter a couple of weeks ago. After a sudden burst of popularity, #songsincode has slowed to about 20 tweets a day. Here's an example by testydonkey:
if(Door.Color == System.Color.Red) { Door.Color = System.Color.Black; }
This is Paint it Black by the Rolling Stones, “I see a red door and I want it painted black”.
Here's the top 25 countdown of the very finest #songsincode. Can you identify all 25? Is your favourite missing? Let me know :-)
anurse:
var s = new Submarine(Color.Yellow); s.Residents.Add(Us); for(int i=0;i<2;i++) {Assert.IsTrue(s.Color == Color.Yellow);}
darrennisbett:
h=new hotel(); h.name="california"; h.guest.addEvent("checkout"); h.guest.removeEvent("leave")
royvanrijn:
if(grass=="green" && girls == "pretty") { takeMe(paradiseCity); }
injenierobarsa:
for (int i = 1; i <= 99; i++) { redBalloons[i].goBy() }
3d0:
if(my.sexyness>shirt.sexyness) pain();
phikachu:
me.color = 0x0000FF; me.text = “Da Ba Dee Da Ba Di”;
Borisson:
($horse_name == false ? $location = desert : ' ');
plaxdan:
self.vehicle = new CombineHarvester(); you.setKey(vehicle.getKey());
cargoweasel:
SubwayWalls.write(words_of_the_prophets());
Leadhyena:
I.send("...---...",world); I.send("...---...",world); while(!(someone.receive(bottle)&& bottle.contains(message)){I.hope()}
antallan:
substring("the tiger",6,1)
pitsk:
void shootPeople() { shootSherif; return; shootDeputy; }
sbruchmann:
if ($angelsDeserveToDie) { iCry(); }
royvanrijn:
while( !me.like(mondays) ) { tellWhy(me); }
Levistica:
cuts.firstElement().deepness = max;
uberTof:
final--;
plaxdan:
while (thing != that) { doForLove(thing);
numptygeek:
jumpWithDirection(left); stepWithDirection(right);
CarstenHagemann:
$jealous_sky[$sun] = $you->tell() if ($we->walk($fields_of_gold));
numptygeek:
if(somethingStrange==true && location == neighborhood){ ghostbusters(); printf("I ain't afraid of no ghost");}
draconum:
//roxanne.putOnLight('#ff0000'); commented out, was not necessary
brozow:
video$ kill -9 `ps -ef | grep radio*`
rennyhernandez:
stuff={'red door','a line of cars', 'my heart'} stuff.each do |it| it.setColor('#000000') end
codepo8:
.clowns{float:left;}.jokers{float:right}; #me_you{position:fixed;margin:0 auto;width:100%}
royvanrijn:
for(Leaf leaf:leafs) { leaf.setColor(new Color(139,69,19)); } sky.setColor(Color.GRAY);
#moviesincode, #tvincode, #booksincode!
#songsincode has inspired three new tags. Can you see #moviesincode, #tvincode or #booksincode catching on? :-)
sijmen:
TypeError: Result of expression this.spoon' [undefined] is not an object
rhizomecowboy:
trace(isNAN(prisoner));
nail7:
var i = count(MonteChristo);
// speak();
ReplyDeleteVery good!
ReplyDeleteI've posted a few of my own #songsincode :
http://www.weedoorsbanging.com/archives/songs-in-code.html
[...]
ReplyDeleteif ($They->say("Why, why?"))
{
$You->tellEm("It's just human nature...");
}
[...]
int problems = 0;
ReplyDeleteint bitch = 0;
for(int i = 1; i<=99; i++) {
problems = i;
}
assert (bitch != 1)
what about this one, it runs in the python console!
ReplyDeleteRT @jackboot7: ", ".join(["In you I %s" % n for n in ["feel so dirty", "crash cars", "feel so pretty", "taste god"]]) #songsincode #python
is one of my favorites
assert (suzanne.floor == luka.floor - 1);
ReplyDeleteGreat post I love what people do in 140 chars. It inspired me to come up with:
ReplyDeleteif(u==STRANGER)people=STRANGE;
if(u==ALONE)faces.look=UGLY;
if(u==UNWANTED)women.seem=WICKED;
if(u==DOWN)streets.even=false;
An HH classic:
ReplyDeletewhile (true) {
currentMoney = getMoney();
if (money > prevMoney) ++problems;
prevMoney = currentMoney;
}
$we = new Peoples(Peoples::CHAMPIONS);
ReplyDeletewhile (1) {
$we->fight();
}
int it_matters(person you)
ReplyDelete{
if (you.thinking(mybabe))
{
return !(you.match_skin_color("#00000") ^ you.match_skin_color("#FFFFFF"));
}
return 1;
}
class BillieJean : public girl
ReplyDelete{
public:
BillieJean(relationship &jacko) : lover(!jacko), i(1) {}
int i;
relationship lover;
};
Hey John,
ReplyDeleteGreat list. I found your site through a comment you made on my blog. With a similar post by the way.
http://www.integralwebsolutions.co.za/Blog/EntryId/362/Songs-in-Code.aspx
Here is a few of my own.
If (an illusion = true); believe = false;
If (needSomeone = true) Help();
for Lady = 1 to 3 {ILoveYou = true;}
sm = { :location => 'sky', :status => 'waiting' }
ReplyDeleteThis one is cool, any idea who it's by?
ReplyDeleteif ($kid->deaf && $kid->dumb && $kid->blind) {$kid->pinballskill = 'mean';}
How about #poemsincode?
ReplyDeletewhile ( brillig() && toves == slithy )
{ toves.location = 'wabe';
toves.gyre(); toves.gimble();
borogoves = mimsy; mome_raths.outgrabe(); }
do { my.way() }
ReplyDelete#artincode or #quotesincode maybe?
ReplyDeletewhile (doctor == 'house') {patient.diagnosis != 'lupus'} #tvincode
ReplyDeleteI liked this one:
ReplyDeletestack.push('water');
stack.push('smoke');
hey(hey(hey(hey("ooooh"))));
ReplyDeleteif (you.WillComeSeeAbout(me)) {
me.alone = true;
me.dancing = true;
you.Know(it, "baby");
}
try {
you.Tell(me, you.troubles);
you.Tell(me, you.doubts);
you.Give(me, __EVERYTHING__);
}
catch (DidNotGetInsideException dnie) {
LogException(dnie, "inside");
}
catch (DidNotGetOutsideException dnoe) {
LogException(dnie, "out");
}
love = (Strange)((Real)so).inTheDark);
you.Think(Cache["OurWork"] as
Thing<Tender>[]);
if (((Slow) change).pullsApart(you, me))
you.heart.Add(new Light(), "baby");
function Chorus() {
you.forget[me] = false
= false = false = false = false;
you.forget[me] = false;
}
if !(you.StandAbove(me) && you.Look(me.way) && !you.Love(me));
while (rain.count > 0)
rain.KeepFalling(Direction.Down, Direction.Down, Direction.Down);
if ((you.Recognize(me) && (!you.CallByName(me) || you.WalkOnBy(me))
while (rain.count > 0)
rain.KeepFalling(Direction.Down, Direction.Down, Direction.Down);
hey(hey(hey(hey("ooooh"))));
// ...
var startMeUp = true;
ReplyDeletedo(
startMeUp = true;
)while(startMeUp==false);
// never stops
for(j=0; j <= 500; i++)
ReplyDelete{
if you.walked == j then
{
i.walk = j+500;
}
}
or
if i == 0 then
{
;
}
else
{
matters();
}
or
if( location = angryChair()) then
{
sitting = inMy()
}
Are you taking part in #songsincode day, Friday 20 November? Lets get #songsincode trending again :)
ReplyDeletevar items = [ seasons, wind, sun, rain ];
ReplyDeletefor ( x in items ) { x.fear( the_reaper, false ) };
baby += my_hand;
baby.fear( the_reaper, false );
assert(i instanceof Looser);
ReplyDeleteif(why!=null) i = null;
i.tell(why);
SELECT * FROM haircut LEFT JOIN devil ON mind
regularcrowd.filter(x => x==this).forall(x => { regularcrowd.forall(y => x.jar.put(y.bread)); x.singSongOf(x)})
public class MohammedAli {
ReplyDeletefloat like_a_butterfly;
string like_a_bee;
}
public interface MalucoBeleza ...
ReplyDeleteHere's a cool one by @iMartyn
ReplyDeleteFunction TimeWarp inline
begin
MOV ax, 'left'
JMP ax
SHR ax
end;
while true TimeWarp(again)
tree | grep lemon
ReplyDeleteNoelle = new Object;
ReplyDeletedirtbag.dream( Noelle );
Noelle.ringsbell = true;
Noelle.rocks = true;
Noelle.givesdamn = false;
procedure enter.sandman;
ReplyDeletebegin
repeat
for x in everyone do
littleone( say.prayers(x) );
until sandman.comes ;
end;
{ #songsincode }
function september()
ReplyDelete{
do { var d=new Date() }
while (x.getMonth()==8);
}
september();
wake.me(up);
switch ( pill )
ReplyDelete{
case 'blue':
return( dreamworld );
case 'red':
exit( matrix );
}
parade.color = 'black';
ReplyDeleteparade.join();
switch ( self )
ReplyDelete{
case 'human': err();
case 'divine': forgive();
}
for (all in em) { all.fight() }; while ( nation.army != 7 ) { me.hold_back() }; /* Seven Nation Army #SongsInCode */
ReplyDeleteAfter seeing the Hotel California example (I stuck it as my quit message in my IRC client) a friend responded with a version of his own: http://omgplzstfukthx.blogspot.com/2010/01/hotelcaliforniajs.html
ReplyDeleteexpect(function() { nobody(); }).toThrow("The Spanish Inquisition");
ReplyDeleteswitch ( trick || treat )
ReplyDelete{
case trick: throw( egg );
case treat: accept ( candy );
}
for (shade=0;shade<50;shade++)
ReplyDelete{
document.write('<b style="color: #', (shade*0x40404+0x111111).toString(16), '">GREY</b> ');
}
// #BooksInCode