LOLCODE: esoteric, hard and practically useless.

But fucking hilarious.

LOLCODE is a programming language created by one creative Adam Lindsay, inspired by the LOLcat phenomenon. LOLcat, in turn, is a
practice of putting funny captions (using Internet slang, chat-like spelling and grammatical errors) on pictures of cats. The most famous centre of all things LOLcat is the I Can Has Cheezburger? site.

lolcats and funny pictures

Let me give you an example of the standard Hello World program, which outputs a string “Hello World”.

In C:

#include <stdio.h>
int main(void){
	printf("hello, world\n");

	return 0;

}

In Java:

public class HelloWorld
{
	public static void main(String[] args)
	{
	 	System.out.println("Hello, World!");
	}
}

In LOLCODE:

HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE

Further hilarity can be seen in this implementation of if/then/else branch (this program determines if a number is bigger or smaller than 10):

HAI
CAN HAS STDIO?
I HAS A VAR
GIMMEH VAR
IZ VAR BIGGER THAN 10?

	YARLY
		BTW this is true

		VISIBLE "BIG NUMBER!"
	NOWAI

		BTW this is false
		VISIBLE "LITTLE NUMBER!"

	KTHX
KTHXBYE

One day, I’m going to have a British Shorthair named Cheezburger, and I’ll give him a PC using LOLCODE as its operating system.

Advertisements