<?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: Unnecessary Complexity Case Study #1: Untyped Enum Comparisons</title>
	<atom:link href="http://landofjosh.com/2009/05/unnecessary-complexity-case-study-1-untyped-enum-comparisons/feed/" rel="self" type="application/rss+xml" />
	<link>http://landofjosh.com/2009/05/unnecessary-complexity-case-study-1-untyped-enum-comparisons/</link>
	<description>software development under the big arch</description>
	<lastBuildDate>Sat, 30 Jan 2010 20:20:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Pauletta</title>
		<link>http://landofjosh.com/2009/05/unnecessary-complexity-case-study-1-untyped-enum-comparisons/comment-page-1/#comment-38</link>
		<dc:creator>Pauletta</dc:creator>
		<pubDate>Sat, 04 Jul 2009 03:13:06 +0000</pubDate>
		<guid isPermaLink="false">http://landofjosh.com/?p=12#comment-38</guid>
		<description>i thought you said you added some posts?? I am so sad to see only old stuff</description>
		<content:encoded><![CDATA[<p>i thought you said you added some posts?? I am so sad to see only old stuff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Rodewald</title>
		<link>http://landofjosh.com/2009/05/unnecessary-complexity-case-study-1-untyped-enum-comparisons/comment-page-1/#comment-9</link>
		<dc:creator>Brian Rodewald</dc:creator>
		<pubDate>Tue, 19 May 2009 03:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://landofjosh.com/?p=12#comment-9</guid>
		<description>Yeah, I hate the enum.ToString() comparisons as well, but not nearly as much as I hate the string.ToLower() comparisons (mostly for exactly the reasons you mention). My suggestion for your next Agent Ralph expansion: an automation to transform

(stringName.ToLower() == &quot;xxx&quot;)

into

(stringName.Equals(&quot;xxx&quot;, StringComparison.OrdinalIgnoreCase)),

which of course won&#039;t work in culture-sensitive scenarios but still beats the hell out of ToLower(), both for defensive coding and performance.</description>
		<content:encoded><![CDATA[<p>Yeah, I hate the enum.ToString() comparisons as well, but not nearly as much as I hate the string.ToLower() comparisons (mostly for exactly the reasons you mention). My suggestion for your next Agent Ralph expansion: an automation to transform</p>
<p>(stringName.ToLower() == &#8220;xxx&#8221;)</p>
<p>into</p>
<p>(stringName.Equals(&#8220;xxx&#8221;, StringComparison.OrdinalIgnoreCase)),</p>
<p>which of course won&#8217;t work in culture-sensitive scenarios but still beats the hell out of ToLower(), both for defensive coding and performance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
