<?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: Common mistakes in software development</title>
	<atom:link href="http://flanders.co.nz/2008/09/24/common-mistakes-in-software-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://flanders.co.nz/2008/09/24/common-mistakes-in-software-development/</link>
	<description>thoughts.each { &#38;:propagandise }</description>
	<lastBuildDate>Sun, 14 Mar 2010 17:21:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Common mistakes in software development (part 2): Mixing up the tiers &#124; Ivan Porto Carrero</title>
		<link>http://flanders.co.nz/2008/09/24/common-mistakes-in-software-development/comment-page-1/#comment-375</link>
		<dc:creator>Common mistakes in software development (part 2): Mixing up the tiers &#124; Ivan Porto Carrero</dc:creator>
		<pubDate>Wed, 01 Oct 2008 04:11:01 +0000</pubDate>
		<guid isPermaLink="false">http://flanders.co.nz/?p=247#comment-375</guid>
		<description>[...] WPF            Less More       &#171; Older   Home   Loading   Newer &#187;        //       Common mistakes in software development [...]</description>
		<content:encoded><![CDATA[<p>[...] WPF            Less More       &laquo; Older   Home   Loading   Newer &raquo;        //       Common mistakes in software development [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ivan</title>
		<link>http://flanders.co.nz/2008/09/24/common-mistakes-in-software-development/comment-page-1/#comment-374</link>
		<dc:creator>ivan</dc:creator>
		<pubDate>Thu, 25 Sep 2008 09:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://flanders.co.nz/?p=247#comment-374</guid>
		<description>@Bob. what I mean with this is exactly that. As the name of the class says Exception it should only be used in exceptional cases and not as a mere error swallowing device. There are some cases in which that is desirable when but in general you don&#039;t want to throw exceptions as your first option. 
I am just trying to prompt people to use a their brains a little when writing software.</description>
		<content:encoded><![CDATA[<p>@Bob. what I mean with this is exactly that. As the name of the class says Exception it should only be used in exceptional cases and not as a mere error swallowing device. There are some cases in which that is desirable when but in general you don&#8217;t want to throw exceptions as your first option.<br />
I am just trying to prompt people to use a their brains a little when writing software.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Saggett</title>
		<link>http://flanders.co.nz/2008/09/24/common-mistakes-in-software-development/comment-page-1/#comment-373</link>
		<dc:creator>Bob Saggett</dc:creator>
		<pubDate>Thu, 25 Sep 2008 08:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://flanders.co.nz/?p=247#comment-373</guid>
		<description>I agree apart from the oneabout exceptions. Certainly you should not be eating exceptions. However, your option of returning null on an exception should only be used in specific cases. Throwing exceptions should be the preferred option when an unexpected condition occurs. Returning null is acceptable when the situation is expected. This is probably what you mean but the example does not make this clear.</description>
		<content:encoded><![CDATA[<p>I agree apart from the oneabout exceptions. Certainly you should not be eating exceptions. However, your option of returning null on an exception should only be used in specific cases. Throwing exceptions should be the preferred option when an unexpected condition occurs. Returning null is acceptable when the situation is expected. This is probably what you mean but the example does not make this clear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: a x b i t . c o m &#187; Blog Archive &#187; Axbit&#8217;s Links for 09/24/2008</title>
		<link>http://flanders.co.nz/2008/09/24/common-mistakes-in-software-development/comment-page-1/#comment-372</link>
		<dc:creator>a x b i t . c o m &#187; Blog Archive &#187; Axbit&#8217;s Links for 09/24/2008</dc:creator>
		<pubDate>Thu, 25 Sep 2008 04:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://flanders.co.nz/?p=247#comment-372</guid>
		<description>[...] Common Mistakes in Software Development [...]</description>
		<content:encoded><![CDATA[<p>[...] Common Mistakes in Software Development [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arjan`s World &#187; LINKBLOG for September 24, 2008</title>
		<link>http://flanders.co.nz/2008/09/24/common-mistakes-in-software-development/comment-page-1/#comment-371</link>
		<dc:creator>Arjan`s World &#187; LINKBLOG for September 24, 2008</dc:creator>
		<pubDate>Wed, 24 Sep 2008 20:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://flanders.co.nz/?p=247#comment-371</guid>
		<description>[...] Common mistakes in software development - Ivan Porto Carrero &#8216; Another thing I keep seeing is very liberal use of try..catch blocks that catch all exceptions.(&#8230;) it shouldn&#8217;t be used as a safeguard to swallow exceptions you don&#8217;t want to fix at this moment &#8216; Ivan dives into other&#8217;s codebases -don&#8217;t we all have that joy from time to time?- discussing some issues, while giving ideas for improvement (btw, see a moving favicon on the site - cute, haven&#8217;t seen that before) [...]</description>
		<content:encoded><![CDATA[<p>[...] Common mistakes in software development &#8211; Ivan Porto Carrero &#8216; Another thing I keep seeing is very liberal use of try..catch blocks that catch all exceptions.(&#8230;) it shouldn&#8217;t be used as a safeguard to swallow exceptions you don&#8217;t want to fix at this moment &#8216; Ivan dives into other&#8217;s codebases -don&#8217;t we all have that joy from time to time?- discussing some issues, while giving ideas for improvement (btw, see a moving favicon on the site &#8211; cute, haven&#8217;t seen that before) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nair</title>
		<link>http://flanders.co.nz/2008/09/24/common-mistakes-in-software-development/comment-page-1/#comment-370</link>
		<dc:creator>Nair</dc:creator>
		<pubDate>Wed, 24 Sep 2008 14:11:30 +0000</pubDate>
		<guid isPermaLink="false">http://flanders.co.nz/?p=247#comment-370</guid>
		<description>I agree with you on the &#039;returning bool&#039;. I had to admin, I have done my share of the same code as well. Once I moved to C# 3.0, I realized an easier way of doing it (like the ruby way). Create an extension method like the following and it does cover our most of the common null check logic (mostly for my code)

public static class Extensions
    {
        public static bool IsBlank(this object obj)
        {
            if ((obj == null) &#124;&#124; (obj.Equals(&quot;&quot;)))
                return true;
            if (obj is ICollection)
            {
                ICollection collectionObj = obj as ICollection;
                if (collectionObj.Count &lt;= 0)
                    return true;
            }
            return false;
        }
    }

keep it coming, after 15 years of programming I am still learning the baby steps :)</description>
		<content:encoded><![CDATA[<p>I agree with you on the &#8216;returning bool&#8217;. I had to admin, I have done my share of the same code as well. Once I moved to C# 3.0, I realized an easier way of doing it (like the ruby way). Create an extension method like the following and it does cover our most of the common null check logic (mostly for my code)</p>
<p>public static class Extensions<br />
    {<br />
        public static bool IsBlank(this object obj)<br />
        {<br />
            if ((obj == null) || (obj.Equals(&#8220;&#8221;)))<br />
                return true;<br />
            if (obj is ICollection)<br />
            {<br />
                ICollection collectionObj = obj as ICollection;<br />
                if (collectionObj.Count &lt;= 0)<br />
                    return true;<br />
            }<br />
            return false;<br />
        }<br />
    }</p>
<p>keep it coming, after 15 years of programming I am still learning the baby steps <img src='http://flanders.co.nz/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dew Drop - September 24, 2008 &#124; Alvin Ashcraft's Morning Dew</title>
		<link>http://flanders.co.nz/2008/09/24/common-mistakes-in-software-development/comment-page-1/#comment-369</link>
		<dc:creator>Dew Drop - September 24, 2008 &#124; Alvin Ashcraft's Morning Dew</dc:creator>
		<pubDate>Wed, 24 Sep 2008 13:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://flanders.co.nz/?p=247#comment-369</guid>
		<description>[...] Common Mistakes in Software Development (Ivan Porto Carrero) [...]</description>
		<content:encoded><![CDATA[<p>[...] Common Mistakes in Software Development (Ivan Porto Carrero) [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
