<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -33,7 +33,7 @@ First, lets get a simple array of our types:
 
 For each type, we&#8217;ll get a handle on the class with that name:
 
-{% highlight ruby %}types.each { |type| model = Object.const_get(type){% endhighlight %}
+{% highlight ruby %}types.each do |type| model = Object.const_get(type){% endhighlight %}
 
 We&#8217;ll execute our ActiveRecord statement
 
@@ -41,15 +41,15 @@ We&#8217;ll execute our ActiveRecord statement
 
 Get an array of the &#8220;name&#8221; property
 
-{% highlight ruby %}map = listing.map(&amp;:name);{% endhighlight %}
+{% highlight ruby %}names = listing.map(&amp;:name);{% endhighlight %}
 
 Now, we&#8217;ll create those instance variables on the object, the first being a comma-separated listing of the names:
 
-{% highlight ruby %}self.instance_variable_set(&quot;@&quot; + type, map.join(&quot;, &quot;)){% endhighlight %}
+{% highlight ruby %}self.instance_variable_set(&quot;@&quot; + type, names.join(&quot;, &quot;)){% endhighlight %}
 
 The second being a count of the elements:
 
-{% highlight ruby %}self.instance_variable_set(&quot;@&quot; + type + &quot;_count&quot;, map.length) }{% endhighlight %}
+{% highlight ruby %}self.instance_variable_set(&quot;@&quot; + type + &quot;_count&quot;, names.length) }{% endhighlight %}
 
 We could get into why we need those two variables (one for the list and another for the count), but I think this is a nice example of how to use instance_variable_set anyway. Ruby. Dynamic. Awesome.
 
@@ -57,12 +57,12 @@ The full snippet:
 
 {% highlight ruby %}
 types = [&quot;Manufacturer&quot;, &quot;Architecture&quot;, &quot;Platform&quot;]  
-types.each { |type|  
+types.each do |type|  
   model = Object.const_get(type)  
   listing = model.find(:all, :select =&gt;&quot;name&quot;)  
   type = type.downcase  
-  map = listing.map(&amp;:name);  
-  self.instance_variable_set(&quot;@&quot; + type, map.join(&quot;, &quot;))  
-  self.instance_variable_set(&quot;@&quot; + type + &quot;_count&quot;, map.length)  
-}
+  names = listing.map(&amp;:name);  
+  self.instance_variable_set(&quot;@&quot; + type, names.join(&quot;, &quot;))  
+  self.instance_variable_set(&quot;@&quot; + type + &quot;_count&quot;, names.length)  
+end
 {% endhighlight %}
\ No newline at end of file</diff>
      <filename>_posts/2007-11-04-dancing-with-dynamic-features-in-ruby.textile</filename>
    </modified>
    <modified>
      <diff>@@ -71,3 +71,9 @@ Loading development environment (Rails 2.1.0)
 {% endhighlight %}
 
 Note: 30.minutes.from_now.time will result in a Time class, and will work equally as well as (Time.now + 30.minutes).  It's up to you which of those two are more readable and intention revealing.
+
+h4. Caution: Feed parsing is hard
+
+The best part about feed standards is that there are so many to choose from!  The code above is trivial, and will only handle feeds that fit that particular convention.  Since I'm consuming feeds that I am also responsible for creating, I can opt for this _simplest thing that could possibly work_ approach.  
+
+As soon as you start consuming several feeds, you'll start to see just how diverse these feeds can be.  Empty channels, posts without titles, non-unique identifiers... these are just the beginning.  I'd love to hear what robust feed parsers folks are using in Ruby.  The best feed parser I know of, and that some Rubists even use, is &quot;Universal Feed Parser&quot;:http://www.feedparser.org/, a Python library with 3k unit tests.  Good luck!
\ No newline at end of file</diff>
      <filename>_posts/2008-11-28-quick-and-easy-cache-rss-feeds-rails.textile</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>_posts/2008-04-05-using-ajax-to-load-rails-partials.textile</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>cd2cdb44e82f76c938a39db94cf022a53e3106d6</id>
    </parent>
  </parents>
  <author>
    <name>Brian Doll</name>
    <email>brian@emphaticsolutions.com</email>
  </author>
  <url>http://github.com/briandoll/emphaticsolutions.com/commit/a7a4bb0c7432bee00b62c501267df8514c69b492</url>
  <id>a7a4bb0c7432bee00b62c501267df8514c69b492</id>
  <committed-date>2009-05-11T08:52:15-07:00</committed-date>
  <authored-date>2009-05-11T08:52:15-07:00</authored-date>
  <message>some post cleanup</message>
  <tree>ef2f895f2b6c4d0b3249cdbd7676c16707240403</tree>
  <committer>
    <name>Brian Doll</name>
    <email>brian@emphaticsolutions.com</email>
  </committer>
</commit>
