<?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: Handy Ruby Gem: andand</title>
	<atom:link href="http://www.chriskite.com/2009/04/08/handy-ruby-gem-andand/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chriskite.com/2009/04/08/handy-ruby-gem-andand/</link>
	<description>Programming, Computer Security, Etc.</description>
	<lastBuildDate>Tue, 11 May 2010 18:22:22 -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: Sam Livingston-Gray</title>
		<link>http://www.chriskite.com/2009/04/08/handy-ruby-gem-andand/comment-page-1/#comment-4</link>
		<dc:creator>Sam Livingston-Gray</dc:creator>
		<pubDate>Mon, 13 Apr 2009 23:15:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.chriskite.com/?p=32#comment-4</guid>
		<description>Also check out Reg&#039;s &quot;Ick&quot; gem (&lt;a href=&quot;http://ick.rubyforge.org&quot; rel=&quot;nofollow&quot;&gt;ick.rubyforge.org&lt;/a&gt;).  The &quot;maybe&quot; method it contains works similarly to &quot;andand&quot; (but reads better, IMO), and there&#039;s another version that takes a block -- which is very useful if you find yourself writing something like:

something.andand.spam.andand.eggs.andand.bacon

Admittedly, sometimes the above can indicate a violation of the law of Demeter... but sometimes it really is what you want to do.</description>
		<content:encoded><![CDATA[<p>Also check out Reg&#8217;s &#8220;Ick&#8221; gem (<a href="http://ick.rubyforge.org">ick.rubyforge.org</a>).  The &#8220;maybe&#8221; method it contains works similarly to &#8220;andand&#8221; (but reads better, IMO), and there&#8217;s another version that takes a block &#8212; which is very useful if you find yourself writing something like:</p>
<p>something.andand.spam.andand.eggs.andand.bacon</p>
<p>Admittedly, sometimes the above can indicate a violation of the law of Demeter&#8230; but sometimes it really is what you want to do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bensoussan Michael</title>
		<link>http://www.chriskite.com/2009/04/08/handy-ruby-gem-andand/comment-page-1/#comment-3</link>
		<dc:creator>Bensoussan Michael</dc:creator>
		<pubDate>Mon, 13 Apr 2009 15:32:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.chriskite.com/?p=32#comment-3</guid>
		<description>With the last rails version you can do :

@phone = Location.try(find(:first, ...elided... )).try(phone)

http://ryandaigle.com/articles/2008/11/20/what-s-new-in-edge-rails-object-try</description>
		<content:encoded><![CDATA[<p>With the last rails version you can do :</p>
<p>@phone = Location.try(find(:first, &#8230;elided&#8230; )).try(phone)</p>
<p><a href="http://ryandaigle.com/articles/2008/11/20/what-s-new-in-edge-rails-object-try">http://ryandaigle.com/articles/2008/11/20/what-s-new-in-edge-rails-object-try</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
