<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ed Clarke's In a Nutshell</title>
	<atom:link href="http://edsinanutshell.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://edsinanutshell.wordpress.com</link>
	<description>And He Needs Help Getting Out</description>
	<lastBuildDate>Thu, 21 Aug 2008 17:11:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='edsinanutshell.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ed Clarke's In a Nutshell</title>
		<link>http://edsinanutshell.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://edsinanutshell.wordpress.com/osd.xml" title="Ed Clarke&#039;s In a Nutshell" />
	<atom:link rel='hub' href='http://edsinanutshell.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Source Control Check-ins</title>
		<link>http://edsinanutshell.wordpress.com/2008/08/21/source-control-check-ins/</link>
		<comments>http://edsinanutshell.wordpress.com/2008/08/21/source-control-check-ins/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 17:11:39 +0000</pubDate>
		<dc:creator>edc73</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://edsinanutshell.wordpress.com/?p=39</guid>
		<description><![CDATA[People I work with me are probably tired of me beating them up for not checking in code often enough.  I try to promote the idea that if it makes the product better or closer to completion, check it in.  It doesn&#8217;t have to perfect, or even testable to warrant a check-in.  Just don&#8217;t break [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=39&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>People I work with me are probably tired of me beating them up for not checking in code often enough.  I try to promote the idea that if it makes the product better or closer to completion, check it in.  It doesn&#8217;t have to perfect, or even testable to warrant a check-in.  Just don&#8217;t break the build or existing functionality.  With small check-ins, integration becomes less of an issue, and others can see what&#8217;s going on and where we&#8217;re heading.</p>
<p>Jeff Atwood does a good job of making the point <a href="http://www.codinghorror.com/blog/archives/001165.html">here</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edsinanutshell.wordpress.com/39/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edsinanutshell.wordpress.com/39/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edsinanutshell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edsinanutshell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edsinanutshell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edsinanutshell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edsinanutshell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edsinanutshell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edsinanutshell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edsinanutshell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edsinanutshell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edsinanutshell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edsinanutshell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edsinanutshell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edsinanutshell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edsinanutshell.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=39&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edsinanutshell.wordpress.com/2008/08/21/source-control-check-ins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1601418170881ae2d798110f2a1cd0f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edc73</media:title>
		</media:content>
	</item>
		<item>
		<title>Use of c# var &#8211; Lazy or Flexible?</title>
		<link>http://edsinanutshell.wordpress.com/2008/07/25/use-of-c-var-lazy-or-flexible/</link>
		<comments>http://edsinanutshell.wordpress.com/2008/07/25/use-of-c-var-lazy-or-flexible/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 15:29:12 +0000</pubDate>
		<dc:creator>edc73</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://edsinanutshell.wordpress.com/?p=34</guid>
		<description><![CDATA[A code review today raised concerns about the use of var such as: var results = new List&#60;LabResultSummary&#62;(); as opposed to List&#60;LabResultSummary&#62; results = new List&#60;LabResultSummary&#62;(); Specifically, the question was &#8220;Why is type inference needed or even useful in the below? I gotta say, it smells of a lazy developer to me. &#8220; And then [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=34&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A code review today raised concerns about the use of var such as:<br />
<code><br />
var results = new List&lt;LabResultSummary&gt;();<br />
</code></p>
<p>as opposed to<br />
<code><br />
List&lt;LabResultSummary&gt; results = new List&lt;LabResultSummary&gt;();<br />
</code></p>
<p>Specifically, the question was &#8220;Why is type inference needed or even useful in the below? I gotta say, it smells of a lazy developer to me.<span> </span> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> &#8220;</p>
<p>And then my response:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p class="MsoPlainText">My first inclination to &#8220;var&#8221; was similar to yours, but I&#8217;ve converted.</p>
<p class="MsoPlainText">
<p class="MsoPlainText">1.<span> </span>For small methods (which all methods &#8220;should&#8221; be), what the variable is is obvious from how it&#8217;s instantiated (You can only use var when it&#8217;s instantiated in the same statement as it&#8217;s declaration)</p>
<p class="MsoPlainText">2.<span> </span>It&#8217;s still strongly typed (it&#8217;s not a vb6 dim object/variant)</p>
<p class="MsoPlainText">3.<span> </span>You can only use on private method variables, so no &#8220;leakage&#8221; of intent.<span> </span></p>
<p class="MsoPlainText">4.<span> </span>And damn, when I&#8217;m writing a lot of code that&#8217;s in flux, it&#8217;s saved me lots of work to just change the variable type.<span> </span>For example, refactor a method to return the interface instead of the concrete type.<span> </span>I don&#8217;t have to go and touch every single variable that ever called that function.</p>
<p class="MsoPlainText">
<p class="MsoPlainText">There&#8217;s probably others, but that&#8217;s off the top of my head.<span> </span>Again, when I first read about them, I got the &#8220;smell&#8221; too.<span> </span>But decided to give it a shot and have become a fan.<span> </span>Makes my coding agile <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p class="MsoPlainText">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p class="MsoPlainText">Thoughts?</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edsinanutshell.wordpress.com/34/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edsinanutshell.wordpress.com/34/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edsinanutshell.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edsinanutshell.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edsinanutshell.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edsinanutshell.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edsinanutshell.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edsinanutshell.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edsinanutshell.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edsinanutshell.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edsinanutshell.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edsinanutshell.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edsinanutshell.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edsinanutshell.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edsinanutshell.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edsinanutshell.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=34&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edsinanutshell.wordpress.com/2008/07/25/use-of-c-var-lazy-or-flexible/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1601418170881ae2d798110f2a1cd0f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edc73</media:title>
		</media:content>
	</item>
		<item>
		<title>Unit Test Presentation</title>
		<link>http://edsinanutshell.wordpress.com/2008/07/10/unit-test-presentation-2/</link>
		<comments>http://edsinanutshell.wordpress.com/2008/07/10/unit-test-presentation-2/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 13:54:31 +0000</pubDate>
		<dc:creator>edc73</dc:creator>
				<category><![CDATA[IoC]]></category>
		<category><![CDATA[mocks]]></category>
		<category><![CDATA[refactor]]></category>

		<guid isPermaLink="false">http://edsinanutshell.wordpress.com/?p=28</guid>
		<description><![CDATA[So I did my presentation yesterday. The focus morphed a bit from the initial concept. It ended up focusing more on refactoring legacy code to make it testable. While the examples I gave still had some mocking in them, that was not the focus. I really tried to impress upon people the need for small, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=28&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I did my presentation yesterday.  The focus morphed a bit from the initial concept.  It ended up focusing more on refactoring legacy code to make it testable.  While  the examples I gave still had some mocking in them, that was not the focus.  I really tried to impress upon people the need for small, cohesive methods and classes.  We discussed Test Specific Subclasses, Dependency Injection, and some design patterns.  We also touched on some general unit test concepts.  Overall I was happy with the material I was able to present within the hour time limit.  If you were there, what did you think?  Did it help or was it information overload?</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edsinanutshell.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edsinanutshell.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edsinanutshell.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edsinanutshell.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edsinanutshell.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edsinanutshell.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edsinanutshell.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edsinanutshell.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edsinanutshell.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edsinanutshell.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edsinanutshell.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edsinanutshell.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edsinanutshell.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edsinanutshell.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edsinanutshell.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edsinanutshell.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=28&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edsinanutshell.wordpress.com/2008/07/10/unit-test-presentation-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1601418170881ae2d798110f2a1cd0f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edc73</media:title>
		</media:content>
	</item>
		<item>
		<title>#Region issues</title>
		<link>http://edsinanutshell.wordpress.com/2008/07/08/region/</link>
		<comments>http://edsinanutshell.wordpress.com/2008/07/08/region/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 13:51:59 +0000</pubDate>
		<dc:creator>edc73</dc:creator>
				<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://edsinanutshell.wordpress.com/?p=21</guid>
		<description><![CDATA[Good points made by Jeff Atwood concerning issues with #Regions in the Visual Studio editor. I admit that when I first started doing .NET, I fell into the trap very easily. Now it&#8217;s just a pain. Pain to keep the organization straight, pain to read/scan the code. Just the other day I was having trouble [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=21&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.codinghorror.com/blog/archives/001147.html">Good points</a> made by Jeff Atwood concerning issues with #Regions in the Visual Studio editor.  I admit that when I first started doing .NET, I fell into the trap very easily.  Now it&#8217;s just a pain.  Pain to keep the organization straight, pain to read/scan the code.  Just the other day I was having trouble searching for text, finally realized it was part of a collapsed section and therefore being ignored.  Grrr..</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edsinanutshell.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edsinanutshell.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edsinanutshell.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edsinanutshell.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edsinanutshell.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edsinanutshell.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edsinanutshell.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edsinanutshell.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edsinanutshell.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edsinanutshell.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edsinanutshell.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edsinanutshell.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edsinanutshell.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edsinanutshell.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edsinanutshell.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edsinanutshell.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=21&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edsinanutshell.wordpress.com/2008/07/08/region/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1601418170881ae2d798110f2a1cd0f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edc73</media:title>
		</media:content>
	</item>
		<item>
		<title>Unit Test Presentation</title>
		<link>http://edsinanutshell.wordpress.com/2008/07/08/unit-test-presentation/</link>
		<comments>http://edsinanutshell.wordpress.com/2008/07/08/unit-test-presentation/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 13:41:26 +0000</pubDate>
		<dc:creator>edc73</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://edsinanutshell.wordpress.com/?p=19</guid>
		<description><![CDATA[Worked a good bit on my unit test presentation over the weekend. It&#8217;s amazing how little material can be covered in an hour. When I started this, I had all these ideas about what it could be, but reality set in pretty quick. Not just time constraints either. What initially seemed like simple refactorings got [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=19&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Worked a good bit on my unit test presentation over the weekend.  It&#8217;s amazing how little material can be covered in an hour.  When I started this, I had all these ideas about what it could be, but reality set in pretty quick.  Not just time constraints either.  What initially seemed like simple refactorings got a lot more complicated once they go up on the screen.</p>
<p>On the positive side, PowerPoint is the first Office 2007 app that seems more intuitive than its predecessors.  Most likely due to my lack of familiarity with its previous version.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edsinanutshell.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edsinanutshell.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edsinanutshell.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edsinanutshell.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edsinanutshell.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edsinanutshell.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edsinanutshell.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edsinanutshell.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edsinanutshell.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edsinanutshell.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edsinanutshell.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edsinanutshell.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edsinanutshell.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edsinanutshell.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edsinanutshell.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edsinanutshell.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=19&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edsinanutshell.wordpress.com/2008/07/08/unit-test-presentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1601418170881ae2d798110f2a1cd0f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edc73</media:title>
		</media:content>
	</item>
		<item>
		<title>Castle Windsor</title>
		<link>http://edsinanutshell.wordpress.com/2008/06/30/castle-windsor/</link>
		<comments>http://edsinanutshell.wordpress.com/2008/06/30/castle-windsor/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 03:18:59 +0000</pubDate>
		<dc:creator>edc73</dc:creator>
				<category><![CDATA[IoC]]></category>
		<category><![CDATA[windsor]]></category>

		<guid isPermaLink="false">http://edsinanutshell.wordpress.com/?p=10</guid>
		<description><![CDATA[Earlier today I managed to get sample code working that integrated Castle Windsor with ASP.NET MVC.  By creating a custom controller factory, I was able to delegate to Windsor to create the controller.  A side benefit of the custom factory is that there is no more &#8220;magic&#8221; that converts a call to &#8220;service&#8221; to the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=10&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Earlier today I managed to get sample code working that integrated Castle Windsor with ASP.NET MVC.  By creating a custom controller factory, I was able to delegate to Windsor to create the controller.  A side benefit of the custom factory is that there is no more &#8220;magic&#8221; that converts a call to &#8220;service&#8221; to the class &#8220;serviceController&#8221;.  Hopefully I&#8217;ll have some time to go further down this path to see if it really ends up helping some of our dependency issues, or if I&#8217;m just adding more problem points.  I expect the tough issue will be deciding which classes should go through Windsor and which should stay as they are.</p>
<p>Either way, I&#8217;m going to also give it a shot on my home RssReader project.  Since that&#8217;s in it&#8217;s early stages, should be interesting to see it evolve with Windsor integrated from the get go.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edsinanutshell.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edsinanutshell.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edsinanutshell.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edsinanutshell.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edsinanutshell.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edsinanutshell.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edsinanutshell.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edsinanutshell.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edsinanutshell.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edsinanutshell.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edsinanutshell.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edsinanutshell.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edsinanutshell.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edsinanutshell.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edsinanutshell.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edsinanutshell.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=10&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edsinanutshell.wordpress.com/2008/06/30/castle-windsor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1601418170881ae2d798110f2a1cd0f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edc73</media:title>
		</media:content>
	</item>
		<item>
		<title>Project References</title>
		<link>http://edsinanutshell.wordpress.com/2008/06/28/project-references/</link>
		<comments>http://edsinanutshell.wordpress.com/2008/06/28/project-references/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 02:58:01 +0000</pubDate>
		<dc:creator>edc73</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://edsinanutshell.wordpress.com/?p=8</guid>
		<description><![CDATA[This issue keeps popping up in our environment, so figure I&#8217;d put out this quick tidbit: When adding references to libraries that exist within the solution, you should make sure you add the reference via the Project tab, not the Browse tab.  This means you will have to have the target project loaded in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=8&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">This issue keeps popping up in our environment, so figure I&#8217;d put out this quick tidbit:</p>
<p class="MsoNormal">When adding references to libraries that exist within the solution, you should make sure you add the reference via the Project tab, not the Browse tab.  This means you will have to have the target project loaded in the solution to add the reference.</p>
<p class="MsoNormal">If you don&#8217;t do this, command line builds will still be ok, but builds within the IDE can get all messed up due the the build order not being what it should be.  In general, you will get error messages indicating TypeA can not be converted to TypeA, which doesn&#8217;t make any sense.  What&#8217;s really happening is TypeA in the dll can not be converted to TypeA in the currently loaded project.</p>
<p class="MsoNormal">Once you fix the references, all should be good again.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edsinanutshell.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edsinanutshell.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edsinanutshell.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edsinanutshell.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edsinanutshell.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edsinanutshell.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edsinanutshell.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edsinanutshell.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edsinanutshell.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edsinanutshell.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edsinanutshell.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edsinanutshell.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edsinanutshell.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edsinanutshell.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edsinanutshell.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edsinanutshell.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=8&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edsinanutshell.wordpress.com/2008/06/28/project-references/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1601418170881ae2d798110f2a1cd0f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edc73</media:title>
		</media:content>
	</item>
		<item>
		<title>Mocks</title>
		<link>http://edsinanutshell.wordpress.com/2008/06/26/mocks/</link>
		<comments>http://edsinanutshell.wordpress.com/2008/06/26/mocks/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 13:01:00 +0000</pubDate>
		<dc:creator>edc73</dc:creator>
				<category><![CDATA[IoC]]></category>
		<category><![CDATA[mocks]]></category>
		<category><![CDATA[refactor]]></category>
		<category><![CDATA[windsor]]></category>

		<guid isPermaLink="false">http://edsinanutshell.wordpress.com/2008/06/26/mocks/</guid>
		<description><![CDATA[So, I&#8217;ve been tapped to do a presentation at work on using mocks for unit testing. Not a big deal really, I introduced some examples of using Rhino Mocks to do unit tests on our data layer code over a year ago. This led to a some interesting patterns in our code structure, combining command [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=4&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;ve been tapped to do a presentation at work on using mocks for unit testing.  Not a big deal really, I introduced some examples of using Rhino Mocks to do unit tests on our data layer code over a year ago.  This led to a some interesting patterns in our code structure, combining command and template patterns, resulting in a single class for each query/save operation.  Overall, I was very happy how it all turned out. </p>
<p>Now our focus is on testing the business layer.  That also turned out to not be so bad since the business service allowed for some dependency injection.</p>
<p>But as I start getting closer to the presentation layer, things aren&#8217;t behaving so well.  So I&#8217;m looking at refactoring in different ways:</p>
<p>1.  Create test versions of classes that inherit the object under test.  Let the test version override factory methods and have them return doubles/fakes/mocks at test time.  My main concern is that the virtual methods will get abused in production code.</p>
<p>2.  Create a more structured service locater factory, let it&#8217;s methods default to returning the types you&#8217;d expect in production, but allow other types to be registered for unit tests.  Worried about issues with constructors/initialization logic here.</p>
<p>3.  Use an Inversion of Control (IoC) container such as Windsor to manage dependencies.  I haven&#8217;t played with this at all yet, but my gut feel is that we have way too many objects to define in a config file.  Also worried about constructor/initialization logic.  Obviously, I need to play with this to get a better feel for things.</p>
<p>In the end, I&#8217;m sure all of these are valid options, and will just have to see which tool to use in each situation.</p>
<p>
I&#8217;ll try to get some samples written up soon to clarify the different options I&#8217;m considering</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edsinanutshell.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edsinanutshell.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edsinanutshell.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edsinanutshell.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edsinanutshell.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edsinanutshell.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edsinanutshell.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edsinanutshell.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edsinanutshell.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edsinanutshell.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edsinanutshell.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edsinanutshell.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edsinanutshell.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edsinanutshell.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edsinanutshell.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edsinanutshell.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=4&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edsinanutshell.wordpress.com/2008/06/26/mocks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1601418170881ae2d798110f2a1cd0f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edc73</media:title>
		</media:content>
	</item>
		<item>
		<title>Back again</title>
		<link>http://edsinanutshell.wordpress.com/2008/06/26/back-again/</link>
		<comments>http://edsinanutshell.wordpress.com/2008/06/26/back-again/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 12:54:00 +0000</pubDate>
		<dc:creator>edc73</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://edsinanutshell.wordpress.com/2008/06/26/back-again/</guid>
		<description><![CDATA[Giving the old blog another try. Intent here will be to mostly discuss software development topics, but I&#8217;m sure other stuff will creep in from time to time.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=3&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Giving the old blog another try.  Intent here will be to mostly discuss software development topics, but I&#8217;m sure other stuff will creep in from time to time.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edsinanutshell.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edsinanutshell.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edsinanutshell.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edsinanutshell.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edsinanutshell.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edsinanutshell.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edsinanutshell.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edsinanutshell.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edsinanutshell.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edsinanutshell.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edsinanutshell.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edsinanutshell.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edsinanutshell.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edsinanutshell.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edsinanutshell.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edsinanutshell.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edsinanutshell.wordpress.com&amp;blog=4090260&amp;post=3&amp;subd=edsinanutshell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edsinanutshell.wordpress.com/2008/06/26/back-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1601418170881ae2d798110f2a1cd0f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edc73</media:title>
		</media:content>
	</item>
	</channel>
</rss>
