topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 9:04 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: All-New Book from O'Rly  (Read 6058 times)

housetier

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 1,321
    • View Profile
    • Donate to Member
All-New Book from O'Rly
« on: June 03, 2007, 06:59 AM »
cheezburger.gif ichc_logo.gif cheezburger.gif

Now that the memecats (Cute Overload, I Can Has Cheezburger, Meme Cats) have become deservedly popular, publishers are hopping on the train.


The first publisher to explain us the rules of lolingo and funniness are O'Rly in their latest book


cheezburger.gif LOLCODE - The Comprehensive Guide cheezburger.gif

lolcode_r.jpg



Example code from the Book
HAI

BTW HUGSTIME? is system functions for determining hugs time
CAN HAS HUGSTIME?
CAN HAS STDIO?

I HAS A LOVINGU
BTW NAO is automagically set to time right now
I HAS A NAO

IZ NAO HUGSTIME?
YARLY
VISIBLE "<3"
LOVINGU IZ K
NOWAI
VISIBLE "</3"
LOVINGU IZ NOES
KTHX

KTHXBYE


There are even concrete, hands-on uses of the language! While ROR (Ruby on Rails) made the Ruby programming language popular, Monorail does the same for the LOLingo programming language.

O'Rly are totally on top of the buzz again - order now!  :D
« Last Edit: June 03, 2007, 07:12 AM by housetier »

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,885
    • View Profile
    • Donate to Member
Re: All-New Book from O'Rly
« Reply #1 on: June 04, 2007, 04:41 AM »
There is a wiki site to go with this book: http://lolcode.com

Here is a sample of user contributed code, for a basic calculator:

HAI
CAN HAS STDIO?

VISIBLE "Welcome to the basic calculator."
I HAS A NUMBER1 IZ 0
I HAS A NUMBER2 IZ 0
I HAS A OPERATION IZ NOTHING
I HAS A LINE IZ NOTHING
I HAS A COMPLETE IZ NOTWORKZ0RZ
I HAS A RESULT IZ 0

VISIBLE SAME LINEZ "Try what: "
TXT ME A LINE

IZ MAGICZ ON LINE WITH /(\n) (.?) (\n)/ ACTUALLY WORKZ0RZ?
        NUMBER1 IZ MAGICZ1
        OPERATION IZ MAGICZ2
        NUMBER2 IZ MAGICZ3
        COMPLETE IZ WORKZ0RZ
        KTHXBYE
:(
        VISIBLE "Can not parse line."
        COMPLETE IZ NOT WORKZ0RZ
        KTHXBYE

IZ COMPLETE WORKZ0RZ?
        WTF IZ OPERATION?
                OMG +
                        RESULT IZ UP NUMBER1!!NUMBER2
                OMG -
                        RESULT IZ DOWN NUMBER1!!NUMBER2
                OMG *
                        RESULT IZ TIMEZ NUMBER1!!NUMBER2
                OMG /
                        RESULT IZ DIVIDEZ NUMBER1!!NUMBER2
        KTHXBYE
:(
        VISIBLE "Didn't work :("
        DIAF! 2 "This is dieing"

VISIBLE "Result is: " ANDZ RESULT ANDZ "."

KTHXBYE

And for a donation of a 12 pack of beer, you can attend a LOLCODE workshop: I CAN HAS VAR?

Lashiec

  • Member
  • Joined in 2006
  • **
  • Posts: 2,374
    • View Profile
    • Donate to Member
Re: All-New Book from O'Rly
« Reply #2 on: June 05, 2007, 06:03 AM »
LOL!

I was thinking: either it's an O'Reilly book and housetier is making a word play... or it's referring to the meme.

So, YA RLY.
« Last Edit: June 05, 2007, 06:44 AM by Lashiec »

wyrwolf

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 38
  • It is what it is.
    • View Profile
    • banner page
    • Donate to Member
Re: All-New Book from O'Rly
« Reply #3 on: June 17, 2007, 04:21 PM »
iz not yet jumping-the-shark. still iz LOL, web-trend crrrrent
not like ur Dance Pages - I m dissing ur webring!
hmmmm! I haz idea!
loldancinghamstres
It is what it is.