Monday, December 09, 2019

LOLCODE

I was going through my photo backups, trying to find duplicates, and get rid of half of them.
Unfortunately, the duplicate images had identical names (and the date was in the name, so it had to be the same image, but the sizes were different. Since data is cheap (but photos are priceless), i decided to keep the biggest copy of each image.

But i digress.

In the process of  double checking I was doing the right thing by deleting 489 indentically named but differently sized images, I happened to open one of them. It was a photo of a screen:

This is code I wrote in 2015. That I took a photo of because I wanted to remember for posterity.

One can't let such excellent code go to waste. And so, I found an online LOLCODE interpreter (possibly the same one I used to write it in 2015) and typed it word for word. It ran! (yes, those guys who wrote the language were smart enough to include the version of its spec in the code - why doesn't anyone else do that?)

ps: anyone want to decipher what it does without running it yourself? Here you go:

HAI 1.2
 I HAS A CHEEZ ITZ 0, I HAS A CHEEZBURGER ITZ 1, I HAS A MONEY ITZ 5
 IM IN YR LOOP UPPIN YR CHEEZ WILE BOTH SAEM CHEEZ AN SMALLR OF CHEEZ AN MONEY
  BOTH SAEM CHEEZ AN MONEY, O RLY?
   YA RLY, VISIBLE SMOOSH CHEEZ "!=" CHEEZBURGER MKAY
   NO WAI, CHEEZBURGER R PRODUKT OF CHEEZBURGER AN SUM OF CHEEZ AN 1
  OIC
 IM OUTTA YR LOOP
KTHXBYE

No comments:

days go by

it's been a little over two weeks since we've voluntarily confined ourselves indoors, except for weekly grocery shopping, and twice ...