<?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 Stylista</title>
	<atom:link href="http://www.pathf.com/blogs/2008/10/ruby-stylista/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pathf.com/blogs/2008/10/ruby-stylista/</link>
	<description>Running commentary about agile development, user experience design and Ajax.</description>
	<lastBuildDate>Fri, 05 Mar 2010 19:33:43 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Ruby on Rails &#187; 2008: A Year That Was &#187; Pathfinder Development</title>
		<link>http://www.pathf.com/blogs/2008/10/ruby-stylista/comment-page-1/#comment-4937</link>
		<dc:creator>Ruby on Rails &#187; 2008: A Year That Was &#187; Pathfinder Development</dc:creator>
		<pubDate>Fri, 26 Dec 2008 17:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1217#comment-4937</guid>
		<description>[...] Ruby Stylista [...]</description>
		<content:encoded><![CDATA[<p>[...] Ruby Stylista [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: เร็วส์ หกสิบหก » นั่งเทียนเขียนข่าว#22</title>
		<link>http://www.pathf.com/blogs/2008/10/ruby-stylista/comment-page-1/#comment-4004</link>
		<dc:creator>เร็วส์ หกสิบหก » นั่งเทียนเขียนข่าว#22</dc:creator>
		<pubDate>Sun, 02 Nov 2008 17:18:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1217#comment-4004</guid>
		<description>[...] Elements of Ruby Style - Ruby Stylista - [...]</description>
		<content:encoded><![CDATA[<p>[...] Elements of Ruby Style &#8211; Ruby Stylista &#8211; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruby Style Guides and Tools: How to Write Good Looking Ruby : WebNetiques</title>
		<link>http://www.pathf.com/blogs/2008/10/ruby-stylista/comment-page-1/#comment-3927</link>
		<dc:creator>Ruby Style Guides and Tools: How to Write Good Looking Ruby : WebNetiques</dc:creator>
		<pubDate>Tue, 28 Oct 2008 18:02:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1217#comment-3927</guid>
		<description>[...] a Ruby &#8220;style guide.&#8221; After some initial feedback to this, he&#8217;s followed up with a response to some of the initial criticisms and [...]</description>
		<content:encoded><![CDATA[<p>[...] a Ruby &#8220;style guide.&#8221; After some initial feedback to this, he&#8217;s followed up with a response to some of the initial criticisms and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ESPN Dev Blog &#187; Blog Archive &#187; Ruby Style Guides and Tools</title>
		<link>http://www.pathf.com/blogs/2008/10/ruby-stylista/comment-page-1/#comment-3905</link>
		<dc:creator>ESPN Dev Blog &#187; Blog Archive &#187; Ruby Style Guides and Tools</dc:creator>
		<pubDate>Mon, 27 Oct 2008 16:23:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1217#comment-3905</guid>
		<description>[...] highlights two useful posts about Ruby style (here and here) and includes a link to reek, a popular tool for sniffing out code [...]</description>
		<content:encoded><![CDATA[<p>[...] highlights two useful posts about Ruby style (here and here) and includes a link to reek, a popular tool for sniffing out code [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fred Lee</title>
		<link>http://www.pathf.com/blogs/2008/10/ruby-stylista/comment-page-1/#comment-3902</link>
		<dc:creator>Fred Lee</dc:creator>
		<pubDate>Mon, 27 Oct 2008 14:28:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1217#comment-3902</guid>
		<description>Hey Noel,

I think these style posts are great.  Keep posting them regardless of what some may say.  These are some &quot;style&quot; issues I wonder about all the time.  Keep it up!</description>
		<content:encoded><![CDATA[<p>Hey Noel,</p>
<p>I think these style posts are great.  Keep posting them regardless of what some may say.  These are some &#8220;style&#8221; issues I wonder about all the time.  Keep it up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reg Braithwaite</title>
		<link>http://www.pathf.com/blogs/2008/10/ruby-stylista/comment-page-1/#comment-3886</link>
		<dc:creator>Reg Braithwaite</dc:creator>
		<pubDate>Sun, 26 Oct 2008 14:04:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1217#comment-3886</guid>
		<description>I use &quot;and&quot; and &quot;or&quot; for imperative, conditional execution. For example:

x = y or logger.debug(&#039;Darn it, y is false or nil again!&#039;)
model.method_with_side_effect_returning_whether_successful and model.save!

These can be accomplished with if/unless, but I prefer to keep actions with side effects out of the predicate and I also want the main thing first.

So I don&#039;t use:

logger.debug(&#039;Darn it, y is false or nil again!&#039;) unless x = y

or:

if model.method_with_side_effect_returning_whether_successful then model.save!

because I don&#039;t like side effects in the predicate, and I don&#039;t like the main thing out on the RHS. There ar eother ways to do these kinds of things, but I just wanted to share where I use &quot;or&quot; and &quot;and.&quot; In these cases, the low binding is exactly what I want.</description>
		<content:encoded><![CDATA[<p>I use &#8220;and&#8221; and &#8220;or&#8221; for imperative, conditional execution. For example:</p>
<p>x = y or logger.debug(&#8217;Darn it, y is false or nil again!&#8217;)<br />
model.method_with_side_effect_returning_whether_successful and model.save!</p>
<p>These can be accomplished with if/unless, but I prefer to keep actions with side effects out of the predicate and I also want the main thing first.</p>
<p>So I don&#8217;t use:</p>
<p>logger.debug(&#8217;Darn it, y is false or nil again!&#8217;) unless x = y</p>
<p>or:</p>
<p>if model.method_with_side_effect_returning_whether_successful then model.save!</p>
<p>because I don&#8217;t like side effects in the predicate, and I don&#8217;t like the main thing out on the RHS. There ar eother ways to do these kinds of things, but I just wanted to share where I use &#8220;or&#8221; and &#8220;and.&#8221; In these cases, the low binding is exactly what I want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seydar</title>
		<link>http://www.pathf.com/blogs/2008/10/ruby-stylista/comment-page-1/#comment-3882</link>
		<dc:creator>seydar</dc:creator>
		<pubDate>Sun, 26 Oct 2008 02:59:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1217#comment-3882</guid>
		<description>&gt; The general rule for parentheses is to use them in functional expressions, leave them out
&gt; in statements.

What would you classify as &quot;functional expressions&quot;?</description>
		<content:encoded><![CDATA[<p>&gt; The general rule for parentheses is to use them in functional expressions, leave them out<br />
&gt; in statements.</p>
<p>What would you classify as &#8220;functional expressions&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd Werth</title>
		<link>http://www.pathf.com/blogs/2008/10/ruby-stylista/comment-page-1/#comment-3881</link>
		<dc:creator>Todd Werth</dc:creator>
		<pubDate>Sat, 25 Oct 2008 23:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1217#comment-3881</guid>
		<description>After many years of experience, and too many arguments about style, my only advice is to tread lightly, and only choose to include, in a style guide, things that have significant benefit to the community.  Otherwise all you&#039;re really doing is yelling into the wind, as you&#039;ll never get consensus on anything.

I think style is important to readability, and readability is very, very important (professionals create boring readable code, amateurs favor clever code).  The problem is trying to come up with rules that apply to most situations; the beauty of a language like Ruby, over a very strict language like Java, is it allows for many different styles, allowing the code poet to choose the perfect style that matches her code.

A good example of an important style rule is indentation.  This has a significant payoff for things like source code repositories, and thus is worth the loss of stylistic freedom.  Bad examples include trying to enforce the length of method name, or favoring long code over wide code (maximum width or inversely the ternary operator over if/else/end).

I have my opinions on many things like method length (long as they need to be to make it 100% clear) and the ternary operator (rarely readable), but I&#039;ll refrain from voicing them, you don&#039;t need more wind to yell into.</description>
		<content:encoded><![CDATA[<p>After many years of experience, and too many arguments about style, my only advice is to tread lightly, and only choose to include, in a style guide, things that have significant benefit to the community.  Otherwise all you&#8217;re really doing is yelling into the wind, as you&#8217;ll never get consensus on anything.</p>
<p>I think style is important to readability, and readability is very, very important (professionals create boring readable code, amateurs favor clever code).  The problem is trying to come up with rules that apply to most situations; the beauty of a language like Ruby, over a very strict language like Java, is it allows for many different styles, allowing the code poet to choose the perfect style that matches her code.</p>
<p>A good example of an important style rule is indentation.  This has a significant payoff for things like source code repositories, and thus is worth the loss of stylistic freedom.  Bad examples include trying to enforce the length of method name, or favoring long code over wide code (maximum width or inversely the ternary operator over if/else/end).</p>
<p>I have my opinions on many things like method length (long as they need to be to make it 100% clear) and the ternary operator (rarely readable), but I&#8217;ll refrain from voicing them, you don&#8217;t need more wind to yell into.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.270 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-03-21 03:08:46 -->
