<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>Jon Hartmann - C#</title>
			<link>http://www.jonhartmann.com/index.cfm</link>
			<description>Technical blog of West Virginia web developer Jon Hartmann, covering ColdFusion, Asp.NET, Javascript, User Interface Design, and current website trends.</description>
			<language>en-us</language>
			<pubDate>Sun, 05 Sep 2010 12:05:20 -0500</pubDate>
			<lastBuildDate>Fri, 27 Aug 2010 14:24:00 -0500</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>jon.hartmann@gmail.com</managingEditor>
			<webMaster>jon.hartmann@gmail.com</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>jon.hartmann@gmail.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			<itunes:image href="" />
			<image>
				<url></url>
				<title>Jon Hartmann</title>
				<link>http://www.jonhartmann.com/index.cfm</link>
			</image>
			<itunes:explicit></itunes:explicit>
			
			<item>
				<title>Code I Found:  A Warning about Object Comparisons</title>
				<link>http://www.jonhartmann.com/index.cfm/2010/8/27/Code-I-Found--A-Warning-about-Object-Comparisons</link>
				<description>
				
				Last time I posted a &quot;Code I Found&quot; entry some people got upset... well I&apos;m doing it again, but I&apos;m pairing it with an actual warning about object value comparisons in strongly typed languages. This example shows both a valid problem and some dumb coding that complicates it.  [More]
				</description>
				
				<category>Code I Found</category>				
				
				<category>C#</category>				
				
				<pubDate>Fri, 27 Aug 2010 14:24:00 -0500</pubDate>
				<guid>http://www.jonhartmann.com/index.cfm/2010/8/27/Code-I-Found--A-Warning-about-Object-Comparisons</guid>
				
			</item>
			
			<item>
				<title>Code I Found</title>
				<link>http://www.jonhartmann.com/index.cfm/2010/6/15/Code-I-Found</link>
				<description>
				
				Its time for a new category here on my blog... I&apos;ve been working through a good bit of older code at work and trying to update it to something like modern developer standards. Part of the fun of this has been finding weird, pointless language constructs. Check out this C# example:

&lt;code&gt;if (IsEditable(ID))
	EnableEditButtons(true);
else
	EnableEditButtons(false);&lt;/code&gt;

Neat! This developer was able to use 4 lines of code to do one line of code:

&lt;code&gt;EnableEditButtons(IsEditable(ID));&lt;/code&gt;

Do you have any good examples of code that just shouldn&apos;t have been?

&lt;h4&gt;Update!&lt;/h4&gt;

The EnableEditButton() function from the last example is worth a look too...

&lt;code&gt;protected void EnableEditButtons(bool Value)
{
	if (Value == false)
	{
		buttonAdd.Disabled = true;
		buttonDelete.Disabled = true;
	}
	else
	{
		buttonAdd.Disabled = false;
		buttonDelete.Disabled = false;
	}
}&lt;/code&gt;

Could be wrapped up as:

&lt;code&gt;protected void EnableEditButtons(bool Value)
{
	buttonAdd.Disabled = buttonDelete.Disabled = !Value;
}&lt;/code&gt; 
				</description>
				
				<category>Code I Found</category>				
				
				<category>C#</category>				
				
				<pubDate>Tue, 15 Jun 2010 16:24:00 -0500</pubDate>
				<guid>http://www.jonhartmann.com/index.cfm/2010/6/15/Code-I-Found</guid>
				
			</item>
			</channel></rss>