<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://devlicio.us/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Jak Charlton - Insane World : Mocking, Featured</title><link>http://devlicio.us/blogs/casey/archive/tags/Mocking/Featured/default.aspx</link><description>Tags: Mocking, Featured</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>Is Alt.net Duplicitous?</title><link>http://devlicio.us/blogs/casey/archive/2008/05/21/is-alt-net-duplicitous.aspx</link><pubDate>Wed, 21 May 2008 09:54:00 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:40674</guid><dc:creator>Jak Charlton</dc:creator><slash:comments>9</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devlicio.us/blogs/casey/rsscomments.aspx?PostID=40674</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devlicio.us/blogs/casey/commentapi.aspx?PostID=40674</wfw:comment><comments>http://devlicio.us/blogs/casey/archive/2008/05/21/is-alt-net-duplicitous.aspx#comments</comments><description>&lt;p&gt;&lt;a class="" href="http://weblogs.asp.net/rosherove/"&gt;Roy&lt;/a&gt; makes a &lt;a class="" href="http://weblogs.asp.net/rosherove/archive/2008/05/19/two-faced-commits-how-the-alt-net-community-is-becoming-more-and-more-dogmatic.aspx"&gt;number of&amp;nbsp;accusations&lt;/a&gt; about the Alt.net community, particularly centred around their espoused ideals clashing with their comments and blogs. I respect Roy greatly, his blog was one of my first real sources for great TDD information, and he has consitently put out great blog posts and software. Largely his complaints come down to TypeMock (who he now works for)&amp;nbsp;not getting an overly warm welcome by many people in the Alt.net world. &lt;/p&gt;
&lt;p&gt;I don&amp;#39;t for one second question Roy&amp;#39;s sincerity, he really has shifted his view on how testing and mocking should work, for what he sees as all the right reasons, and now he seeks to convert others to the same cause.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not what you might call a &amp;quot;paid up member&amp;quot; of the Alt.net movement, my blog address appears on altnetpedia.com, I frequent the Alt.net mailing list, but I have never attended one of the conferences, nor do I put the Alt.net logo on my site. I read a few dozen blogs, probably&amp;nbsp;a third&amp;nbsp;would be classed as Alt.net people, most would not be.&amp;nbsp;I guess I have a foot in Alt.net but dance with the devil.&lt;/p&gt;
&lt;p&gt;I am however one of the people that has commented a number of times on TypeMock and its suitability as a mocking framework (for my needs), and Roy&amp;#39;s obvious frustration comes down largely to his perception that people are bashing TypeMock unfairly, or out of dogma, and not seeing his vision for a better way to write software that TypeMock can help with.&lt;/p&gt;
&lt;p&gt;That is perhaps the case with some people. TypeMock has some fervent supporters, and there are some people that think TypeMock encourages bad practices and should be avoided - software for some reason is one of those things people become almost religious about. I suspect that most people, myself included, are somewhere in the middle.&lt;/p&gt;
&lt;p&gt;TypeMock is to me largely irrelevant. It has some plus sides (debugger support, mocking legacy and framework classes easily), and it has some down sides (it makes it &amp;quot;ok&amp;quot; to couple your code, or to use concretions over abstractions)&lt;/p&gt;
&lt;p&gt;But mostly I just cannot see the point of TypeMock as it exists. It is, if you exclude the plus and minus points I just listed for a moment, basically the same as Moq or Rhino Mocks. It does more or less the same things, in more or less the same way, except both of those options are free, and TypeMock is one of the most costly development tools you could own.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m certainly not against commercial software, I own personal licences for all the software I use on a daily basis, but those products I choose to purchase are the best in their class, or solve a particular problem I face. &lt;a class="" href="http://devlicio.us/blogs/casey/archive/2008/05/01/typemock-powerful-but-needed.aspx"&gt;I also weigh up the cost to value benefit.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The best comparison would be against unit testing frameworks, which are all to the best of my knowledge open source. There are commercial tools which make them easier to use, but there is no need for a commercial unit testing framework, as they are at least 95% feature complete. &lt;/p&gt;
&lt;p&gt;The same could be said of mocking frameworks, Rhino and Moq are at least 95% feature complete, and pretty much (in all day to day ways) the same as TypeMock. There is for me, no one &amp;quot;killer feature&amp;quot; that TypeMock has that justifies it&amp;#39;s price or putting&amp;nbsp;a dependency upon it within a code base.&lt;/p&gt;
&lt;p&gt;So is Alt.Net guilty of the duplicitous charge that Roy has made?&lt;/p&gt;
&lt;p&gt;Expecting all people who frequent the Alt.net world to be constantly flicking between technology and tool choices is not going to hold water. A typical software project may last weeks, months and possibly years. You cannot switch and change that frequently, you have to make choices and go with them. That doesn&amp;#39;t stop Alt.Net people wanting to become aware of more options, but it also means that new options have to get compared to existing options, and even when a better option comes along, it is frequently not going to be used because of historical reasons. People still have their favourites, they still have their personal biases, and they still consider themselves as capable individuals who can evaluate these things.&lt;/p&gt;
&lt;p&gt;I honestly don&amp;#39;t think TypeMock in it&amp;#39;s current form is that revolutionary that we should be sitting up and rushing to use it. The few new things it brings to the mocking party are different, not much better or that much worse. So picking the right tool for the job, means most of the time I prefer to write a wrapper or abstraction (a few wasted minutes) as opposed to changing an entire mocking strategy, all for the sake of a shinier toy. Others make take another approach. When I encounter a real world scenario where I need the power that TypeMock has, I&amp;#39;ll re-evaluate.&lt;/p&gt;
&lt;p&gt;Sometimes, the newer tool isn&amp;#39;t the right tool for the job.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=40674" width="1" height="1"&gt;</description><category domain="http://devlicio.us/blogs/casey/archive/tags/Practices+and+Principles/default.aspx">Practices and Principles</category><category domain="http://devlicio.us/blogs/casey/archive/tags/TDD/default.aspx">TDD</category><category domain="http://devlicio.us/blogs/casey/archive/tags/Mocking/default.aspx">Mocking</category><category domain="http://devlicio.us/blogs/casey/archive/tags/Rants/default.aspx">Rants</category><category domain="http://devlicio.us/blogs/casey/archive/tags/Architecture/default.aspx">Architecture</category><category domain="http://devlicio.us/blogs/casey/archive/tags/Featured/default.aspx">Featured</category></item></channel></rss>