Home > General > LOL Code

LOL Code

December 7, 2009 Leave a comment Go to comments

Recently, I was surfing and found a new programming language LOL Code. As per wiki, LOL Code is an estoric programming language designed as a Joke by Adam Lindsay. It is really a funny language.

LOLCode

Here is the sample code for Hello World.

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

Translation: Hi, Can I have the stdio file (This is with reference too the famous #include “stdio.h”). Make “Hi World” Visible. Ok Thanks Bye…

Here is another sample.

HAI
CAN HAS STDIO?
I HAS A VAR
IM IN YR LOOP
UP VAR!!1
IZ VAR BIGGER THAN 10? KTHX
VISIBLE VAR
IM OUTTA YR LOOP
KTHXBYE

Translation: Hi, Can I have the stdio file. I have a variable. I am in a loop. Up variable by 1. Is variable bigger than 10? Yes – Ok Thanks Bye. Make variable visible. I am out of the loop.

This kind of language makes coding interesting. Do you think incorporating this kind of language will help programmers code better & more efficiently?

Advertisements
Tags:
  1. Vaibhav Palan
    December 7, 2009 at 12:52 pm

    With this kind of code..I think one would be able do the coding thro SMS also..:)

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: