<?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"
	>
<channel>
	<title>Comments on: JUnit recipes: Work around static attributes in classes</title>
	<atom:link href="http://www.codemonkeyism.com/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codemonkeyism.com/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/</link>
	<description>Programming is hard</description>
	<pubDate>Sat, 22 Nov 2008 13:03:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: himanshu</title>
		<link>http://www.codemonkeyism.com/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-41834</link>
		<dc:creator>himanshu</dc:creator>
		<pubDate>Fri, 30 Nov 2007 12:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-41834</guid>
		<description>Thnks for your comment.
I have to work around with Legacy Code a lot. Client usually do not allow us to change the design. So sometime I have to use stubbed classes or jMockit.</description>
		<content:encoded><![CDATA[<p>Thnks for your comment.<br />
I have to work around with Legacy Code a lot. Client usually do not allow us to change the design. So sometime I have to use stubbed classes or jMockit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://www.codemonkeyism.com/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-32889</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Wed, 03 Oct 2007 16:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-32889</guid>
		<description>Thinking about that again, as Qrilka said, the problem (in this case) arises from interfaces depending on classes. So interfaces should only depend on other interfaces, not on concrete classes.</description>
		<content:encoded><![CDATA[<p>Thinking about that again, as Qrilka said, the problem (in this case) arises from interfaces depending on classes. So interfaces should only depend on other interfaces, not on concrete classes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://www.codemonkeyism.com/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-29846</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Sun, 26 Aug 2007 09:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-29846</guid>
		<description>@Qrilka: Yes you're right. I most often use interfaces instead of classes, but this was legacy code which couldn't easily be changed.

But although most people would use interfaces for services (storage, view), I seldom see people using interfaces for business objects like Person.</description>
		<content:encoded><![CDATA[<p>@Qrilka: Yes you&#8217;re right. I most often use interfaces instead of classes, but this was legacy code which couldn&#8217;t easily be changed.</p>
<p>But although most people would use interfaces for services (storage, view), I seldom see people using interfaces for business objects like Person.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Qrilka</title>
		<link>http://www.codemonkeyism.com/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-29842</link>
		<dc:creator>Qrilka</dc:creator>
		<pubDate>Sun, 26 Aug 2007 09:12:20 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-29842</guid>
		<description>I think the problem is in using concrete classes not interfaces. So If Person would be just an interface you won't have such situation. Concrete classes enlarge code coherence and create problems like the one you've mentioned.</description>
		<content:encoded><![CDATA[<p>I think the problem is in using concrete classes not interfaces. So If Person would be just an interface you won&#8217;t have such situation. Concrete classes enlarge code coherence and create problems like the one you&#8217;ve mentioned.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://www.codemonkeyism.com/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-29759</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Fri, 24 Aug 2007 16:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-29759</guid>
		<description>@Thomas: The names have been changed to protect the innocent :-)

But as a side node, I've been moving further and further away from OO to a data holder object and service programming style. Any business logik inside of objects looks now suspicious to me. I think services like AgeCalculator are much more versatile and exchangable.</description>
		<content:encoded><![CDATA[<p>@Thomas: The names have been changed to protect the innocent :-)</p>
<p>But as a side node, I&#8217;ve been moving further and further away from OO to a data holder object and service programming style. Any business logik inside of objects looks now suspicious to me. I think services like AgeCalculator are much more versatile and exchangable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Hawk</title>
		<link>http://www.codemonkeyism.com/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-29758</link>
		<dc:creator>Thomas Hawk</dc:creator>
		<pubDate>Fri, 24 Aug 2007 16:28:15 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-29758</guid>
		<description>I am curious as to why you need an AgeCalculator class with a calculateAge method.  I, of course, am not familiar with your code, but it seems to me calculateAge should be a method in the Person class.</description>
		<content:encoded><![CDATA[<p>I am curious as to why you need an AgeCalculator class with a calculateAge method.  I, of course, am not familiar with your code, but it seems to me calculateAge should be a method in the Person class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Disco Blog &#187; Blog Archive &#187; The weekly bag&#8211; August 24</title>
		<link>http://www.codemonkeyism.com/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-29754</link>
		<dc:creator>The Disco Blog &#187; Blog Archive &#187; The weekly bag&#8211; August 24</dc:creator>
		<pubDate>Fri, 24 Aug 2007 14:55:10 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/08/24/junit-recipes-work-around-static-attributes-in-classes/#comment-29754</guid>
		<description>[...] JUnit recipes: Work around static attributes in classes- Some hip advice here. [...]</description>
		<content:encoded><![CDATA[<p>[...] JUnit recipes: Work around static attributes in classes- Some hip advice here. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
