<?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: Top Refactorings</title>
    <link>http://blog.objectmentor.com/articles/2008/06/26/top-refactorings</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Top Refactorings</title>
      <description>&lt;p&gt;This has been done before by another mentor, and it was fun.  I&amp;#8217;ve been watching my use of refactoring tools, and here is my top five list of seven most-used refactorings:&lt;/p&gt;


&lt;ol&gt;
&lt;li&gt;Rename&lt;/li&gt;
&lt;li&gt;Introduce Variable&lt;/li&gt;
&lt;li&gt;Extract Method&lt;/li&gt;
&lt;li&gt;Inline variable&lt;/li&gt;
&lt;li&gt;Inline method&lt;/li&gt;
&lt;li&gt;Move Method&lt;/li&gt;
&lt;li&gt;Change method signature&lt;/li&gt;
&lt;/ol&gt;

	&lt;p&gt;You might guess that I&amp;#8217;m doing a fair amount of refactoring on legacy code.&lt;/p&gt;


	&lt;p&gt;I was suprised how much I&amp;#8217;m using introduce/inline variable, but quite often I&amp;#8217;m doing that to make a block of code ready for method extraction.  Having broken out small methods, I sometimes find a larger method to extract, and then I inline the use of smaller methods. It&amp;#8217;s sometimes hard to find the right level of generality.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;d have trouble imagining that the first three weren&amp;#8217;t everyone&amp;#8217;s favorite refactorings.&lt;/p&gt;</description>
      <pubDate>Thu, 26 Jun 2008 01:10:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:1b5f9a03-bd7d-49be-a66d-89622e7f60ed</guid>
      <author>Tim Ottinger</author>
      <link>http://blog.objectmentor.com/articles/2008/06/26/top-refactorings</link>
      <category>Tim's Tepid Torrent</category>
      <category>refactoring</category>
      <category>tool</category>
      <category>rename</category>
      <category>inline</category>
      <category>move</category>
      <category>list</category>
      <category>choices</category>
    </item>
    <item>
      <title>"Top Refactorings" by James Carr</title>
      <description>&lt;p&gt;I&amp;#8217;ve been finding myself introducing strategy and visitor a lot lately&amp;#8230; I think the top 3 in this list are so common I do them without thinking. :)&lt;/p&gt;</description>
      <pubDate>Thu, 26 Jun 2008 02:13:05 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:70fd5aa6-531b-4250-bb9a-39f2efc9a22c</guid>
      <link>http://blog.objectmentor.com/articles/2008/06/26/top-refactorings#comment-1860</link>
    </item>
    <item>
      <title>"Top Refactorings" by Ariel</title>
      <description>&lt;p&gt;How did you tally the score?
Since you are working on legacy code, I am surprised that &amp;#8220;Extract Class&amp;#8221; does not appear on this list. Then again, I&amp;#8217;m sure it would if this were a top 10 :)&lt;/p&gt;</description>
      <pubDate>Thu, 26 Jun 2008 01:28:40 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:c0ae34ff-ced5-46b1-a5f0-5dca69ee0a2f</guid>
      <link>http://blog.objectmentor.com/articles/2008/06/26/top-refactorings#comment-1859</link>
    </item>
  </channel>
</rss>
