<?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: Specification Pattern With Predicates</title>
	<atom:link href="http://jeffperrin.com/2006/06/28/specification-pattern-with-predicates/feed/" rel="self" type="application/rss+xml" />
	<link>http://jeffperrin.com/2006/06/28/specification-pattern-with-predicates/</link>
	<description>Jump the Fence or Walk Around</description>
	<lastBuildDate>Wed, 30 Dec 2009 18:42:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jeff Perrin</title>
		<link>http://jeffperrin.com/2006/06/28/specification-pattern-with-predicates/#comment-13</link>
		<dc:creator>Jeff Perrin</dc:creator>
		<pubDate>Fri, 11 Aug 2006 21:19:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffperrin.com/index.php/2006/06/28/specification-pattern-with-predicates/#comment-13</guid>
		<description>Ooops... here&#039;s the article:

http://www.eps-publishing.com/Article.aspx?quickid=050123</description>
		<content:encoded><![CDATA[<p>Ooops&#8230; here&#8217;s the article:</p>
<p><a href="http://www.eps-publishing.com/Article.aspx?quickid=050123" rel="nofollow">http://www.eps-publishing.com/Article.aspx?quickid=050123</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Perrin</title>
		<link>http://jeffperrin.com/2006/06/28/specification-pattern-with-predicates/#comment-12</link>
		<dc:creator>Jeff Perrin</dc:creator>
		<pubDate>Fri, 11 Aug 2006 21:18:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffperrin.com/index.php/2006/06/28/specification-pattern-with-predicates/#comment-12</guid>
		<description>Just found this article about the coming features of C# 3.0. In 3.0, the code gets *very* ruby-like:

directories.Where(dirInfo =&gt; dirInfo.Name == &quot;.svn&quot;);</description>
		<content:encoded><![CDATA[<p>Just found this article about the coming features of C# 3.0. In 3.0, the code gets *very* ruby-like:</p>
<p>directories.Where(dirInfo =&#38;gt; dirInfo.Name == &#8220;.svn&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Perrin</title>
		<link>http://jeffperrin.com/2006/06/28/specification-pattern-with-predicates/#comment-11</link>
		<dc:creator>Jeff Perrin</dc:creator>
		<pubDate>Fri, 30 Jun 2006 01:56:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffperrin.com/index.php/2006/06/28/specification-pattern-with-predicates/#comment-11</guid>
		<description>The post I linked to by Joe Walnes has a table comparing the C# stuff to Ruby, I think (the link is down right now).  I also decided to separate out the predicate into a centralized Spec class, but you could make it more &quot;ruby-like&quot; by inlining to something like:

new DirectoryFinder(directories).FindAll(
  delegate(DirectoryInfo dirInfo) { return dirInfo.Name == “.svn”; };
);</description>
		<content:encoded><![CDATA[<p>The post I linked to by Joe Walnes has a table comparing the C# stuff to Ruby, I think (the link is down right now).  I also decided to separate out the predicate into a centralized Spec class, but you could make it more &#8220;ruby-like&#8221; by inlining to something like:</p>
<p>new DirectoryFinder(directories).FindAll(<br />
  delegate(DirectoryInfo dirInfo) { return dirInfo.Name == “.svn”; };<br />
);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vlad</title>
		<link>http://jeffperrin.com/2006/06/28/specification-pattern-with-predicates/#comment-10</link>
		<dc:creator>Vlad</dc:creator>
		<pubDate>Fri, 30 Jun 2006 01:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffperrin.com/index.php/2006/06/28/specification-pattern-with-predicates/#comment-10</guid>
		<description>Looks all right to me, though I must admit I like the blocks in ruby so much better. One just passes a nice block of code, and voila. All these contortions that languages like Java and C# go into are a bit annoying :) What would that sort of thing look like in ruby? Something like this I would expect...

files = directory.recursively_find(&#124;d&#124;, d.name == &quot;. svn&quot;)</description>
		<content:encoded><![CDATA[<p>Looks all right to me, though I must admit I like the blocks in ruby so much better. One just passes a nice block of code, and voila. All these contortions that languages like Java and C# go into are a bit annoying <img src='http://jeffperrin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  What would that sort of thing look like in ruby? Something like this I would expect&#8230;</p>
<p>files = directory.recursively_find(|d|, d.name == &#8220;. svn&#8221;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
