Thread Tools Display Modes
07-31-07, 05:56 PM   #1
Layrajha
A Frostmaul Preserver
 
Layrajha's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 275
Bit offtopic: lolcode

While it's somehow chit-chat more than a real authoring discussion, i'm posting this here because it's directed to coders mostly

I was peacefully idling on the Internet while I started reading about stupid languages, leading me first to this wonderful site (list of programs in thousands of languages that just write the lyrics of a stupid song ^^ point being that it has to be the most non proper and surprising way to code it).

And the first result was something like this:
Code:
BTW LOLCODE version of 99 Bottles of beer
BTW By Mike Gogulski (http://www.gogulski.com/) 13 July 2007
BTW LOLCODE is a programming language by and for lolcats
BTW http://www.lolcode.com/
BTW
BTW Tested with:
BTW   sjlol version 1.1 for lolcode 1.0
BTW     Win32 binary: http://www.rit.edu/~sjl7678/sjlol.zip
BTW     Home: http://lolcode.com/implementations/sjlol 
BTW     Online interpreter: http://wealhtheow.rh.rit.edu:8080/index
BTW       (Doesn't work with comments, so delete all "BTW" lines)
BTW
BTW Save as 99BOTTLZ.LOL, start with "sjlol 99bottlz.lol"
BTW
BTW LOLCATZ CNT SPEL 2 GUD
BTW
HAI
    VISIBLE "O HAI! IM IN UR BEERZ!"
    I HAS A VAR
    LOL VAR R 99
    IM IN YR LOOP
        VISIBLE VAR!
        VISIBLE " BOTTLZ OF BEER N TEH WALL, "!
        VISIBLE VAR!
        VISIBLE " BOTTLZ OF BEER!"
        VISIBLE "TAKE 1 DWN, PAS IT AROUN, "!
        NERFZ VAR!!
        IZ VAR LIEK 0?
            YARLY
                VISIBLE "NO MOAR"!
            NOWAI
                VISIBLE VAR!
        KTHX
        VISIBLE " BOTTLZ OF BEER N TEH WALL!"
        IZ VAR LIEK 0?
            GTFO
        KTHX
    KTHX
    VISIBLE "GIEV MOAR PLZ! KTHXBAI!"
KTHXBYE
Surprised, I followed the link and discovered a wonderful language called LOLCODE, which specification kept me rolling on the floor laughing (ok, not, let's say "trying to keep serious cause I wasn't alone in the room and supposed to be working") during maybe half an hour.
Things like "I HAS A ANSWER ITZ 42 BTW NOW ANSWER IS 42" is just awesome. And what can I say about something like
Code:
ANIMAL
WTF?
  OMG "CAT"
    VISIBLE "ITZ A CAT!!"
    GTFO
  OMG "DOG"
    VISIBLE "OH NOES!! :'("
    GTFO
  OMGWTF
    VISIBLE "WHAT IS THIS?!"
OIC
And function declarations:
Code:
HOW DUZ I SAY YR TEXT AN YR SPEECH
  BOTH SAEM TEXT N NOOB, ORLY?
    YA RLY
      GTFO
  OIC
  BOTH SAEM SPEECH N NOOB, ORLY?
    YA RLY
      GTFO
  OIC
  VISIBLE TEXT N SPEECH
  FOUND YR "YEAH"
IF U SAY SO
Ah... It even made me change my sig. I'm in love.
  Reply With Quote
07-31-07, 05:58 PM   #2
Dreadlorde
A Pyroguard Emberseer
 
Dreadlorde's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 2,302
very funny bookmarked.
__________________

Funtoo - Plan 9 - Windows 7
  Reply With Quote
07-31-07, 06:01 PM   #3
Gemini_II
A Molten Giant
 
Gemini_II's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 762
LOL! My coding abilities and understanding are pretty sparse... but dang that's funny! I'd guess it would take some practice writing in that language, but amusing for sure. Thanks for the chuckle Layrajha.
__________________
Retired prior to 3.2, before all challenge was removed.

  Reply With Quote
07-31-07, 07:27 PM   #4
robthedude
Don't Panic
 
robthedude's Avatar
Join Date: Oct 2006
Posts: 364
Y'know what I love about this? Its a serious joke, like, it's funny, but the community over
there at lolcode.com are actually building this as a real programming language...

I love the internets!
__________________

  Reply With Quote
07-31-07, 11:21 PM   #5
Layrajha
A Frostmaul Preserver
 
Layrajha's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 275
Originally Posted by robthedude
Y'know what I love about this? Its a serious joke, like, it's funny, but the community over
there at lolcode.com are actually building this as a real programming language...

I love the internets!
Yep, I loved the discussion about variable's scope inside functions, about how "N" was a sad keyword but on the other hand, usual concatenation operators are either overloads or wasting punctation symbols, about the fact that types will have their efficient tools when user defined types grow stronger but would be a bit useless now, etc
  Reply With Quote
08-01-07, 12:00 AM   #6
Cairenn
Credendo Vides
 
Cairenn's Avatar
Premium Member
WoWInterface Admin
Join Date: Mar 2004
Posts: 7,134
Originally Posted by Layrajha
While it's somehow chit-chat more than a real authoring discussion, i'm posting this here because it's directed to coders mostly
Yeah, I thought so too.
__________________
“Do what you feel in your heart to be right — for you’ll be criticized anyway.” ~ Eleanor Roosevelt
~~~~~~~~~~~~~~~~~~~
Co-Founder & Admin: MMOUI
FaceBook Profile, Page, Group
Avatar Image by RaffaeleMarinetti
  Reply With Quote
08-01-07, 12:24 AM   #7
Layrajha
A Frostmaul Preserver
 
Layrajha's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 275
Oh noes :'(
But I wasn't active back then, why did you let this topic died, my revelation would have come even earlier!

Edit:
The similarity between our introductions kinda made me laugh anyway
  Reply With Quote
08-01-07, 12:50 AM   #8
Cairenn
Credendo Vides
 
Cairenn's Avatar
Premium Member
WoWInterface Admin
Join Date: Mar 2004
Posts: 7,134
That's what I was chuckling at too.
__________________
“Do what you feel in your heart to be right — for you’ll be criticized anyway.” ~ Eleanor Roosevelt
~~~~~~~~~~~~~~~~~~~
Co-Founder & Admin: MMOUI
FaceBook Profile, Page, Group
Avatar Image by RaffaeleMarinetti
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Bit offtopic: lolcode


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off