<?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: Refactoring for Testability</title>
	<atom:link href="http://www.testingmentor.com/imtesty/2009/12/02/refactoring-for-testability/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.testingmentor.com/imtesty/2009/12/02/refactoring-for-testability/</link>
	<description>Treatises on the practice of software testing</description>
	<lastBuildDate>Sat, 03 Jul 2010 11:49:32 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: testingmentor</title>
		<link>http://www.testingmentor.com/imtesty/2009/12/02/refactoring-for-testability/comment-page-1/#comment-328</link>
		<dc:creator>testingmentor</dc:creator>
		<pubDate>Sun, 06 Dec 2009 02:58:43 +0000</pubDate>
		<guid isPermaLink="false">http://testingmentor.com/imtesty/2009/12/02/refactoring-for-testability/#comment-328</guid>
		<description>Hi Chris,

I agree that it is generally not a best practice to default to TRUE in a method that returns a Boolean. It is generally &#039;safer&#039; to initialize to false and make the data prove itself to satisfy whatever condition must be met. But, it ultimately didn&#039;t impact control flow in this case, so I didn&#039;t bring it up. Thanks for pointing that out.</description>
		<content:encoded><![CDATA[<p>Hi Chris,</p>
<p>I agree that it is generally not a best practice to default to TRUE in a method that returns a Boolean. It is generally &#8217;safer&#8217; to initialize to false and make the data prove itself to satisfy whatever condition must be met. But, it ultimately didn&#8217;t impact control flow in this case, so I didn&#8217;t bring it up. Thanks for pointing that out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Ahlers</title>
		<link>http://www.testingmentor.com/imtesty/2009/12/02/refactoring-for-testability/comment-page-1/#comment-326</link>
		<dc:creator>Chris Ahlers</dc:creator>
		<pubDate>Sat, 05 Dec 2009 12:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://testingmentor.com/imtesty/2009/12/02/refactoring-for-testability/#comment-326</guid>
		<description>Something else that I see in this code example that is problematic is the fact that &quot;isOk&quot; is defaulted to TRUE.  Data validation functions like this one should always assume the data is bad/corrupt.  Hence, &quot;isOk&quot; should be initialized to FALSE.  Only after the data has been verified as being good should &quot;isOk&quot; be set to TRUE.</description>
		<content:encoded><![CDATA[<p>Something else that I see in this code example that is problematic is the fact that &#8220;isOk&#8221; is defaulted to TRUE.  Data validation functions like this one should always assume the data is bad/corrupt.  Hence, &#8220;isOk&#8221; should be initialized to FALSE.  Only after the data has been verified as being good should &#8220;isOk&#8221; be set to TRUE.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Refactoring for Testability &#171; Test Infected</title>
		<link>http://www.testingmentor.com/imtesty/2009/12/02/refactoring-for-testability/comment-page-1/#comment-324</link>
		<dc:creator>Refactoring for Testability &#171; Test Infected</dc:creator>
		<pubDate>Thu, 03 Dec 2009 13:32:27 +0000</pubDate>
		<guid isPermaLink="false">http://testingmentor.com/imtesty/2009/12/02/refactoring-for-testability/#comment-324</guid>
		<description>[...] Discussion &#8212; Tags: Link &#8212; wanderleisouza @ 11:32 am   Refactoring for Testability at http://testingmentor.com/imtesty/2009/12/02/refactoring-for-testability/    Leave a [...]</description>
		<content:encoded><![CDATA[<p>[...] Discussion &#8212; Tags: Link &#8212; wanderleisouza @ 11:32 am   Refactoring for Testability at <a href="http://testingmentor.com/imtesty/2009/12/02/refactoring-for-testability/" rel="nofollow">http://testingmentor.com/imtesty/2009/12/02/refactoring-for-testability/</a>    Leave a [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
