Main Area and Open Discussion > Living Room
All-New Book from O'Rly
(1/1)
housetier:
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
LOLCODE - The Comprehensive Guide
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
app103:
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:
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.
wyrwolf:
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
Navigation
[0] Message Index
Go to full version