<?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: The Zen of Unit Testing</title>
	<atom:link href="http://www.codesqueeze.com/the-zen-of-unit-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codesqueeze.com/the-zen-of-unit-testing/</link>
	<description>Ideas for building efficient developers and software</description>
	<lastBuildDate>Mon, 30 Jan 2012 11:03:44 -0500</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: ChromeRatt</title>
		<link>http://www.codesqueeze.com/the-zen-of-unit-testing/#comment-256</link>
		<dc:creator>ChromeRatt</dc:creator>
		<pubDate>Mon, 10 Sep 2007 17:01:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.codesqueeze.com/the-zen-of-unit-testing/#comment-256</guid>
		<description>@Zen - are you playing devil&#039;s advocate or what?  

Yes, I write unit tests because I don&#039;t want to test manually.  I prefer to write code which can be tested directly, instead of having to fire up the UI and push all of those buttons.  This also makes the code more OO and easier to understand.  This is not just my opinion or dogma.  My peers have confirmed this.

Most of the bugs, trivial or serious, I&#039;ve encountered are &quot;stupid&quot; coding mistakes.  They could have been found if the author (including me) had take the time to write unit tests up front.  

The really &quot;incideous&quot; bugs usually pop up from some nasty piece of code that I call &quot;stream of consciousness&quot; functions.  You sit down, you have everything in your head the code needs to do and you just start coding.  It made sense at the time, but once that thought slips from your brain, you have no idea what the code does.  

This kind of code usually doesn&#039;t have unit tests because the developer just blasted it out non-stop.  And every time someone new looks at it, they decide that it will take 2 days to understand the code and write unit tests, or just 2 hours to kinda understand the code and make a change that you THINK won&#039;t break any thing.

And yes, most of my points are not absolutes.  It is possible to write a unit test for code that is not OO.  And one can write OO code without writing unit tests.  It is also possible to write unit tests for a transaction script that is 700 lines of code.  And I suppose it is possible to write a huge transaction script which clear and elegant, but I&#039;ve never seen it.</description>
		<content:encoded><![CDATA[<p>@Zen &#8211; are you playing devil&#8217;s advocate or what?  </p>
<p>Yes, I write unit tests because I don&#8217;t want to test manually.  I prefer to write code which can be tested directly, instead of having to fire up the UI and push all of those buttons.  This also makes the code more OO and easier to understand.  This is not just my opinion or dogma.  My peers have confirmed this.</p>
<p>Most of the bugs, trivial or serious, I&#8217;ve encountered are &#8220;stupid&#8221; coding mistakes.  They could have been found if the author (including me) had take the time to write unit tests up front.  </p>
<p>The really &#8220;incideous&#8221; bugs usually pop up from some nasty piece of code that I call &#8220;stream of consciousness&#8221; functions.  You sit down, you have everything in your head the code needs to do and you just start coding.  It made sense at the time, but once that thought slips from your brain, you have no idea what the code does.  </p>
<p>This kind of code usually doesn&#8217;t have unit tests because the developer just blasted it out non-stop.  And every time someone new looks at it, they decide that it will take 2 days to understand the code and write unit tests, or just 2 hours to kinda understand the code and make a change that you THINK won&#8217;t break any thing.</p>
<p>And yes, most of my points are not absolutes.  It is possible to write a unit test for code that is not OO.  And one can write OO code without writing unit tests.  It is also possible to write unit tests for a transaction script that is 700 lines of code.  And I suppose it is possible to write a huge transaction script which clear and elegant, but I&#8217;ve never seen it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max Pool</title>
		<link>http://www.codesqueeze.com/the-zen-of-unit-testing/#comment-257</link>
		<dc:creator>Max Pool</dc:creator>
		<pubDate>Mon, 10 Sep 2007 17:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.codesqueeze.com/the-zen-of-unit-testing/#comment-257</guid>
		<description>@Zen - 

&quot;Be careful when opposing testing.  Nothing has ever been proven without being tested for correctness.&quot;

It is fun to see intelligent words of someone in opposition. Unfortunately, I view these words as coming from someone who has wasted time creating worthless unit tests (such as getter/setter testing) and has never had the opportunity to be mentored in creating great unit tests. 

Either that or the most intelligent flamebait I have ever seen...</description>
		<content:encoded><![CDATA[<p>@Zen &#8211; </p>
<p>&#8220;Be careful when opposing testing.  Nothing has ever been proven without being tested for correctness.&#8221;</p>
<p>It is fun to see intelligent words of someone in opposition. Unfortunately, I view these words as coming from someone who has wasted time creating worthless unit tests (such as getter/setter testing) and has never had the opportunity to be mentored in creating great unit tests. </p>
<p>Either that or the most intelligent flamebait I have ever seen&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zen</title>
		<link>http://www.codesqueeze.com/the-zen-of-unit-testing/#comment-249</link>
		<dc:creator>Zen</dc:creator>
		<pubDate>Sun, 09 Sep 2007 13:15:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.codesqueeze.com/the-zen-of-unit-testing/#comment-249</guid>
		<description>&quot;People who don&#039;t want to test, write tests. Its the con-artists way to avoid work and have something to show for it.&quot;  &quot;Unit tests are like police road blocks - they only catch the stupid while the incideous walk right by.&quot;</description>
		<content:encoded><![CDATA[<p>&#8220;People who don&#8217;t want to test, write tests. Its the con-artists way to avoid work and have something to show for it.&#8221;  &#8220;Unit tests are like police road blocks &#8211; they only catch the stupid while the incideous walk right by.&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

