<?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: Deleting my Blog</title>
	<atom:link href="http://stuffthathappens.com/blog/2008/03/07/deleting-my-blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://stuffthathappens.com/blog/2008/03/07/deleting-my-blog/</link>
	<description>Technology and Geek Stuff by Eric Burke</description>
	<lastBuildDate>Mon, 26 Jul 2010 14:36:32 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Marcello Barnaba</title>
		<link>http://stuffthathappens.com/blog/2008/03/07/deleting-my-blog/comment-page-1/#comment-7237</link>
		<dc:creator>Marcello Barnaba</dc:creator>
		<pubDate>Mon, 10 Mar 2008 13:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2008/03/07/deleting-my-blog/#comment-7237</guid>
		<description>Hi Eric,

just a small suggestion to refactor your code:

&lt;code&gt;
  normalized_str.split(&quot;\n&quot;).map { &#124;line&#124; line.strip }.join
&lt;/code&gt;

You see, you don&#039;t need intermediate variables: just apply the block (&lt;code&gt;{&#124;line&#124; line.strip}&lt;/code&gt;) to the array returned by split and then join them. &lt;code&gt;join&lt;/code&gt; uses its first argument as the separator, or the contents of the global variable (&lt;code&gt;$,&lt;/code&gt;), &lt;code&gt;nil&lt;/code&gt; by default.

Have a good journey down the Ruby way ;).

-vjt</description>
		<content:encoded><![CDATA[<p>Hi Eric,</p>
<p>just a small suggestion to refactor your code:</p>
<p><code><br />
  normalized_str.split("\n").map { |line| line.strip }.join<br />
</code></p>
<p>You see, you don&#8217;t need intermediate variables: just apply the block (<code>{|line| line.strip}</code>) to the array returned by split and then join them. <code>join</code> uses its first argument as the separator, or the contents of the global variable (<code>$,</code>), <code>nil</code> by default.</p>
<p>Have a good journey down the Ruby way <img src='http://stuffthathappens.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>-vjt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Burke</title>
		<link>http://stuffthathappens.com/blog/2008/03/07/deleting-my-blog/comment-page-1/#comment-7156</link>
		<dc:creator>Eric Burke</dc:creator>
		<pubDate>Sat, 08 Mar 2008 02:54:23 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2008/03/07/deleting-my-blog/#comment-7156</guid>
		<description>Yeah, it&#039;s pretty crude...probably missing all sorts of XML whitespace variations, but it seems to work for my tests. I&#039;ve basically got a big HERE block with a chunk of expected XML, and the indentation was hosing up the test. While REXML has some pretty-print capability, I wasn&#039;t able to coerce it into consistently indented tags. In Java, I typically use JDOM to convert to/from a Document and a String, which does seem to be more consistent about pretty-printing.</description>
		<content:encoded><![CDATA[<p>Yeah, it&#8217;s pretty crude&#8230;probably missing all sorts of XML whitespace variations, but it seems to work for my tests. I&#8217;ve basically got a big HERE block with a chunk of expected XML, and the indentation was hosing up the test. While REXML has some pretty-print capability, I wasn&#8217;t able to coerce it into consistently indented tags. In Java, I typically use JDOM to convert to/from a Document and a String, which does seem to be more consistent about pretty-printing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Lee</title>
		<link>http://stuffthathappens.com/blog/2008/03/07/deleting-my-blog/comment-page-1/#comment-7151</link>
		<dc:creator>Bob Lee</dc:creator>
		<pubDate>Sat, 08 Mar 2008 01:56:32 +0000</pubDate>
		<guid isPermaLink="false">http://stuffthathappens.com/blog/2008/03/07/deleting-my-blog/#comment-7151</guid>
		<description>I assume you don&#039;t mean &quot;ignorable whitespace&quot; in the strict sense (strict meaning that w/o a schema, the only &quot;ignorable&quot; whitespace is that outside of the root element).

I&#039;m not going anywhere! :-)</description>
		<content:encoded><![CDATA[<p>I assume you don&#8217;t mean &#8220;ignorable whitespace&#8221; in the strict sense (strict meaning that w/o a schema, the only &#8220;ignorable&#8221; whitespace is that outside of the root element).</p>
<p>I&#8217;m not going anywhere! <img src='http://stuffthathappens.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.332 seconds -->
