Archive for 'Culture'
Threedie Ceegie - LOL Cats
.
The LOL Cats meme was stuck in my head. I needed to get it out.
I blame BoingBoing.
You can find more LOL Cats at icanhascheezburger.com and the LOL Code can be found at the Linux Programming pages.
Here’s a sample of their code:
HAI
I HAS A CHEEZBURGER ITZ 1IM IN YR LOOP
VISIBLE “I has dis many: ” N CHEEZBURGER
IZ CHEEZBURGER BIGGER THAN 11 O RLY?
YA RLY
GTFO
NO WAI
UP CHEEZBURGER!!1
KTHX
KTHXKTHXBYE
The I HAS A statement declares the variable CHEEZBURGER as 1. The IM IN YR LOOP statement starts the loop.
Next, we print out the current number using the VISIBLE function. You need to include N CHEEZBURGER rather than just CHEEZBURGER to print out the value of CHEEZBURGER. Then we do a comparison test, to see if the value is greater than the amount we want to trigger the end of the loop. UP CHEEZBURGER!!1 tells LOLCODE to add one to the value of CHEEZBURGER.
When we do the test, if it matches (YA RLY) LOLCODE will GTFO and exit the loop. If it doesn’t (NO WAI) it will iterate the variable again. Note that the loop ends with KTHX rather than KTHXBYE, which is recommended only for closing the whole program block. Finally, we end the program block with KTHXBYE.
I suspect human beings have way too much time on their hands. Speaking of which, read the Blog.
Cheers.
Posted: June 13th, 2007 under LOL Cats, Comics, Threedie Ceegie, Culture.
Comments: none



