<?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: Clean Code Talks &#8211; Unit Testing</title>
	<atom:link href="http://misko.hevery.com/2008/11/04/clean-code-talks-unit-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://misko.hevery.com/2008/11/04/clean-code-talks-unit-testing/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=clean-code-talks-unit-testing</link>
	<description>Testability Explorer</description>
	<lastBuildDate>Thu, 19 Jan 2012 16:42:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: mrclay.org &#187; Archive &#187; Miško Hevery Programming Talks</title>
		<link>http://misko.hevery.com/2008/11/04/clean-code-talks-unit-testing/comment-page-1/#comment-1286</link>
		<dc:creator>mrclay.org &#187; Archive &#187; Miško Hevery Programming Talks</dc:creator>
		<pubDate>Mon, 29 Jun 2009 18:35:51 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=279#comment-1286</guid>
		<description>[...] Unit Testing [...]</description>
		<content:encoded><![CDATA[<p>[...] Unit Testing [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Allen</title>
		<link>http://misko.hevery.com/2008/11/04/clean-code-talks-unit-testing/comment-page-1/#comment-438</link>
		<dc:creator>Jonathan Allen</dc:creator>
		<pubDate>Wed, 03 Dec 2008 06:05:08 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=279#comment-438</guid>
		<description>What about maintainability? You cannot start shuffling everything around just for the sake of testing and completely ignore the complexity it adds.

Stuff like dependency injection is not free. It adds a significant amount of complexity in terms of the number of possible paths as well as the overall code size.

Focusing again on the &quot;avoid the new operator&quot; bit. If a class doesn&#039;t know how to construct its own dependencies, then who does? 

Every single location that needs an instance of that class? Do you really want to cut and paste that much code?

Instead of testing a complete component, with all its dependencies neatly encapsulated, you are just testing a shell. You now have to go back and test everything that uses this component to make sure it is correctly assembling the guts.</description>
		<content:encoded><![CDATA[<p>What about maintainability? You cannot start shuffling everything around just for the sake of testing and completely ignore the complexity it adds.</p>
<p>Stuff like dependency injection is not free. It adds a significant amount of complexity in terms of the number of possible paths as well as the overall code size.</p>
<p>Focusing again on the &#8220;avoid the new operator&#8221; bit. If a class doesn&#8217;t know how to construct its own dependencies, then who does? </p>
<p>Every single location that needs an instance of that class? Do you really want to cut and paste that much code?</p>
<p>Instead of testing a complete component, with all its dependencies neatly encapsulated, you are just testing a shell. You now have to go back and test everything that uses this component to make sure it is correctly assembling the guts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Allen</title>
		<link>http://misko.hevery.com/2008/11/04/clean-code-talks-unit-testing/comment-page-1/#comment-437</link>
		<dc:creator>Jonathan Allen</dc:creator>
		<pubDate>Wed, 03 Dec 2008 05:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=279#comment-437</guid>
		<description>Why the hell are you complaining about static methods?

Seriously, is there any difference between:

Math.Absolute(x)
x.Absolute()

No. Look at the assembly, it compiles to the exact same thing. The only difference is that in the second line the parameter happens to before the function name instead of after.

As for testability, there is zero difference. I cannot think of any reason why I would test one differently than the other.</description>
		<content:encoded><![CDATA[<p>Why the hell are you complaining about static methods?</p>
<p>Seriously, is there any difference between:</p>
<p>Math.Absolute(x)<br />
x.Absolute()</p>
<p>No. Look at the assembly, it compiles to the exact same thing. The only difference is that in the second line the parameter happens to before the function name instead of after.</p>
<p>As for testability, there is zero difference. I cannot think of any reason why I would test one differently than the other.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://misko.hevery.com/2008/11/04/clean-code-talks-unit-testing/comment-page-1/#comment-426</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 01 Dec 2008 03:55:04 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=279#comment-426</guid>
		<description>Wonderful talk. More people should have been there!</description>
		<content:encoded><![CDATA[<p>Wonderful talk. More people should have been there!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sork</title>
		<link>http://misko.hevery.com/2008/11/04/clean-code-talks-unit-testing/comment-page-1/#comment-329</link>
		<dc:creator>Sork</dc:creator>
		<pubDate>Thu, 06 Nov 2008 11:39:11 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=279#comment-329</guid>
		<description>Thanks a lot for your talk, it was very informative and insightful.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for your talk, it was very informative and insightful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zwetan</title>
		<link>http://misko.hevery.com/2008/11/04/clean-code-talks-unit-testing/comment-page-1/#comment-318</link>
		<dc:creator>zwetan</dc:creator>
		<pubDate>Wed, 05 Nov 2008 07:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=279#comment-318</guid>
		<description>thank you for this great stuff!

does the slides are available somewhere by any chance ?</description>
		<content:encoded><![CDATA[<p>thank you for this great stuff!</p>
<p>does the slides are available somewhere by any chance ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

