I R OffTopic makin' U LOL
Heute bin ich mal für meinen Themenkomplex "Deutsche Softwarewirtschaft" total Off Topic. Aber ich fand den LOLCode.NET Compiler dann doch zu schräg. Ein kleiner Artikel dazu hier:
http://blog.notdot.net/archives/32-LOLCode.net-Now-your-LOLCats-can-use-the-CLR!.html
Highlight ist wirklich der Code an sich. Hier mal ein Count-1 in LOLCode (von der Website mit ein paar kleineren Dokuhints...):
HAI
CAN HAS STDIO?
I HAS A VAR
IM IN YR LOOP
UP VAR!!1
VISIBLE VAR
IZ VAR BIGGER THAN 10? KTHXBYE
IM OUTTA YR LOOP
KTHXBYE
We've seen HAI, KTHXBYE, CAN HAS, and VISIBLE already in the listing for HAI WORLD. We learn a bit about variables in this one.
-
Declaration is handled with
I HAS A. The (dynamically typed) variable follows.
-
IM IN YR and
IM OUTTA YR clearly demarcate a loop construct.
LOOP in this example is simply a label.
-
UP is an increment operator. The (optional, default=1) argument follows
!!
-
The
IZ … ? construct is the basic conditional form. In this example, it terminates on the same line with a simple
KTHXBYE command, here used as a
BREAK.
-
Early consensus from the first irc meeting suggests a slight change from the original code:
HAI
CAN HAS STDIO?
I HAS A VAR
IM IN YR LOOP
UPZ VAR!!1
VISIBLE VAR
IZ VAR BIGR THAN 10? GTFO. KTHX
KTHX
KTHXBYE
Der Spaß beginnt dann für alle Interessierten hier: http://lolcode.com/
Wäre doch mal interessant, ob das auch in "Voll krass, ey"-Code ginge. ;-)
RESPEKT
BRAUCHST DU INPUT?
HAB ICH PLATZ
DREHST DU BIS ICH SAG
HIGHKICK PLATZ!!1
WAS GUCKST DU PLATZ
ISS PLATZ FETTER 10? BRAUCHST DU KICK. CHECKSTDUAUSALDA.
CHECKSTDUAUSALDA.
SERVAS
Thomas