<?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: Name that refactoring: 2 - Version 2</title>
    <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Name that refactoring: 2 - Version 2</title>
      <description>&lt;p&gt;A few updates applied to the second name that refactoring. Note that I&amp;#8217;m using a star to represent a problem dependency. It is the &amp;#8220;star&amp;#8221; of the refactoring. I&amp;#8217;m looking for a better image. I could go with a database icon, but the principle is more general than that. The cloud was confusing. So if you have an idea, please let me know what it is!&lt;/p&gt;


	&lt;p&gt;Again, thanks for taking a look and giving me the feedback.&lt;/p&gt;


	&lt;p&gt;&lt;b&gt;&lt;i&gt;Step 0: Problematic Dependency&lt;/i&gt;&lt;/b&gt;&lt;p/&gt;
&lt;img src="http://schuchert.wikispaces.com/file/view/NameThatRefactoring_2-0.png/109818239/NameThatRefactoring_2-0.png"/&gt;&lt;/p&gt;


	&lt;p&gt;&lt;b&gt;&lt;i&gt;Step 1: Capture dependency in a single class&lt;/i&gt;&lt;/b&gt;&lt;p/&gt;
&lt;img src="http://schuchert.wikispaces.com/file/view/NameThatRefactoring_2-1.png/109818237/NameThatRefactoring_2-1.png"/&gt;&lt;/p&gt;


	&lt;p&gt;&lt;b&gt;&lt;i&gt;Step 2: Raise the abstraction to a domain-level interface&lt;/i&gt;&lt;/b&gt;&lt;p/&gt;
&lt;img src="http://schuchert.wikispaces.com/file/view/NameThatRefactoring_2-2.png/109818235/NameThatRefactoring_2-2.png" /&gt;&lt;/p&gt;


	&lt;p&gt;&lt;b&gt;&lt;i&gt;Step 3: Introduce test doubles as needed&lt;/i&gt;&lt;/b&gt;&lt;p/&gt;
&lt;img src="http://schuchert.wikispaces.com/file/view/NameThatRefactoring_2-3.png/109818233/NameThatRefactoring_2-3.png" /&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 16 Dec 2009 02:14:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:8a78598f-7598-49e9-85c3-415b4afb89f3</guid>
      <author>Brett Schuchert</author>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2</link>
      <category>Schuchert's Scattered Synapses </category>
      <category>refactoring</category>
      <category>TDD</category>
      <category>picture</category>
      <category>writing</category>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by Blu-ray ripper mac</title>
      <description>&lt;p&gt;Free download &lt;a href="http://www.ripblurayformac.net/blu-ray-to-ipad-mac.html" rel="nofollow"&gt;Blu-ray to iPad Mac&lt;/a&gt;, you can easily convert Blu ray and DVDs to iPad for playing.&lt;/p&gt;</description>
      <pubDate>Mon, 19 Apr 2010 04:17:10 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:b5436baa-9299-4492-a293-935f23b03c26</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-10154</link>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by janeyi</title>
      <description>&lt;p&gt;If,&lt;a href="http://www.china-conveyors.com/product_l.html" rel="nofollow"&gt;overhead trolley&lt;/a&gt;if you&#8217;re ,&lt;a href="http://www.china-conveyors.com/product_l.html" rel="nofollow"&gt;trolley conveyor&lt;/a&gt;  if you&#8217;&lt;/p&gt;


	&lt;p&gt;re hounded by people trying to bring you down, &lt;a href="http://www.china-conveyors.com/product_g.html" rel="nofollow"&gt;turn roller&lt;/a&gt;demanding your time and attention,
&lt;a href="http://www.china-conveyors.com/product_a.html" rel="nofollow"&gt;X678&lt;/a&gt; you can afford to be direct. &lt;a href="http://www.china-conveyors.com/product_a.html" rel="nofollow"&gt;X458&lt;/a&gt;  Because truth&lt;/p&gt;


	&lt;p&gt;cuts through the bullshit.yy2010.3.24&lt;/p&gt;</description>
      <pubDate>Wed, 24 Mar 2010 03:23:12 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:2edd0778-9505-4650-a85e-36323ab9d8f7</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-8157</link>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by Koltuk Yikama</title>
      <description>&lt;p&gt;I preferred the cloud as it more underline a potentially complex dependency good system&lt;/p&gt;</description>
      <pubDate>Fri, 08 Jan 2010 11:29:27 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:b1a03fcc-035e-44b3-a12d-4c0306467c4c</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-6835</link>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by hal? y?kama makinas?</title>
      <description>&lt;p&gt;I&#8217;ll keep looking. I saw one idea. I&#8217;ve privately been given several inappropriate recommendations as well. Thanks.&lt;/p&gt;</description>
      <pubDate>Fri, 08 Jan 2010 11:28:44 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:9037dff9-f883-4989-81d0-4776a48bca9e</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-6834</link>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by Cyrille Martraire</title>
      <description>&lt;p&gt;&lt;a href="&lt;/p" rel="nofollow"&gt;a weight (10 tons, like in many cartoons) &#8211; it&#8217;s something heavy which slows us down&lt;/a&gt;&amp;gt;


	&lt;p&gt;- exactly, this is also how I feel about a painful dependency.&lt;/p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 29 Dec 2009 16:21:10 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:164f523b-1a05-4383-9e26-debee0113db5</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-6453</link>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by Esko Luontola</title>
      <description>&lt;p&gt;T-Rex sounds nice. It&amp;#8217;s something which we want to keep far away from us. :D&lt;/p&gt;


	&lt;p&gt;Some ideas I had (but which the spam filter ate) were a weight (10 tons, like in many cartoons) &amp;#8211; it&amp;#8217;s something heavy which slows us down. Or then a padlock &amp;#8211; it&amp;#8217;s something which prevents us from progressing.&lt;/p&gt;</description>
      <pubDate>Sat, 19 Dec 2009 16:56:15 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:cd08beab-f9ee-43dd-bd0d-f8a081bfb270</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-5928</link>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by Darioush Jalali</title>
      <description>&lt;p&gt;I also found the cloud more expressive, the idea that the cloud represents &amp;#8220;something general that we don&amp;#8217;t show in detail here&amp;#8221; is a widely accepted metaphor. 
Anyhow star or cloud keep up the good work up!&lt;/p&gt;</description>
      <pubDate>Fri, 18 Dec 2009 17:28:02 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:aedcbd72-7ae5-4c53-b515-1031b1a9ff6c</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-5916</link>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by Chris Salter</title>
      <description>&lt;p&gt;It&amp;#8217;s funny&amp;#8230; When I looked at the first version, even after I figured it out, I never connected it with anything I&amp;#8217;ve done.  The minute I saw this one, I immediately thought of a project I worked on a few months ago.&lt;/p&gt;


	&lt;p&gt;The star may not be perfect, but it&amp;#8217;s worlds better than the cloud.  Personally, I think it would be more fun with a T-Rex.&lt;/p&gt;</description>
      <pubDate>Fri, 18 Dec 2009 07:23:28 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:e948c296-051f-4283-86f5-0f694916f537</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-5915</link>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by Rob Godfrey</title>
      <description>&lt;p&gt;How about a target symbol instead of a star, as in the target of the refactoring.&lt;/p&gt;</description>
      <pubDate>Thu, 17 Dec 2009 04:32:37 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:2d3597ba-7961-4312-9f08-e756cd269304</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-5852</link>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by Brett L. Schuchert</title>
      <description>&lt;p&gt;Hum&amp;#8230;. I know the star is a bit cheese, but it is, after all, the star of the refactoring!-)&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;ll keep looking. I saw one idea. I&amp;#8217;ve privately been given several inappropriate recommendations as well.&lt;/p&gt;</description>
      <pubDate>Thu, 17 Dec 2009 02:12:08 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:10080a33-2b10-4933-805c-436484757046</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-5800</link>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by Jacob Stanley</title>
      <description>&lt;p&gt;I think the star is too positive. Even though I know what it represents, my emotional side is thinking that it&amp;#8217;s bad to move the star further away &amp;#8211; after all, he&amp;#8217;s so friendly :)&lt;/p&gt;</description>
      <pubDate>Wed, 16 Dec 2009 17:35:17 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:aef1262c-d1eb-4501-b5d0-0e27172d2c22</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-5794</link>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by Dan Bernier</title>
      <description>&lt;p&gt;I also dislike the star.  If it&amp;#8217;s too positive, what do we find if we swing to the other side?  What about a bomb, a skull &amp;#38; crossbones?  Those may be too harsh&amp;#8212;the dependency isn&amp;#8217;t fatal, it&amp;#8217;s just undesirable.&lt;/p&gt;


	&lt;p&gt;The &amp;#8220;code smells&amp;#8221; metaphor suggests a whole range of potential images&amp;#8230;&lt;/p&gt;</description>
      <pubDate>Wed, 16 Dec 2009 12:45:28 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:df1ab47f-40d6-4dcd-b70e-886f5cac58e3</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-5792</link>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by Daniel Meyer</title>
      <description>&lt;p&gt;Somehow this version is much clearer to me than the original version. I think the arrows pointing to the dependencies must help me &amp;#8211; and also the terse description text below each figure.&lt;/p&gt;


	&lt;p&gt;I couldn&amp;#8217;t seem to connect with the original version but I got excited when I saw this one, because I could see myself pointing to these and teaching the concept to a co-worker.&lt;/p&gt;


	&lt;p&gt;It&amp;#8217;s also helpful that the step-by-step changes are all on the same screen &amp;#8211; I found my eyes jumping up and down the chain of diagrams many times as I absorbed the small difference between each consecutive pair.  (It would lose something important, for instance, if each diagram were on a separate page or slide).&lt;/p&gt;</description>
      <pubDate>Wed, 16 Dec 2009 11:13:46 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:61de42d4-93ef-4c81-a529-4e172f3ad7dd</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-5790</link>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by r.</title>
      <description>&lt;p&gt;I preferred the &amp;#8220;cloud&amp;#8221; as it more underline a potentially complex dependency system.&lt;/p&gt;</description>
      <pubDate>Wed, 16 Dec 2009 09:11:50 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:0a9ec063-5eeb-4ab5-8383-347b8d89cc81</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-5786</link>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by abi</title>
      <description>&lt;p&gt;What is the significance of test double? Is it for making sure that the code doesnt break?&lt;/p&gt;</description>
      <pubDate>Wed, 16 Dec 2009 04:22:36 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:31ed9159-35a8-44ea-a5be-a10513af443c</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-5779</link>
    </item>
    <item>
      <title>"Name that refactoring: 2 - Version 2" by Giorgio Sironi</title>
      <description>&lt;p&gt;As long as you are consistent in using the star there are no problems, but maybe a more expressive image can help. The cloud was too specific as it points only to Internet dependencies.&lt;/p&gt;</description>
      <pubDate>Wed, 16 Dec 2009 03:51:04 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:88809ff7-3a5c-4fe9-9ae0-49b27c486a46</guid>
      <link>http://blog.objectmentor.com/articles/2009/12/16/name-that-refactoring-2-version-2#comment-5778</link>
    </item>
  </channel>
</rss>
