<?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"
	>
<channel>
	<title>Comments on: Why, if reading Ruby is like reading natural language, unless it&#8217;s not?</title>
	<atom:link href="http://www.blog.dannynet.net/archives/19/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blog.dannynet.net/archives/19</link>
	<description>Pondering Programming and Poetry</description>
	<pubDate>Sat, 04 Feb 2012 22:07:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Dave</title>
		<link>http://www.blog.dannynet.net/archives/19#comment-19169</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Sun, 11 Mar 2007 10:57:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/archives/19#comment-19169</guid>
		<description>Generally I agree with your point - the trailing 'if', if used at all, should be on one-liners only.

But what really raises a smell in the given example is the endless string of elseifs, begging for refactoring.</description>
		<content:encoded><![CDATA[<p>Generally I agree with your point - the trailing &#8216;if&#8217;, if used at all, should be on one-liners only.</p>
<p>But what really raises a smell in the given example is the endless string of elseifs, begging for refactoring.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://www.blog.dannynet.net/archives/19#comment-10</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Wed, 30 Nov 2005 07:52:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/archives/19#comment-10</guid>
		<description>Sure, in a single line construct it's not so bad... I remembered afterwards that my own point was used years ago against the Pascal repeat...until statement (which I never hesitated to use). In Pascal, the while statement was said to be preferred, because you can see the loop condition beforehand. When learning a new language, I've always had the tendency to 'bring along' things from previous languages. It will pass. I really like Ruby!</description>
		<content:encoded><![CDATA[<p>Sure, in a single line construct it&#8217;s not so bad&#8230; I remembered afterwards that my own point was used years ago against the Pascal repeat&#8230;until statement (which I never hesitated to use). In Pascal, the while statement was said to be preferred, because you can see the loop condition beforehand. When learning a new language, I&#8217;ve always had the tendency to &#8216;bring along&#8217; things from previous languages. It will pass. I really like Ruby!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Burns</title>
		<link>http://www.blog.dannynet.net/archives/19#comment-9</link>
		<dc:creator>Peter Burns</dc:creator>
		<pubDate>Tue, 29 Nov 2005 09:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/archives/19#comment-9</guid>
		<description>You make a good point about much of the example code you list.  However, I think that in the case of single lines of code the construct makes sense.  Adding additional conditionals to blocks of code goes against my code asthetic as well, and I even itch a bit at adding .methods after blocks, perhaps simply because I don't expect them there and fear that I shall miss them.  Example of what I mean:

[1,2,3].collect do &#124;element&#124;
 element*2
end.reverse</description>
		<content:encoded><![CDATA[<p>You make a good point about much of the example code you list.  However, I think that in the case of single lines of code the construct makes sense.  Adding additional conditionals to blocks of code goes against my code asthetic as well, and I even itch a bit at adding .methods after blocks, perhaps simply because I don&#8217;t expect them there and fear that I shall miss them.  Example of what I mean:</p>
<p>[1,2,3].collect do |element|<br />
 element*2<br />
end.reverse</p>
]]></content:encoded>
	</item>
</channel>
</rss>

