In a quick post, I just cant help it but mention something I fell over the last day, the esoteric programming language LOLCODE
I LOL’ed!
In my science studies or otherwise nerdy hours, I’ve come across my share of programming languages, but nothing quite like this one. It’s a programming language based on Lolspeak, the badly writen english that we’ve all seen on internet chatrooms etc.
The canonical hello world example goes something like this:
HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
The code almost speaks for itself. The program is started with a HAI, the STDIO module is loaded, “HAI WORLD” is printed and the program is terminated with KTHXBYE.
Now this is FUN. The next example introduces exception handling:
HAI
CAN HAS STDIO?
PLZ OPEN FILE "LOLCATS.TXT"?
AWSUM THX
VISIBLE FILE
O NOES
INVISIBLE "ERROR!"
KTHXBYE
I’ll stop here, but if you’re interested in more, take a look at the official LOLCODE webpage or the Wikipedia article. Also dont forget to check out other esoteric programming languages. I’m especially bafled about the Chef and Shakespeare programming languages.
KTHXBYE