<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Object Mentor Blog: Marick's Law</title>
    <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Marick's Law</title>
      <description>&lt;p&gt;A month ago I was deep in the throes of shipping the current release of FitNesse.  I just wanted to get it done.  I was close to delivery when I spotted a subtle flaw.  To fix this flaw I decided to insert identical &lt;code&gt;if&lt;/code&gt; statements into each of 9 implementations of an abstract function.&lt;/p&gt;


	&lt;p&gt;My &lt;a href="http://butunclebob.com/ArticleS.UncleBob.GreenWristBand"&gt;green wrist band&lt;/a&gt; was glowing a nasty shade of puke.  I knew I was duplicating code.  I knew that I should use the Template Method pattern.  But that just seemed too &lt;em&gt;hard&lt;/em&gt;. I was convinced that it would be faster to spew the duplicated code out into the derivatives, get the release done, and then clean it up later.&lt;/p&gt;


	&lt;p&gt;So this morning I was doing something else, and I spotted this duplicated code.  I sighed, as I looked down at my &lt;a href="http://butunclebob.com/ArticleS.UncleBob.GreenWristBand"&gt;green wrist band&lt;/a&gt;, and thought to myself that I&amp;#8217;d better eat my own dog food and clean this mess up before it gets any worse.  I was dreading it.&lt;/p&gt;


	&lt;p&gt;I made sure that every occurrence of the statement was identical.  Then I went to the base class with the intention of refactoring a Template Method.  When, what to my wondering eyes should appear, but a Template Method that was already there.&lt;/p&gt;


	&lt;p&gt;I sheepishly copied and pasted the &lt;code&gt;if&lt;/code&gt; statement from one of the derivatives into the Template Method, and then deleted the other eight instances.&lt;/p&gt;


	&lt;p&gt;I ran the tests.&lt;/p&gt;


	&lt;p&gt;They all passed.&lt;/p&gt;


	&lt;p&gt;Damn.&lt;/p&gt;


	&lt;p&gt;My &lt;a href="http://butunclebob.com/ArticleS.UncleBob.GreenWristBand"&gt;green wrist band&lt;/a&gt; is shouting: &amp;#8220;I &lt;span class="caps"&gt;TOLD YOU SO&lt;/span&gt;!&amp;#8221;&lt;/p&gt;


	&lt;p&gt;For my penance I did 20 recitations of Marick&amp;#8217;s law.  &amp;#8220;When it comes to code it &lt;em&gt;never&lt;/em&gt; pays to rush.&amp;#8221;&lt;/p&gt;</description>
      <pubDate>Sat, 29 Nov 2008 14:12:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:438f5dd8-2a4d-4f02-955f-4c48cdf69bec</guid>
      <author>Uncle Bob</author>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder</link>
      <category>Uncle Bob's Blatherings</category>
      <category>Clean Code</category>
    </item>
    <item>
      <title>"Marick's Law" by Tips For Bowling</title>
      <description>&lt;p&gt;One of the best things to come out of the home computer revolution could be the general and widespread understanding of how severely limited logic really is.&lt;/p&gt;</description>
      <pubDate>Thu, 20 Oct 2011 15:43:40 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:ec5f98ff-804f-4ba3-9d25-e9adad38f89d</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-160278</link>
    </item>
    <item>
      <title>"Marick's Law" by Puma espera shoes</title>
      <description>&lt;p&gt;The fifty years history of PUMA are written in the history of the great accomplishments of movement. PUMA with Pele went into the final of World Cup championship,While with tennis player Beck always won at wimbledon lawn of soil. And made cooperation with the most of the top athletes and constantly strive for the latest technology to make the best sports equipment. Puma founder,Rudolph Deisler established the PUMA brand in 1948 in Germany.for decades puma has been the important actor in the sport.During the recent years, the more successful combination of pop sports,puma become one of the favorite brand for young people.&lt;/p&gt;</description>
      <pubDate>Tue, 27 Sep 2011 02:30:07 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:857aa563-2190-4efd-9f6f-f20827025a61</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-145913</link>
    </item>
    <item>
      <title>"Marick's Law" by provillus</title>
      <description>&lt;p&gt;hmm ,i&amp;#8217;m not sure if this is what i&amp;#8217;m looking for but anyway this is interresting and could be useful some day,thanks for taking time to write such cool stuff&lt;/p&gt;</description>
      <pubDate>Thu, 28 Jul 2011 17:19:50 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:b0fbb457-72f5-456c-867c-344aa1f07af4</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-121511</link>
    </item>
    <item>
      <title>"Marick's Law" by avocat algerien</title>
      <description>&lt;p&gt;It is an article that reaches our view point by point
&lt;a href="http://www.avocat-algerie.com" rel="nofollow"&gt;avocat constantine&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 10 Jun 2011 12:19:09 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:caa46fe1-3680-4fc8-9250-bcd9a1cbb701</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-109808</link>
    </item>
    <item>
      <title>"Marick's Law" by Hancy</title>
      <description>&lt;p&gt;Hello Friend,Whichever style of Fashion Shoes you&amp;#8217;re looking for, classical, fashionable, lovely or the latest design, you can find your favorite designer shoes in &lt;a href="http://www.dunkpage.com" rel="nofollow"&gt;www.dunkpage.com&lt;/a&gt; ,several days ago I bought one pair of shoes from there,It&amp;#8217;s beautiful and very comfortable!&lt;/p&gt;</description>
      <pubDate>Wed, 08 Jun 2011 10:48:44 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:a735beb5-e424-4fe3-9f1f-732b953e65fe</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-109071</link>
    </item>
    <item>
      <title>"Marick's Law" by christian louboutin shoes on sale</title>
      <description>&lt;p&gt;Have the &lt;a href="http://www.blacklouboutinshoes.com/pumps-c-2.html" rel="nofollow"&gt;christian louboutin patent leather pumps&lt;/a&gt;  is a happy thing. 
Here have the most complete kinds of  &lt;a href="http://www.blacklouboutinshoes.com/platforms-c-3.html" rel="nofollow"&gt;christian louboutin leather platform pumps&lt;/a&gt;.&lt;/p&gt;</description>
      <pubDate>Fri, 03 Jun 2011 06:15:22 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:f0cba57e-f64e-4d2d-aa6a-e4e7775cf05b</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-107629</link>
    </item>
    <item>
      <title>"Marick's Law" by Hermes belt</title>
      <description>&lt;p&gt;&lt;a href="http://www.beltsok.com/hermes-belt.html" rel="nofollow"&gt;&lt;b&gt;Hermes belt&lt;/b&gt;&lt;/a&gt; store offers high quality and cheap designer belts, please have a look.&lt;/p&gt;</description>
      <pubDate>Sat, 07 May 2011 06:36:23 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:4db0b806-5aca-43ab-92c2-6c79545a5164</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-95993</link>
    </item>
    <item>
      <title>"Marick's Law" by Hermes belts</title>
      <description>&lt;p&gt;Strongly recommended for shopping at &lt;a href="http://beltsok.com/" rel="nofollow"&gt;&lt;b&gt;Hermes belts&lt;/b&gt;&lt;/a&gt; store.&lt;/p&gt;</description>
      <pubDate>Sat, 07 May 2011 06:31:53 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:92581a29-2b13-44c6-bc2a-df035efa3822</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-95980</link>
    </item>
    <item>
      <title>"Marick's Law" by okey oyunu oyna </title>
      <description>&lt;p&gt;Thanks uncle bob.&lt;/p&gt;


	&lt;p&gt;Dunyanin en b&#252;y&#252;k online okey oyunu bu sitede sizleri bekliyor. Ger&#231;ek kisilerle sohbet ederek  &lt;a href="http://www.okeyoyunu-oyna.com" rel="nofollow"&gt;okey oyunu oyna&lt;/a&gt; ve internette online oyun oynamanin zevkini &#231;ikar.&lt;/p&gt;</description>
      <pubDate>Wed, 27 Apr 2011 15:51:17 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:630cfec4-c32a-45c9-8416-ae5dc4585588</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-91914</link>
    </item>
    <item>
      <title>"Marick's Law" by Disount Christian Louboutin</title>
      <description>&lt;p&gt;This is a superb posting, I identified your weblog web page executing study google for any related topic and came to this. I couldnt uncover to substantially supplemental info and details on this write-up, so it was pleasant to find this 1. I&amp;#8217;ll in all probability finish up currently being again once more to appear at another content articles that you&amp;#8217;ve got yet another time.    yhm20110408
&lt;a href="http://www.fashioncl.com/category-21-b0-Christian+Loubontin+Boots.html" rel="nofollow"&gt;Disount Christian Louboutin &lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 07 Apr 2011 22:26:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:8ad3f372-bfde-4a87-b532-68e539d22cb8</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-81501</link>
    </item>
    <item>
      <title>"Marick's Law" by Gucci Outlet Online</title>
      <description>&lt;p&gt;If psychologically prepared, all preparations have been completed!&lt;/p&gt;</description>
      <pubDate>Tue, 05 Apr 2011 21:42:40 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:1496e0c0-d029-4641-a3a8-b1a0d8f57438</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-79464</link>
    </item>
    <item>
      <title>"Marick's Law" by Yalova Emlak</title>
      <description>&lt;p&gt;Thanks for this article.I like its.As to me it&amp;#8217;s good job.I wait ur next articles and I will read ur new articles.I come to this site.Because i like this site.&lt;/p&gt;</description>
      <pubDate>Sun, 20 Mar 2011 07:25:36 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:c8974fba-7ca2-4859-a7c1-51019b4002a3</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-73997</link>
    </item>
    <item>
      <title>"Marick's Law" by Sunglass</title>
      <description>&lt;p&gt;At fashion-world4u you find  Imitation&lt;/p&gt;</description>
      <pubDate>Thu, 10 Mar 2011 04:35:37 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:87ac397c-736c-4dd4-aee7-432812b97075</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-71564</link>
    </item>
    <item>
      <title>"Marick's Law" by dswehfhh</title>
      <description>&lt;p&gt;We are the professional &lt;a href="http://www.china-clothing-manufacturer.com/scarfs.html" rel="nofollow"&gt;scarfs manufacturer&lt;/a&gt;, &lt;a href="http://www.china-clothing-manufacturer.com/scarfs.html" rel="nofollow"&gt;scarfs supplier&lt;/a&gt;, &lt;a href="http://www.china-clothing-manufacturer.com/scarfs.html" rel="nofollow"&gt;scarfs factory&lt;/a&gt;, &lt;a href="http://www.china-clothing-manufacturer.com/scarfs.html" rel="nofollow"&gt;custom scarfs&lt;/a&gt;.&lt;/p&gt;</description>
      <pubDate>Wed, 09 Mar 2011 12:30:27 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:7284b186-5f3a-4d4c-aed6-a3c2d6400c54</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-71007</link>
    </item>
    <item>
      <title>"Marick's Law" by lv backpack</title>
      <description>&lt;p&gt;lv backpack have fairly very rated for rather a few of elements just like pattern durability and ease of use&lt;/p&gt;</description>
      <pubDate>Thu, 03 Mar 2011 00:10:31 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:c4e88869-c1eb-4cc8-b4b1-5cd27a7a8b4f</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-68523</link>
    </item>
    <item>
      <title>"Marick's Law" by Monster beats</title>
      <description>&lt;p&gt;&lt;a href="http://www.headphonestore.org.uk/" rel="nofollow"&gt;Headphones&lt;/a&gt;you like
&lt;a href="http://www.headphonestore.org.uk/bose.html" rel="nofollow"&gt;Bose Headphones&lt;/a&gt;so
&lt;a href="http://www.headphonestore.org.uk/bose.html" rel="nofollow"&gt;Bose Earphones&lt;/a&gt;that
&lt;a href="http://www.headphonestore.org.uk/sony.html" rel="nofollow"&gt;Sony Earphones&lt;/a&gt;no
&lt;a href="http://www.headphonestore.org.uk/akg.html" rel="nofollow"&gt;AKG Headphones&lt;/a&gt;choise
&lt;a href="http://www.headphonestore.org.uk/sony.html" rel="nofollow"&gt;Sony Headphones&lt;/a&gt;and all kinds of
&lt;a href="http://www.headphonestore.org.uk/" rel="nofollow"&gt;headphones UK&lt;/a&gt;You can see the
&lt;a href="http://www.monsterbeatstore.com/" rel="nofollow"&gt;Monster beats&lt;/a&gt;do
&lt;a href="http://www.monsterbeatstore.com/" rel="nofollow"&gt;monster beats headphones&lt;/a&gt;sale online
&lt;a href="http://www.monsterbeatstore.com/" rel="nofollow"&gt;Beats by dre&lt;/a&gt;yourcolleagues buy
&lt;a href="http://www.monsterbeatstore.com/" rel="nofollow"&gt;Beats dr dre&lt;/a&gt;such as
&lt;a href="http://www.monsterbeatstore.com/" rel="nofollow"&gt;Beats dre&lt;/a&gt; and
&lt;a href="http://www.monsterbeatstore.com/" rel="nofollow"&gt;Beats by dr dre&lt;/a&gt;so on &lt;/p&gt;</description>
      <pubDate>Mon, 28 Feb 2011 02:49:14 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:a85d257e-0fea-41e0-aca3-7410a956396d</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-67229</link>
    </item>
    <item>
      <title>"Marick's Law" by ghd australia</title>
      <description>&lt;p&gt;GHD australia have fairly very rated for rather a few of elements just like pattern durability and ease of use.&lt;/p&gt;</description>
      <pubDate>Thu, 17 Feb 2011 19:30:15 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:e6db4796-1f07-4fa3-9cc6-c252adb752dd</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-64085</link>
    </item>
    <item>
      <title>"Marick's Law" by Tenant Screening</title>
      <description>&lt;p&gt;I&#8217;m frequently see people doing the same mistakes when it comes to TDD. People test methods and implementations, which leads to tests that are too closely coupled to the implementation, difficult to maintain and refactor, and seems to slow down development and changes.&lt;/p&gt;</description>
      <pubDate>Thu, 17 Feb 2011 15:06:06 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:af6a55aa-e518-4c3d-8754-c2c256da2131</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-63895</link>
    </item>
    <item>
      <title>"Marick's Law" by Criminal Records</title>
      <description>&lt;p&gt;When, what to my wondering eyes should appear, but a Template Method that was already there.&lt;/p&gt;</description>
      <pubDate>Thu, 10 Feb 2011 15:55:09 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:65973d25-a96f-48f3-9eef-e8d04fc2027b</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-61675</link>
    </item>
    <item>
      <title>"Marick's Law" by Gucci belts</title>
      <description>&lt;p&gt;&lt;a href="http://guccimensbelt.com/" rel="nofollow"&gt;gucci belts for men&lt;/a&gt;, &lt;a href="http://guccimensbelt.com/" rel="nofollow"&gt;gucci belts&lt;/a&gt;, &lt;a href="http://guccimensbelt.com/" rel="nofollow"&gt;gucci mens belt&lt;/a&gt;, &lt;a href="http://guccimensbelt.com/" rel="nofollow"&gt;gucci mens belts&lt;/a&gt;.&lt;br&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 09 Feb 2011 01:00:14 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:9051c5de-8719-43ba-9424-69be8c39a6a5</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-61391</link>
    </item>
    <item>
      <title>"Marick's Law" by replica  belts</title>
      <description>&lt;p&gt;&lt;a href="http://replicaguccibelts.com/" rel="nofollow"&gt;replica gucci belts&lt;/a&gt;, &lt;a href="http://replicaguccibelts.com/" rel="nofollow"&gt;replica gucci belt&lt;/a&gt;, &lt;a href="http://replicaguccibelts.com/" rel="nofollow"&gt;replica gucci belts for men&lt;/a&gt;, &lt;a href="http://replicaguccibelts.com/" rel="nofollow"&gt;replica gucci mens belt&lt;/a&gt;.&lt;br&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 09 Feb 2011 00:59:26 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:44f30534-9836-41a7-8321-4c1223cd932a</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-61389</link>
    </item>
    <item>
      <title>"Marick's Law" by Men's  belts</title>
      <description>&lt;p&gt;&lt;a href="http://mens-belts.net/" rel="nofollow"&gt;Men&#8217;s belts&lt;/a&gt;, &lt;a href="http://mens-belts.net/" rel="nofollow"&gt;LV men&#8217;s belts&lt;/a&gt;, &lt;a href="http://mens-belts.net/" rel="nofollow"&gt;Gucci men&#8217;s belts&lt;/a&gt;, &lt;a href="http://mens-belts.net/" rel="nofollow"&gt;Hermes men&#8217;s belts&lt;/a&gt;.&lt;br&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 09 Feb 2011 00:59:15 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:1a2a5ae8-37ce-46af-bc16-49bd6bbff7e4</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-61388</link>
    </item>
    <item>
      <title>"Marick's Law" by hermes belt</title>
      <description>&lt;p&gt;&lt;a href="http://hermesbelt.net/" rel="nofollow"&gt;Hermes belts&lt;/a&gt;, &lt;a href="http://hermesbelt.net/" rel="nofollow"&gt;Hermes belt&lt;/a&gt;, &lt;a href="http://hermesbelt.net/" rel="nofollow"&gt;Hermes belts for men&lt;/a&gt;, &lt;a href="http://hermesbelt.net/" rel="nofollow"&gt;Hermes mens belt&lt;/a&gt;, &lt;a href="http://dupontlighter.net/" rel="nofollow"&gt;dupont lighter&lt;/a&gt;, &lt;a href="http://dupontlighter.net/" rel="nofollow"&gt;dupont lighters&lt;/a&gt;, &lt;a href="http://dupontlighter.net/" rel="nofollow"&gt;st dupont lighter&lt;/a&gt;, &lt;a href="http://dupontlighter.net/" rel="nofollow"&gt;s.t. dupont lighters&lt;/a&gt;.&lt;br&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 09 Feb 2011 00:57:55 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:93e6af9f-4deb-4858-8e3f-c734620cd8c7</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-61384</link>
    </item>
    <item>
      <title>"Marick's Law" by iPad PDF Transfer for Mac</title>
      <description>&lt;p&gt;I really like this essay. Thank you for writing it so seriously.  I want to recommend it for my friends strongly. iPad PDF Transfer for Mac can help you transfer ebooks in PDF format from ipad to mac/iTunes.&lt;/p&gt;</description>
      <pubDate>Fri, 21 Jan 2011 20:49:09 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:b0cdc0f8-afaf-4a9b-84b0-b2433fe1bdbb</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-58458</link>
    </item>
    <item>
      <title>"Marick's Law" by Silicone Molding</title>
      <description>&lt;p&gt;Intertech Machinery Inc. provides the most precise &lt;a href="http://www.taiwanmoldmaker.com/service-plastic-injection-mold.html" rel="nofollow"&gt;Plastic Injection Mold&lt;/a&gt; and
&lt;a href="http://www.taiwanmoldmaker.com/service-rubber-molds.html" rel="nofollow"&gt;Rubber Molds&lt;/a&gt; from Taiwan.  With applying excellent unscrewing device in molds,  
Intertech is also very professional for making flip top &lt;a href="http://www.taiwanmoldmaker.com/service-cap-mold.html" rel="nofollow"&gt;Cap Molds&lt;/a&gt; in the world.&lt;/p&gt;</description>
      <pubDate>Wed, 29 Dec 2010 21:22:01 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:6802a8a6-43ab-4a32-bff6-9efac0b687dd</guid>
      <link>http://blog.objectmentor.com/articles/2008/11/29/discipline-reminder#comment-53028</link>
    </item>
  </channel>
</rss>

