#songsincode

#songsincode

songsincode

What is #songsincode ?

Last week I discovered a new hype on Twitter. The so-called “#songsincode”. It’s a huge hype under programmers and technical users. The best way to explain is probably by showing an example:

if( door == red ) {
   door.paint(black);
}

This obviously is Paint It Black by the Rolling Stones (if the door is red, paint it black)

My own #songsincode:

Here is a collection of the #songsincode I created and tweeted:

if( silhouetto == man && i.see(silhouetto)) {
   scaramouche.doFandango();
   if(thunderbolt && lightning) {
      me.frightened = true;
   }
}

while(true) {
   ableToCheckout();
}
//Unreachable code:

leave();

switch(random(2)) {
   case 0: feel.partner = null;
      break;
   case 1: feel.onlyFriend = city.of(this, angel);
}

for(mydaddy : oh) {
   whack();
}
jar.insert(whisky);

man.amount = 1;
man.come(love.name());
man.come();
man.go();

life++;
if(life > you && you != me) {
   me.goto(lengths);
   distance(you.eyes);
   if(me.saidTooMuch()) {
      me.setUp(it);
   }
}

for(Person p:people) {
   p.imagine();
}

boolean isLover(String name) {
   if("Billy Jean".equals(name)) {
      return false;
   }
   ...

for(int i = 0;i < 8; i++ ) {
   System.out.println("MMmmmMMmmm");
}
throw new RuntimeException("test dummy");

String bird;
bird = "word";

if(she != lovely && she != wonderfull && she != precious && she.age < 1 ...

Submarine submarine = new Submarine(new Color(255,255,0));
for(Person p:all) {
   submarine.add(p);
}

while( !me.like(mondays) ) {
   tellWhy(me);
}

while(young) {}
//loops forever

if(time == hammer) {
   System.exit(1);
}

if( !women ) {
   cry = false;
}

public static void main(String[] args) {
     this.remove(religion);
}

while(!hasFound) {
   lookFor();
}

if(grass=="green" && girls == "pretty") {
   takeMe(paradiseCity);
}

for(Leaf leaf:leafs) {
   leaf.setColor(new Color(139,69,19));
}
sky.setColor(Color.GRAY);

for(Thing thing:stuff) {
   aintGotNo(thing);
}
complainAboutGod();
for(Part part:bodyparts) {
   gotMy(part);
}
gotMy(life);
gotMy(freedom);
gotMy(life);

{
     final countdown = 10;
}

My favourite:

And here is my all-time favourite (in CSS!!) created by @codepo8:

.clowns{float:left;}
.jokers{float:right};
#me_you{position:fixed;margin:0 auto;width:100%}

I hope you liked them!