<?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: Design for Testability Talk</title>
	<atom:link href="http://misko.hevery.com/2009/10/07/design-for-testability-talk/feed/" rel="self" type="application/rss+xml" />
	<link>http://misko.hevery.com/2009/10/07/design-for-testability-talk/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=design-for-testability-talk</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: VaNTa</title>
		<link>http://misko.hevery.com/2009/10/07/design-for-testability-talk/comment-page-1/#comment-2095</link>
		<dc:creator>VaNTa</dc:creator>
		<pubDate>Thu, 15 Oct 2009 12:59:19 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=575#comment-2095</guid>
		<description>Thanks Misko, it&#039;s really great talk.</description>
		<content:encoded><![CDATA[<p>Thanks Misko, it&#8217;s really great talk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Subb</title>
		<link>http://misko.hevery.com/2009/10/07/design-for-testability-talk/comment-page-1/#comment-2090</link>
		<dc:creator>Subb</dc:creator>
		<pubDate>Wed, 14 Oct 2009 14:41:18 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=575#comment-2090</guid>
		<description>@misko, this is what I thought, but my network connection object &quot;A&quot; is asynchronous (AS3). My object &quot;B&quot; needs a connected object &quot;A&quot;  so my factory will need to be asynchronous (?) and handle connection errors. Is it really the place for that stuff?</description>
		<content:encoded><![CDATA[<p>@misko, this is what I thought, but my network connection object &#8220;A&#8221; is asynchronous (AS3). My object &#8220;B&#8221; needs a connected object &#8220;A&#8221;  so my factory will need to be asynchronous (?) and handle connection errors. Is it really the place for that stuff?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: misko</title>
		<link>http://misko.hevery.com/2009/10/07/design-for-testability-talk/comment-page-1/#comment-2087</link>
		<dc:creator>misko</dc:creator>
		<pubDate>Wed, 14 Oct 2009 01:18:18 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=575#comment-2087</guid>
		<description>@Subb, it is up to the factory, to make sure that the object is injected in the right state.</description>
		<content:encoded><![CDATA[<p>@Subb, it is up to the factory, to make sure that the object is injected in the right state.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Subb</title>
		<link>http://misko.hevery.com/2009/10/07/design-for-testability-talk/comment-page-1/#comment-2080</link>
		<dc:creator>Subb</dc:creator>
		<pubDate>Tue, 13 Oct 2009 14:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=575#comment-2080</guid>
		<description>Good talk, as usual.  Sums up really well most of your post. I have a question tho.

What happen when object A needs another object B in a certain state? Most of the time, this as to do with network connection, i.e when Object B needs to be connected to some end-point to be used by object A.

How do you deal with this kind of dependency?</description>
		<content:encoded><![CDATA[<p>Good talk, as usual.  Sums up really well most of your post. I have a question tho.</p>
<p>What happen when object A needs another object B in a certain state? Most of the time, this as to do with network connection, i.e when Object B needs to be connected to some end-point to be used by object A.</p>
<p>How do you deal with this kind of dependency?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RM</title>
		<link>http://misko.hevery.com/2009/10/07/design-for-testability-talk/comment-page-1/#comment-2076</link>
		<dc:creator>RM</dc:creator>
		<pubDate>Tue, 13 Oct 2009 07:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=575#comment-2076</guid>
		<description>Is there an audio recording that I could play/download. Video download is are a bit much for  my connection.</description>
		<content:encoded><![CDATA[<p>Is there an audio recording that I could play/download. Video download is are a bit much for  my connection.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: igorbrejc.net &#187; Fresh Catch For October 12th</title>
		<link>http://misko.hevery.com/2009/10/07/design-for-testability-talk/comment-page-1/#comment-2071</link>
		<dc:creator>igorbrejc.net &#187; Fresh Catch For October 12th</dc:creator>
		<pubDate>Mon, 12 Oct 2009 05:07:59 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=575#comment-2071</guid>
		<description>[...] Design for Testability Talk [...]</description>
		<content:encoded><![CDATA[<p>[...] Design for Testability Talk [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: najcik</title>
		<link>http://misko.hevery.com/2009/10/07/design-for-testability-talk/comment-page-1/#comment-2051</link>
		<dc:creator>najcik</dc:creator>
		<pubDate>Fri, 09 Oct 2009 07:52:29 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=575#comment-2051</guid>
		<description>@Zilvinas, @Mark
I do agree with both of you. Really sign under your comments with both my hands :) But there will always be code you have to cope with and which is not up to the standards, you have to start with something - even Mr. Feathers suggests that you&#039;ll have to do some initial refactoring of the legacy code without tests because it might not be feasible to do otherwise. I certainly don&#039;t advocate to not use DI here just thought a feature like of a mocking framework could be warm welcomed by testers.
 
@Giorgio Sironi - Well, you can mock subseqent calls and tell the fake to behave differently on each call, can&#039;t you ? If new was mockable how could it be any different ? So I would like alter the behavior of the loader and pass loader mock such that  if a new operator is called it loads a different class. If another new is called to create an object of the same class it can be another fake with the behavior needed for the second call.</description>
		<content:encoded><![CDATA[<p>@Zilvinas, @Mark<br />
I do agree with both of you. Really sign under your comments with both my hands <img src='http://misko.hevery.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  But there will always be code you have to cope with and which is not up to the standards, you have to start with something &#8211; even Mr. Feathers suggests that you&#8217;ll have to do some initial refactoring of the legacy code without tests because it might not be feasible to do otherwise. I certainly don&#8217;t advocate to not use DI here just thought a feature like of a mocking framework could be warm welcomed by testers.</p>
<p>@Giorgio Sironi &#8211; Well, you can mock subseqent calls and tell the fake to behave differently on each call, can&#8217;t you ? If new was mockable how could it be any different ? So I would like alter the behavior of the loader and pass loader mock such that  if a new operator is called it loads a different class. If another new is called to create an object of the same class it can be another fake with the behavior needed for the second call.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marty</title>
		<link>http://misko.hevery.com/2009/10/07/design-for-testability-talk/comment-page-1/#comment-2050</link>
		<dc:creator>Marty</dc:creator>
		<pubDate>Fri, 09 Oct 2009 07:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=575#comment-2050</guid>
		<description>I&#039;m still struggeling with how to use the DI aspect in production.

The example with the Login Page you gave and the @Cookie annotation.

From testing creating the LoginPage is obvious, but how does this looks like in production code, where I need different LoginPages with different cookies.

And how does this go straight with your post about injectables und newables ? didnt you advice NOT to mix them ? The loginpage does mix it (String &amp; Authenticator).

So for me this is the dilemma... I dont understand how to solve this problem with DI.

Thanks</description>
		<content:encoded><![CDATA[<p>I&#8217;m still struggeling with how to use the DI aspect in production.</p>
<p>The example with the Login Page you gave and the @Cookie annotation.</p>
<p>From testing creating the LoginPage is obvious, but how does this looks like in production code, where I need different LoginPages with different cookies.</p>
<p>And how does this go straight with your post about injectables und newables ? didnt you advice NOT to mix them ? The loginpage does mix it (String &amp; Authenticator).</p>
<p>So for me this is the dilemma&#8230; I dont understand how to solve this problem with DI.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giorgio Sironi</title>
		<link>http://misko.hevery.com/2009/10/07/design-for-testability-talk/comment-page-1/#comment-2044</link>
		<dc:creator>Giorgio Sironi</dc:creator>
		<pubDate>Thu, 08 Oct 2009 17:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=575#comment-2044</guid>
		<description>Good talk, I originally have trouble with DI before realizing factories could be injected for the creation of objects with shorter lifetimes.
@najcik: to substituting new operators or static calls by interception seems global state. What if you have two new calls of the same class and want to inject two mocks with different behavior?</description>
		<content:encoded><![CDATA[<p>Good talk, I originally have trouble with DI before realizing factories could be injected for the creation of objects with shorter lifetimes.<br />
@najcik: to substituting new operators or static calls by interception seems global state. What if you have two new calls of the same class and want to inject two mocks with different behavior?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zilvinas</title>
		<link>http://misko.hevery.com/2009/10/07/design-for-testability-talk/comment-page-1/#comment-2043</link>
		<dc:creator>Zilvinas</dc:creator>
		<pubDate>Thu, 08 Oct 2009 17:22:58 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=575#comment-2043</guid>
		<description>@najcik: There are a few smart(?) people saying that DI is not the only solution to testability. But on the other hand printers don&#039;t build themselves. Let factories build printers. It makes your code more readable, understandable. You have separated responsibilities for building objects and doing something in objects. It&#039;s the same as separating UI from domain. You can do it otherway but most of the time it turns out to be a disaster.</description>
		<content:encoded><![CDATA[<p>@najcik: There are a few smart(?) people saying that DI is not the only solution to testability. But on the other hand printers don&#8217;t build themselves. Let factories build printers. It makes your code more readable, understandable. You have separated responsibilities for building objects and doing something in objects. It&#8217;s the same as separating UI from domain. You can do it otherway but most of the time it turns out to be a disaster.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

