<?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>Synthesis: Sit back and REST</title>
    <link>http://synthesis.sbecker.net/articles/2006/07/22/sit-back-and-rest</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>by Scott Becker</description>
    <item>
      <title>Sit back and REST</title>
      <description>&lt;p&gt;In Scott Raymond&amp;#8217;s latest post, he discusses refactoring IconBuffet.com and following the latest &lt;span class="caps"&gt;DHH&lt;/span&gt; Rails dogma &amp;#8211; &lt;span class="caps"&gt;REST&lt;/span&gt;-style resources. He manages to simplify IconBuffet from 10 controllers &amp;#38; 76 actions to 13 controllers and 58 actions total, without removing or adding any features. Thats about 20 less actions. Needless to say, following the recommended &lt;span class="caps"&gt;REST&lt;/span&gt;-style pattern can simplify your work a lot.&lt;/p&gt;


	&lt;p&gt;&amp;#8220;Cutting actions is great, but even more significant is that the remaining ones are almost completely uniform. There are seven standard Rails actions: index, new, create, show, edit, update, and destroy. Everything else—oddball actions—are usually a clue that you’re doing &lt;span class="caps"&gt;RPC&lt;/span&gt;. In the old version, there were forty oddball actions; now there are only five (and four of those are essentially static pages in the about controller.) The upshot is that the controllers are very uniform, which makes the entire application conceptually simpler, and thus easier to maintain, test, and extend.&amp;#8221;&lt;/p&gt;


	&lt;p&gt;Check out more &lt;a href="http://scottraymond.net/articles/2006/07/20/refactoring-to-rest"&gt;at his site.&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 22 Jul 2006 17:41:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:a14b8129-f444-4e0b-bd0a-a771b97c0841</guid>
      <author>sbecker</author>
      <link>http://synthesis.sbecker.net/articles/2006/07/22/sit-back-and-rest</link>
      <category>Ruby on Rails</category>
    </item>
  </channel>
</rss>
