Twitcode: A Program in 130 Characters

I came across the Twitter hashcode #twitcode that folks where using to tweet code that fit under 130 characters. After searching for more twitcode here are the ones I thought where the best, as of this writing.

  • @gsale: if(apathetic){System.out.print(“Don’t care.”)}elseif(ignorant){System.out.print(“Don’t Know.”)}else{(System.out.print(“tweet”))}
  • @bifethewise: $madness ? $this.is = MADNESS : $this.is = SPARTAAAA;
  • @eggsy84: function dance(year) { if (year == 1990) { stop(); hammertime(); } }
  • @fhussains: On Error GoTo HELL
  • @TurkoAmericano: if (you.AreHappy && you.KnowIt) you.ClapHands();
  • @longhorn2005: // TODO: Don’t forget to write something funny…like oh my GOD somebody is trying to use me.!! CODE RED, I REPEAT CODE RED!
  • @misspentlife: double evil = 666; double money = Math.Sqrt(evil);
  • @mmetzger: Little late to the game but – public bool got(baby b) { return b.contains(“back”) ? true : false; }
  • @dbutscher: if (we.WantTo) {we.CanDance() && we.CanLeaveYourFriendsBehind()}
  • @yboyacigil: to.be() || !to.be()
  • @purpig: if ((drinking)); then cat /productivity > /dev/null 2>&1 fi
  • @Iggyhopper: if (onGrass) Yell(“GET OFF MY GRASS”); else Sleep()
  • @dbutscher: if (you.Want(this.Body) && you.Think(this.IsSexy)) {baby.Notify(this);}
  • @dbutscher: if (!atFirst.Succeed) {try {again} }
  • @captaincrash80: if (drinking) { drive = false; } else { you.inJail = true; }
  • @Tchovis: while(!drunk){ if(party.start){drink(beer)}else{drink(vodka)}if(vomiting) drunk = true; )
  • @kronius: SELECT thoughts, dreams, ideas FROM head WHERE allThis LIKE ‘work related’ ORDER BY quality;
  • @ltlfrari public int WhatIsTheMeaningOfLifeTheUniverseAndEveryThing() { return 42; }
  • @TurkoAmericano: public int GimmeFive() { return 5; }