Skip to content

Commit

Permalink
Pretend that you’ve opened this book, just to find a huge onion right…
Browse files Browse the repository at this point in the history
… in the middle crease of the book.
  • Loading branch information
why the lucky stiff authored and mislav committed Aug 20, 2009
0 parents commit cf6e717
Show file tree
Hide file tree
Showing 165 changed files with 8,742 additions and 0 deletions.
56 changes: 56 additions & 0 deletions book/chapter-1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>why&#8217;s (poignant) guide to ruby :: 1. About this Book</title>
<link rel="stylesheet" type="text/css" href="../guide.css" />
</head>
<body class="chapter">

<div id="banner">
<div class="pager">
<a class="pagebar" href="../index.html">previous</a> | <a class="pagebar" href="chapter-2.html">next</a>
</div>
<div class="title">
<img src="../images/2006.chaptertitle.png" alt="why's (poignant) guide to ruby" />
</div>
</div>
<div id="container">
<div class="page">
<div class="pageLinks">
<a class="pagebar" href="http://whytheluckystiff.net/">whytheluckystiff.net</a> | <a class="pagebar" href="index.html">Contents</a>
</div>
<div class="pageTitle">

<h3>1.</h3>
<h1>About this Book</h1>
<p><img src="../images/chapter.poignant.guide-1.jpg" alt="[o]" /></p>

</div>
<div class="content">



<p><img src="../images/about.the.poignant.guide-1.gif" title="What a fantastic voyage!" alt="What a fantastic voyage!" /></p>


<p><img src="../images/about.the.poignant.guide-2.jpg" title="Small infants can do it." alt="Small infants can do it." /></p>


<p><img src="../images/about.the.poignant.guide-3.gif" title="The thoughtful reader." alt="The thoughtful reader." /></p>


<p><img src="../images/about.the.poignant.guide-4.gif" title="Meep." alt="Meep." /></p>




<p style="text-align:right;">
<a href="chapter-2.html">Turn page.</a>
</p>

</div>
</div>
</div>
</body>
</html>
211 changes: 211 additions & 0 deletions book/chapter-2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>why&#8217;s (poignant) guide to ruby :: 2. Kon&#8217;nichi wa, Ruby</title>
<link rel="stylesheet" type="text/css" href="../guide.css" />
</head>
<body class="chapter">

<div id="banner">
<div class="pager">
<a class="pagebar" href="chapter-1.html">previous</a> | <a class="pagebar" href="chapter-3.html">next</a>
</div>
<div class="title">
<img src="../images/2006.chaptertitle.png" alt="why's (poignant) guide to ruby" />
</div>
</div>
<div id="container">
<div class="page">
<div class="pageLinks">
<a class="pagebar" href="http://whytheluckystiff.net/">whytheluckystiff.net</a> | <a class="pagebar" href="index.html">Contents</a>
</div>
<div class="pageTitle">

<h3>2.</h3>
<h1>Kon&#8217;nichi wa, Ruby</h1>
<p><img src="../images/chapter.poignant.guide-2.jpg" alt="[o]" /></p>

</div>
<div class="content">



<a name="section1" />
<h2>1. Opening This Book</h2>

<p>Pretend that you&#8217;ve opened this book (although you probably <em>have</em> opened this book), just to find a huge onion right in the middle crease of the book. (The manufacturer of the book has included the onion at my request.)</p>


<p>So you&#8217;re like, &#8220;Wow, this book comes with an onion!&#8221; (Even if you don&#8217;t particularly like onions, I&#8217;m sure you can appreciate the logistics of shipping any sort of produce discreetly inside of an alleged programming manual.)</p>


<p>Then you ask yourself, &#8220;Wait a minute. I thought this was a book on Ruby, the incredible new programming language from Japan. And although I can appreciate the logistics of shipping any sort of produce discreetly inside of an alleged programming manual: Why an onion? What am I supposed to do with it?&#8221;</p>


<p>No. Please don&#8217;t puzzle over it. You don&#8217;t need to do anything with the onion. Set the onion aside and let <em>it</em> do something with <em>you</em>.</p>


<p>I&#8217;ll be straight with you. I want you to cry. To weep. To whimper sweetly. This book is a <strong>poignant</strong> guide to Ruby. That means code so beautiful that tears are shed. That means gallant tales and somber truths that have you waking up the next morning in the arms of this book. Hugging it tightly to you all the day long. If necessary, fashion a makeshift hip holster for <em>Why&#8217;s (Poignant) Guide to Ruby</em>, so you can always have this book&#8217;s tender companionship.</p>


<p>You really must sob once. Or at least sniffle. And if not, then the onion will make it all happen for you.</p>




<div class="sidebar">
<h1>sidebar!</h1>

<h2>What I&#8217;m Going to Do With the Massive Proceeds from this Book</h2>


<p>Anyone who&#8217;s written a book can tell you how easily an author is distracted by visions of grandeur. In my experience, I stop twice for each paragraph, and four times for each panel of a comic, just to envision the wealth and prosperity that this book will procure for my lifestyle. I fear that the writing of this book will halt altogether to make way for the armada of SUVs and luxury towne cars that are blazing away in my head.</p>


<p>Rather than stop my production of the (Poignant) Guide, I&#8217;ve reserved this space as a safety zone for pouring my empty and vain wishes.</p>


<p>Today I was at this Italian restaraunt, Granado&#8217;s, and I was paying my bill. Happened to notice (under glass) a bottle of balsamic vinegar going for $150. Fairly small. I could conceal it in my palm. Aged twenty-two years.</p>


<p>I&#8217;ve spent a lot of time thinking about that bottle. It is often an accessory in some of these obsessive fantasies. In one fantasy, I walk into the restaraunt, toss a stack of greenery on the counter and earnestly say to the cashier, &#8220;Quick! I have an important salad to make!&#8221;</p>


<p>In another, related fantasy, I am throwing away lettuce. Such roughage isn&#8217;t befitting of my new vinegar. No, I will have come to a point where the fame and the aristocracy will have corrupted me to my core. My new lettuce will be cash. Cold, hard cash, Mrs. Price.</p>


<p>Soon, I will be expending hundreds for a block of myzithra cheese.</p>


<p>My imaginations have now gone beyond posessions, though. Certainly, I have thought through my acquisition of grecian urns, motorcades, airlines, pyramids, dinosaur bones. Occassionally I&#8217;ll see wind-tossed cities on the news and I&#8217;ll jot down on my shopping list: <em>Hurricane</em>.</p>


<p>But, now I&#8217;m seeing a larger goal. Simply put: what if I amassed such a fortune that the mints couldn&#8217;t print enough to keep up with my demand? So, everyone else would be forced to use Monopoly money as actual currency. And you would have to win in Monopoly to keep food on the table. These would be some seriously tense games. I mean you go to mortgage St. James Place and your kids start crying. In addition, I think you&#8217;ll begin to see the end of those who choose to use the Free Parking square as <a href="http://groups.yahoo.com/group/monopoly/message/37">the underground coffers</a> for city funds.</p>


<p>You&#8217;ve got to hand it to fun money, though. Fake money rules. You can get your hands on it so quickly. For a moment, it seems like you&#8217;re crazy rich. When I was a kid, I got with some of the neighborhood kids and we built this little Tijuana on our street. We made our own pesos and wore sombreros and everything!</p>


<p>One kid was selling hot tamales for two pesos each. <em>Two pesos!</em> Did this kid know that the money was fake? Was he out of his mind? Who invited this kid? Didn&#8217;t he know this wasn&#8217;t really Tijuana? Maybe he was really from Tijuana! Maybe these were <em>real</em> pesos! Let&#8217;s go make more <em>real</em> pesos!</p>


<p>I think we even had a tavern where you could get totally hammered off Kool-Aid. There&#8217;s nothing like a bunch of kids stumbling around, mumbling incoherently with punchy red clown lips.</p>
<h1>sidebar!</h1>
</div>




<a name="section2" />
<h2>2. The Dog Story</h2>

<p>So try this first bit of poignancy on for size:</p>


<p>One day I was walking down one of those busy roads covered with car dealerships (this was shortly after my wedding was called off) and I found an orphaned dog on the road. A wooly, black dog with greenish red eyes. I was kind of feeling like an orphan myself, so I took a couple balloons that were tied to a pole at the dealership and I relocated them to the dog&#8217;s collar. Then, I decided he would be my dog. I named him Bigelow.</p>


<p>We set off to get some Milkbones for Bigelow and, afterwards, head over to my place, where we could sit in recliners and listen to Gorky&#8217;s Zygotic Mynci. Oh, and we&#8217;d also need to stop by a thrift store and get Bigelow his own recliner.</p>


<p>But Bigelow hadn&#8217;t accepted me as his master. So five minutes later, the stupid dog took a different crosswalk than I did and I never caught up. So whereas he had previously only been lost once, he was now lost twice. I slowed my pace towards the life of Milkbones and an extra recliner. I had a dog for five minutes.</p>


<p>Stupid Benedict Arnold of a dog. I sat on a city bench and threw pinecones at a statue of three sheep crossing a bridge. After that, I wept for hours. The tears just came. Now there&#8217;s a little something poignant to get you started.</p>


<p>I wonder where he went with all those balloons. That crazy dog must have looked like a party with legs.</p>


<p>It wasn&#8217;t much later that I pulled my own Bigelow. I printed out a bunch of pages on Ruby. Articles found around the Web. I scanned through them on a train ride home one day. I flipped through them for five minutes and then gave up. Not impressed.</p>


<p>I sat, staring out the window at the world, a life-sized blender mixing graffiti and iron smelts before my eyes. <em>This world&#8217;s too big for such a a little language</em>, I thought. <em>Poor little thing doesn&#8217;t stand a chance. Doesn&#8217;t have legs to stand on. Doesn&#8217;t have arms to swim.</em></p>


<p>And yet, there I was. One little man on a flimsy little train (and I even still had a baby tooth to lose at the time) out of billions of people living on a floating blue rock. How can I knock Ruby? Who&#8217;s to say that I&#8217;m not going to happen to choke on my cell phone and die later that evening. Why&#8217;s dead, Ruby lives on.</p>


<p>The gravestone:</p>


<blockquote>
<p>What&#8217;s in his trachea?
Oh, look, a Nokia!</p>
</blockquote>


<p>Just my luck. Finally get to have a good, long sleep underground, only to be constantly disturbed by <em>Pachelbel&#8217;s Canon</em> going off in my stomach.</p>




<a name="section3" />
<h2>3. The Red Sun Rises</h2>

<p>So, now you&#8217;re wondering why I changed my mind about Ruby. The quick answer is: we clicked.</p>


<p>Like when you meet Somebody in college and they look like somebody who used to hit you in the face with paintbrushes when you were a kid. And so, impulsively, you conclude that this new Somebody is likely a non-friend. You wince at their hair. You hang up phones loudly during crucial moments in their anecdotes. You use your pogo stick right there where they are trying to walk!</p>


<p>Six months later, somehow, you and Somebody are sitting at a fountain having a perfectly good chat. Their face doesn&#8217;t look so much like that childhood nemesis. You&#8217;ve met the Good Twin. You clicked.</p>


<p>So whereas I should probably be pounding your teeth in with hype about Ruby and the tightly-knit cadre of pertinent ancronyms that accompany it everywhere (whetting the collective whistles of your bosses and their bosses&#8217; bosses), instead I will just let you coast. I&#8217;ll let you freefall through some code, interjecting occassionally with my own heartfelt experiences. It&#8217;ll be quite easy, quite natural.</p>


<p>I should offer you some sort of motivation, though. So, Smotchkkiss, I&#8217;m going to give my three best reasons to learn Ruby and be done with it.</p>


<ol>
<li><strong>Brain health.</strong> <p>Vitamin R. Goes straight to the head. Ruby will teach you to <em>express</em> your ideas through a computer. You will be writing stories for a machine.</p> <p>Creative skills, people. Deduction. Reason. Nodding intelligently. The language will become a tool for you to better connect your mind to the world. I&#8217;ve noticed that many experienced users of Ruby seem to be clear thinkers and objective. (In contrast to: heavily biased and coarse.)</p></li>
<li><strong>One man on one island.</strong> <p>Ruby was born in Japan. Which is freaky. Japan is not known for its software. And since programming languages are largely written in English, who would suspect a language to come from Japan?</p> <p>And yet, here we have Ruby. Against the odds, Yukihiro Matsumoto created Ruby on February 24, 1993. For the past ten years, he has steadily brought Ruby to a global audience. It&#8217;s triumphant and noble and all that. Support diversity. Help us tilt the earth just a bit.</p></li>
<li><strong>Free.</strong> <p>Using Ruby costs nothing. The code to Ruby itself is open for all of the world to inhale/exhale. Heck, this book is free. It&#8217;s all part of a great, big giveaway that should have some big hitch to it.</p> <p>You&#8217;d think we&#8217;d make you buy vacuums or timeshare or fake Monets. You&#8217;d think there&#8217;d be a 90 minute presentation where the owner of the company comes out at the end and knuckles you into sealing the deal.</p> <p>Nope, free.</p></li>
</ol>


<p>With that, it&#8217;s time for the book to begin. You can now get out your highlighter and start dragging it along each captivating word from this sentence on. I think I have enough hairspray and funny money on my person to keep me sustained until the final page.</p>




<a name="section4" />
<h2>4. How Books Start</h2>

<p>Now, if you ever have read a book, you know that no book can properly start without an exorbitant amount of synergy. Yes, synergy. Maybe you didn&#8217;t know this. Synergy means that you and I are supposed to cooperate to make this a great reading experience.</p>


<p>We start off the book by getting along well in the Introduction. This togetherness, this <strong>synergy</strong>, propels us through the book, with me guiding you on your way. You give me a reassuring nod or snicker to indicate your progress.</p>


<p>I&#8217;m Peter Pan holding your hand. Come on, Wendy! Second star to the right and on till morning.</p>


<p>One problem here. I don&#8217;t get along well with people. I don&#8217;t hold hands very well.</p>


<p>Any of my staff will tell you. At the Opening Ceremonies of This Book (a catered event with stadium seating), I discovered that the cucumber sandwiches weren&#8217;t served in tea towels. As a result, the butter hadn&#8217;t set with the cucumbers right&#8230; Anyways, I made a big scene and set fire to some of the advertising trucks outside. I smashed this spotlight to pieces and so on. I had this loud maniacal laughing thing going on deep into that night. It was a real mess.</p>


<p>But, since I don&#8217;t get along well with people, I hadn&#8217;t invited anyone but myself to the Opening Ceremonies of This Book. So it wasn&#8217;t really that embarassing. I kept it under wraps and no one found out about the whole ordeal.</p>


<p>So you&#8217;ve got to know that <strong>synergy</strong> doesn&#8217;t actually mean <strong>synergy</strong> in this book. I can&#8217;t do normal <strong>synergy</strong>. No, in this book, <strong>synergy</strong> means <strong>cartoon foxes</strong>. What I&#8217;m saying is: this book will be starting off with an exorbitant amount of <strong>cartoon foxes</strong>.</p>


<p>And I will be counting on you to turn them into <strong>synergy</strong>.</p>




<p style="text-align:right;">
<a href="chapter-3.html">Turn page.</a>
</p>

</div>
</div>
</div>
</body>
</html>
Loading

0 comments on commit cf6e717

Please sign in to comment.