Global Nerdy » LOLCODE, the LOLCat Programming Language
LOLCODE is your standard Algol-style programming language (Algol is the grandfather of just about every popular current programming language) married to the lolcat captioning style — that is, ALL CAPS and I CAN HAS SILLY CAT GRAMMER AND SPELING KTHXBYE.Here’s HAI WORLD, the LOLCODE version of “Hello, World!â€:
HAI  CAN HAS STDIO?  VISIBLE "HAI WORLD!"  KTHXBYEHere’s something that outputs the numbers 1 through 10, a classic beginner’s exercise:
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  KTHXBYEAnd finally, here’s a program to print the contents of a specified file:
HAI Â CAN HAS STDIO? Â PLZ OPEN FILE "LOLCATS.TXT"? Â AWSUM THX Â VISIBLE FILE Â O NOES Â INVISIBLE "ERROR!" Â KTHXBYE
“Visible” and “invisible,” “im in ur loop, uppin ur varbls,” and “o noes” included, all the good running jokes are referenced except “mah bucket.” But I’m sure some programmer somewhere will write a quick bit of LOLCODE as a quick ‘n dirty patch.
[tags]LOLcats[/tags]