LOLcats + Programmers = LOLcode

May 29, 2007

Uh… yeah, if you want another language to add to your resume, check out LOLcode. It’s the goofy cute / leet speak spoken by LOLcats but applied to computer code. So all your standard favorites are there: Hello world, variables, loops, operators.

Here’s the LOLcode “hello world” program:

HAI

CAN HAS STDIO?

VISIBLE “HAI WORLD!”

KTHXBYE

So from this simple program I guess (based on my limited programming language experience) “CAN HAS” is basically #include, “VISIBLE” is print, and HAI and KTHXBYE frame the standard program.

The jokes are deep. Invisible vs. Visible are references to the invisible “object” LOLcats, and “can has” refer to the can has food object LOLcats.

So “O NOES” is an error message, and entering a loop results in “IM IN YR LOOP”. Here’s their loop example:

HAI

CAN HAS STDIO?

I HAS A VAR

IM IN YR LOOP, UPPIN YR VAR!!1 TILL 10

VISIBLE VAR

IM OUTA YR LOOP

KTHXBYE

It’s pretty funny, and in a strange way makes programming way more fun (at least for me) because when reading a program like this calculator one, you can’t help but imagine crazy LOLcats for every line.

That said, I don’t know how much time I’ll invest in learning LOLcode because as far as I can tell, it’s extremely basic (no pun intended). I also didn’t see a compiler of any sort, there’s no mention of cross platform compatibility, and I’m still getting my head around having to learn ActionScript 3.0. But knowing the nature of the LOLcat meme spreading and programmer’s propensity for cats, I have a feeling this language has legs. Four of them, covered with kitty litter…

There are other “joke” programming languages out there:

For more LOLcat stuff, check out my post All About the LOLcat.