<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Ruby&#8217;s Most Underused Keyword</title>
	<atom:link href="http://www.rubyrailways.com/rubys-most-underused-keyword/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rubyrailways.com/rubys-most-underused-keyword/</link>
	<description>Experiences with Ruby and Rails, Web2.0 and other development technologies</description>
	<pubDate>Thu, 09 Sep 2010 05:01:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bookmarks for marzo 11th from 02:00 to 02:00 &#124; Bloggerman</title>
		<link>http://www.rubyrailways.com/rubys-most-underused-keyword/comment-page-1/#comment-140278</link>
		<dc:creator>Bookmarks for marzo 11th from 02:00 to 02:00 &#124; Bloggerman</dc:creator>
		<pubDate>Thu, 11 Mar 2010 00:01:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrailways.com/?p=343#comment-140278</guid>
		<description>&lt;p&gt;[...] Ruby, Rails, Web2.0 &#187; Blog Archive &#187; Ruby&#8217;s Most Underused Keyword &#8211; [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] Ruby, Rails, Web2.0 &raquo; Blog Archive &raquo; Ruby&rsquo;s Most Underused Keyword &#8211; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruby, Rails, Web2.0 » Blog Archive » Ruby’s Most Underused Keyword&#160;&#124;&#160;Web2.0时代</title>
		<link>http://www.rubyrailways.com/rubys-most-underused-keyword/comment-page-1/#comment-114017</link>
		<dc:creator>Ruby, Rails, Web2.0 » Blog Archive » Ruby’s Most Underused Keyword&#160;&#124;&#160;Web2.0时代</dc:creator>
		<pubDate>Mon, 16 Feb 2009 14:57:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrailways.com/?p=343#comment-114017</guid>
		<description>&lt;p&gt;[...] the original here:  Ruby, Rails, Web2.0 » Blog Archive » Ruby’s Most Underused Keyword  argus-panoptes, attending, block, code, february-6th, magnus, news, peter, peter-cooper, redo, [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] the original here:  Ruby, Rails, Web2.0 » Blog Archive » Ruby’s Most Underused Keyword  argus-panoptes, attending, block, code, february-6th, magnus, news, peter, peter-cooper, redo, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: citizen428.blog()</title>
		<link>http://www.rubyrailways.com/rubys-most-underused-keyword/comment-page-1/#comment-112846</link>
		<dc:creator>citizen428.blog()</dc:creator>
		<pubDate>Mon, 09 Feb 2009 11:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrailways.com/?p=343#comment-112846</guid>
		<description>&lt;p&gt;&lt;strong&gt;Some quick Ruby tips...&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Good news for OS X users: Priit Haamer provides documentation for Ruby 1.9 and Rails as dictionaries for Dictionary.app, which makes them searchable by Spotlight (Ruby documentation, Rails documentation!#

There also was a nice discussion over the la...
&lt;/code&gt;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p><strong>Some quick Ruby tips&#8230;</strong></p>
<pre><code>Good news for OS X users: Priit Haamer provides documentation for Ruby 1.9 and Rails as dictionaries for Dictionary.app, which makes them searchable by Spotlight (Ruby documentation, Rails documentation!#

There also was a nice discussion over the la...
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko</title>
		<link>http://www.rubyrailways.com/rubys-most-underused-keyword/comment-page-1/#comment-112799</link>
		<dc:creator>Marko</dc:creator>
		<pubDate>Sun, 08 Feb 2009 22:37:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrailways.com/?p=343#comment-112799</guid>
		<description>&lt;p&gt;Here's how I once used redo. To generate a feed of user's activity, I wanted to have an item like "posted 3 videos: x y z". In order to achieve that, I'd loop over a mixed up array of all kinds of activities... Once I begin catching videos, I'd detect hitting a non-video item, render the partial for them and redo.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Here&#8217;s how I once used redo. To generate a feed of user&#8217;s activity, I wanted to have an item like &#8220;posted 3 videos: x y z&#8221;. In order to achieve that, I&#8217;d loop over a mixed up array of all kinds of activities&#8230; Once I begin catching videos, I&#8217;d detect hitting a non-video item, render the partial for them and redo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ennuyer.net &#187; Blog Archive &#187; 2009-02-08- Today’s Ruby/Rails Reading</title>
		<link>http://www.rubyrailways.com/rubys-most-underused-keyword/comment-page-1/#comment-112743</link>
		<dc:creator>Ennuyer.net &#187; Blog Archive &#187; 2009-02-08- Today’s Ruby/Rails Reading</dc:creator>
		<pubDate>Sun, 08 Feb 2009 11:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrailways.com/?p=343#comment-112743</guid>
		<description>&lt;p&gt;[...]  Ruby’s Most Underused Keyword  [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...]  Ruby’s Most Underused Keyword  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tieTYT</title>
		<link>http://www.rubyrailways.com/rubys-most-underused-keyword/comment-page-1/#comment-112685</link>
		<dc:creator>tieTYT</dc:creator>
		<pubDate>Sun, 08 Feb 2009 03:09:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrailways.com/?p=343#comment-112685</guid>
		<description>&lt;p&gt;I think all 3 of these keywords are bad and here's why: It makes it hard to refactor your code.  Look at this pseudo code:&lt;/p&gt;

&lt;p&gt;for (...)
  ...
  if done
    ...
    break
  end if
  if goToNext 
    ...
    next
  end if
  if restartBlock
    ...
    redo
  end if
  ...
}&lt;/p&gt;

&lt;p&gt;Now, let's say the "if done" block gets so big that you want to extract a method out of it:&lt;/p&gt;

&lt;p&gt;myIfDoneMethod
  ...
  break
end method&lt;/p&gt;

&lt;p&gt;Oops, this won't work... "break" makes no sense in a method without a loop.  So now you've gotta change the loop and the method to have a condition that simulates "break".  If you wrote your loop with the condition in the first place, you wouldn't have to deal with this.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I think all 3 of these keywords are bad and here&#8217;s why: It makes it hard to refactor your code.  Look at this pseudo code:</p>
<p>for (&#8230;)<br />
  &#8230;<br />
  if done<br />
    &#8230;<br />
    break<br />
  end if<br />
  if goToNext<br />
    &#8230;<br />
    next<br />
  end if<br />
  if restartBlock<br />
    &#8230;<br />
    redo<br />
  end if<br />
  &#8230;<br />
}</p>
<p>Now, let&#8217;s say the &#8220;if done&#8221; block gets so big that you want to extract a method out of it:</p>
<p>myIfDoneMethod<br />
  &#8230;<br />
  break<br />
end method</p>
<p>Oops, this won&#8217;t work&#8230; &#8220;break&#8221; makes no sense in a method without a loop.  So now you&#8217;ve gotta change the loop and the method to have a condition that simulates &#8220;break&#8221;.  If you wrote your loop with the condition in the first place, you wouldn&#8217;t have to deal with this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.rubyrailways.com/rubys-most-underused-keyword/comment-page-1/#comment-112678</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sun, 08 Feb 2009 02:34:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrailways.com/?p=343#comment-112678</guid>
		<description>&lt;p&gt;No, it's better than that ;-) The equivalent of continue is next; there is no redo() equivalent in C.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>No, it&#8217;s better than that <img src='http://www.rubyrailways.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> The equivalent of continue is next; there is no redo() equivalent in C.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.rubyrailways.com/rubys-most-underused-keyword/comment-page-1/#comment-112659</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Sun, 08 Feb 2009 00:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrailways.com/?p=343#comment-112659</guid>
		<description>&lt;p&gt;Is it like, continue (in C)? If it is, then it's awesome.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Is it like, continue (in C)? If it is, then it&#8217;s awesome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.rubyrailways.com/rubys-most-underused-keyword/comment-page-1/#comment-112648</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sat, 07 Feb 2009 23:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrailways.com/?p=343#comment-112648</guid>
		<description>&lt;p&gt;JeffMo: Oh yeah, the Ruby golf problem rocks. Only Magnus's solution rocks even more ;)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>JeffMo: Oh yeah, the Ruby golf problem rocks. Only Magnus&#8217;s solution rocks even more <img src='http://www.rubyrailways.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Magnus Holm</title>
		<link>http://www.rubyrailways.com/rubys-most-underused-keyword/comment-page-1/#comment-112646</link>
		<dc:creator>Magnus Holm</dc:creator>
		<pubDate>Sat, 07 Feb 2009 22:48:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrailways.com/?p=343#comment-112646</guid>
		<description>&lt;p&gt;JeffMo: Agreed. Methods, conditions, loops, iterators, break, next and redo; they're all gotos on crack.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>JeffMo: Agreed. Methods, conditions, loops, iterators, break, next and redo; they&#8217;re all gotos on crack.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
