LOL Code : An Introduction to programming


Posted: 22nd June 2011

LOLCODE is not a joke, it has actually been invented, and it struck me with its ridiculous syntax (from a traditional programming point of view) and it’s use of meme’s . It may have the very functionality to explain alien concepts such as loops to those new to programming.

Like most other things spawned by the internet, this will probably be passed off as something trivial and not important, but if we take the time and care to look at it, by showing this almost pseudocode to complete novices they quickly begin to grasp the idea of syntax, and language and how to build proper web pages or applications.

I’m not suggesting that those of us who are adept in other languages such as PHP,ASP,The various flavours of C to switch, but when trying to explain variables or loops to complete beginners, which of these is easier to understand?

PHP

for ($i = 0; $i<10;$i++) {
echo $i;
}

LOLCODE

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

Use LOLCODE to teach the basic concepts then simply switch to another of the more “adult” languages and the abilities should transfer over. The down shot of this is that LOLCODE may in fact take off, in which case I look forward to ending all my scripts with KTHXBYE.

LOLCODE and full documentation is from http://lolcode.com/ and if you want further information then you can check out Wikipedia’s article here LOLCODE