<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Nimble Code: Rubyisms In Rails</title>
    <link>http://www.nimblecode.com/articles/2006/04/25/rubyisms-in-rails</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Jacob Harris' Weblog</description>
    <item>
      <title>"Rubyisms In Rails" by ajax ftw!</title>
      <description>&lt;p&gt;this ajax thing is neat-o&lt;/p&gt;


	&lt;p&gt;i could do this all day long&lt;/p&gt;</description>
      <pubDate>Wed, 17 May 2006 12:37:10 -0700</pubDate>
      <guid>urn:uuid:cf315a2f-b3f6-47ab-87e0-52a85517f004</guid>
      <link>http://www.nimblecode.com/articles/2006/04/25/rubyisms-in-rails#comment-274</link>
    </item>
    <item>
      <title>"Rubyisms In Rails" by omgz0rs</title>
      <description>&lt;p&gt;omgwtfbbq&lt;/p&gt;</description>
      <pubDate>Wed, 17 May 2006 12:36:14 -0700</pubDate>
      <guid>urn:uuid:86e47ae3-5c0b-472d-8c93-efa88cda5f07</guid>
      <link>http://www.nimblecode.com/articles/2006/04/25/rubyisms-in-rails#comment-273</link>
    </item>
    <item>
      <title>"Rubyisms In Rails" by yay!</title>
      <description>&lt;p&gt;yayness!!&lt;/p&gt;</description>
      <pubDate>Wed, 17 May 2006 12:35:53 -0700</pubDate>
      <guid>urn:uuid:82c1895b-afae-4734-b3a8-eaee00540775</guid>
      <link>http://www.nimblecode.com/articles/2006/04/25/rubyisms-in-rails#comment-272</link>
    </item>
    <item>
      <title>"Rubyisms In Rails" by Jeff Whitmire</title>
      <description>&lt;p&gt;Very nice work Jacob!  You may not be Amy Hoy (sorry, you know), but this is very well done.  Maybe you could be Amy&amp;#8217;s super-hero sidekick.&lt;/p&gt;</description>
      <pubDate>Wed, 10 May 2006 09:10:46 -0700</pubDate>
      <guid>urn:uuid:c63cf1fc-62ff-4a20-ba7c-b6b23544047c</guid>
      <link>http://www.nimblecode.com/articles/2006/04/25/rubyisms-in-rails#comment-230</link>
    </item>
    <item>
      <title>"Rubyisms In Rails" by Daniel A</title>
      <description>&lt;p&gt;Awesome!  Thanks a lot!&lt;/p&gt;</description>
      <pubDate>Tue, 09 May 2006 15:36:20 -0700</pubDate>
      <guid>urn:uuid:ff58da5a-62fd-4eac-bf5c-7b4d1d81e259</guid>
      <link>http://www.nimblecode.com/articles/2006/04/25/rubyisms-in-rails#comment-229</link>
    </item>
    <item>
      <title>"Rubyisms In Rails" by Jason Morrison</title>
      <description>&lt;p&gt;Great stuff, thanks for putting this out there!&lt;/p&gt;</description>
      <pubDate>Tue, 09 May 2006 15:24:50 -0700</pubDate>
      <guid>urn:uuid:1c091c29-7263-4cb9-bc46-d819cfc46317</guid>
      <link>http://www.nimblecode.com/articles/2006/04/25/rubyisms-in-rails#comment-228</link>
    </item>
    <item>
      <title>"Rubyisms In Rails" by Amy Hoy</title>
      <description>&lt;p&gt;Oh Em Gee! There can be only one!!&lt;/p&gt;</description>
      <pubDate>Tue, 25 Apr 2006 12:17:33 -0700</pubDate>
      <guid>urn:uuid:74edd649-5523-4170-bf59-965fef47e656</guid>
      <link>http://www.nimblecode.com/articles/2006/04/25/rubyisms-in-rails#comment-216</link>
    </item>
    <item>
      <title>Rubyisms In Rails</title>
      <description>&lt;p&gt;In an apparently blatant attempt to be more like &lt;a href="http://www.slash7.com/"&gt;Amy Hoy&lt;/a&gt;, I&amp;#8217;ve decided it&amp;#8217;s time I did some Intro to Rails writing. Tonight I&amp;#8217;m going to be giving a little talk on what I&amp;#8217;m calling &lt;strong&gt;Rubyisms&lt;/strong&gt; as seen in Ruby on Rails. I think one of the things that makes Rails so cool is how it is built upon some of the best aspects of Ruby&amp;#8217;s style: duck typing, symbols, blocks, and metaprogramming. And yet, I think many newcomers to Rails don&amp;#8217;t really notice some of the magic going on behind such simple declarations as&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_ruby "&gt;&lt;span class="punct"&gt;&amp;lt;%&lt;/span&gt; &lt;span class="number"&gt;30&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;minutes&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;from_now&lt;/span&gt; &lt;span class="punct"&gt;%&amp;gt;&lt;/span&gt;&lt;span class="string"&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;or more complicated Rails cases like&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_ruby "&gt;&lt;span class="keyword"&gt;class &lt;/span&gt;&lt;span class="class"&gt;Review&lt;/span&gt; &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt; &lt;span class="constant"&gt;ActiveRecord&lt;/span&gt;&lt;span class="punct"&gt;::&lt;/span&gt;&lt;span class="constant"&gt;Base&lt;/span&gt;
  &lt;span class="ident"&gt;belongs_to&lt;/span&gt; &lt;span class="symbol"&gt;:article&lt;/span&gt;
  &lt;span class="ident"&gt;validates_presence_of&lt;/span&gt; &lt;span class="symbol"&gt;:author&lt;/span&gt;
&lt;span class="keyword"&gt;end&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;My humble little slideshow goes out to those Rails newcomers hacking code to look like &lt;span class="caps"&gt;PHP&lt;/span&gt; or Java. The conceit is to use some sample Rails code as starting points for deeper explorations into some of the Ruby coolness lurking inside Rails. This is a nice little look under the hood, but I hope it will educate people new to Rails on how to embrace Ruby style for cleaner and &lt;em&gt;cooler&lt;/em&gt; code.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m posting the slides early for some last minute feedback and I might update these files if any other errors are found. I&amp;#8217;d like to thank &lt;a href="http://www.nycruby.org/"&gt;NYC.rb&lt;/a&gt; compatriots &lt;a href="http://www.zonageek.com/"&gt;Sebastian Delmont&lt;/a&gt;, &lt;a href="http://locomotive.raaum.org/home/show/HomePage"&gt;Ryan Raaum&lt;/a&gt;, &lt;a href="http://www.lifecoding.com/"&gt;Trotter Cashion&lt;/a&gt;, and &lt;a href="http://www.rubypowerandlight.com/"&gt;David Black&lt;/a&gt; for their help and corrections as well.&lt;/p&gt;


	&lt;p&gt;The presentation itself is two parts. I&amp;#8217;m releasing it here in two style. The &lt;em&gt;light version&lt;/em&gt; is stripped of interstitial chapter screens and is a lot easier on the bandwidth:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;&lt;a href="/files/rubynewbies-lite.pdf"&gt;PDF Version&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="/files/rubynewbies-lite.swf"&gt;Flash Version&lt;/a&gt; (&lt;strong&gt;Note&lt;/strong&gt;: Flash version is cutting off bottoms of some slides)&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;If you like what you see there and want to get the version I&amp;#8217;m presenting with images, the full 2MB &lt;span class="caps"&gt;PDF&lt;/span&gt; dump is also available:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;&lt;a href="/files/rubynewbies.pdf"&gt;Huge &lt;span class="caps"&gt;PDF &lt;/span&gt;Version&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Anyhow, I hope you enjoy my little presentation, and as always feedback and corrections are welcome in the comments.&lt;/p&gt;


	&lt;h3&gt;Update (8/2/06)&lt;/h3&gt;


	&lt;p&gt;This presentation is now available for sale as a &lt;a href="http://www.informit.com/shortcuts"&gt;digital shortcut from Informit&lt;/a&gt; (54 pages, $9.99). Please see my &lt;a href="http://www.nimblecode.com/articles/2006/08/02/rubyisms-in-rails-redux"&gt;Rubyisms Redux&lt;/a&gt; for a small pitch and purchasing links. Thank you!&lt;/p&gt;</description>
      <pubDate>Tue, 25 Apr 2006 10:44:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:12a5164c-0a8b-4924-8661-9d66a0e6a691</guid>
      <author>harrisj@nimblecode.com (Jacob Harris)</author>
      <link>http://www.nimblecode.com/articles/2006/04/25/rubyisms-in-rails</link>
      <category>Web Coding</category>
      <category>Programming</category>
      <category>ruby</category>
      <category>rails</category>
      <trackback:ping>http://www.nimblecode.com/articles/trackback/215</trackback:ping>
    </item>
  </channel>
</rss>
