<?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: Coding Tip: Have A Single Exit Point</title>
	<atom:link href="http://www.tomdalling.com/blog/coding-tips/coding-tip-have-a-single-exit-point/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tomdalling.com/blog/coding-tips/coding-tip-have-a-single-exit-point</link>
	<description>Thoughts of a software developer</description>
	<lastBuildDate>Sat, 04 Feb 2012 03:08:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Rick</title>
		<link>http://www.tomdalling.com/blog/coding-tips/coding-tip-have-a-single-exit-point/comment-page-1#comment-639</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Wed, 28 Sep 2011 13:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.tomdalling.com/?p=75#comment-639</guid>
		<description>It&#039;s a dated concept that is as relevant today as it was when Djikstra first proposed it.  If you are in a professional shop, multiple exits in your methods, unless handling unexpected exceptions, will normally fail your code during review.

The principles of structured programming are to be adhered to whenever possible... any developer breaking with them today, in my opinion, should be viewed as a novice.</description>
		<content:encoded><![CDATA[<p>It&#8217;s a dated concept that is as relevant today as it was when Djikstra first proposed it.  If you are in a professional shop, multiple exits in your methods, unless handling unexpected exceptions, will normally fail your code during review.</p>
<p>The principles of structured programming are to be adhered to whenever possible&#8230; any developer breaking with them today, in my opinion, should be viewed as a novice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.tomdalling.com/blog/coding-tips/coding-tip-have-a-single-exit-point/comment-page-1#comment-428</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Thu, 22 Apr 2010 02:16:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.tomdalling.com/?p=75#comment-428</guid>
		<description>Strict adherence to the rule can result in complicated nested &#039;if&#039; statements, as the article already mentions, but only in certain cases and there are ways around it. 

It&#039;s an old concept that most people should have heard of by now, but it&#039;s hardly a &quot;dated&quot; concept. I don&#039;t think most people would agree that you can throw return statements anywhere without consequences.</description>
		<content:encoded><![CDATA[<p>Strict adherence to the rule can result in complicated nested &#8216;if&#8217; statements, as the article already mentions, but only in certain cases and there are ways around it. </p>
<p>It&#8217;s an old concept that most people should have heard of by now, but it&#8217;s hardly a &#8220;dated&#8221; concept. I don&#8217;t think most people would agree that you can throw return statements anywhere without consequences.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.tomdalling.com/blog/coding-tips/coding-tip-have-a-single-exit-point/comment-page-1#comment-427</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 21 Apr 2010 20:01:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.tomdalling.com/?p=75#comment-427</guid>
		<description>The problem with single exit it that it often results in less-readable code because of the complex if/else structure to channel the execution to a single exit point. It&#039;s basically a dated concept.</description>
		<content:encoded><![CDATA[<p>The problem with single exit it that it often results in less-readable code because of the complex if/else structure to channel the execution to a single exit point. It&#8217;s basically a dated concept.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.tomdalling.com/blog/coding-tips/coding-tip-have-a-single-exit-point/comment-page-1#comment-155</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 04 Nov 2009 06:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.tomdalling.com/?p=75#comment-155</guid>
		<description>I do make exceptions, and optimization is one of those exceptions, but that occurs maybe less that 1% of the time. I definitely subscribe to the &quot;premature optimization is evil&quot; mantra.

Returning on finding bad data can be a good idea, such as function guards. 

It really depends on the situation. It&#039;s not that black and white.</description>
		<content:encoded><![CDATA[<p>I do make exceptions, and optimization is one of those exceptions, but that occurs maybe less that 1% of the time. I definitely subscribe to the &#8220;premature optimization is evil&#8221; mantra.</p>
<p>Returning on finding bad data can be a good idea, such as function guards. </p>
<p>It really depends on the situation. It&#8217;s not that black and white.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://www.tomdalling.com/blog/coding-tips/coding-tip-have-a-single-exit-point/comment-page-1#comment-154</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Wed, 04 Nov 2009 03:30:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.tomdalling.com/?p=75#comment-154</guid>
		<description>Would you make an exception to save cycles? I.e. returning when continuing in the function no longer makes sense (possibly from bad input data)?</description>
		<content:encoded><![CDATA[<p>Would you make an exception to save cycles? I.e. returning when continuing in the function no longer makes sense (possibly from bad input data)?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

