﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Stephen commented on A good refactoring session is…</title><description>So you didn't just randomly comment lines out and cross your fingers when hitting compile?
  
  
I remember going from a prototype to a 'v0.1' the code was about a fifth the size, was faster, easier to program against and was far more extensible..
  
  
I don't think thats so uncommon for a prototype to be 'obese' but it was really nice that its evolution was so much smaller and yet tons better.
  
  
(usual day for a dev right? I always enjoy that feeling anyway, I do a lap around the office for high fives borat style).
</description><link>http://ayende.com/4036/a-good-refactoring-session-is#comment13</link><guid>http://ayende.com/4036/a-good-refactoring-session-is#comment13</guid><pubDate>Thu, 28 May 2009 12:21:09 GMT</pubDate></item><item><title>Jeremy Wiebe commented on A good refactoring session is…</title><description>Ah, so the refactoring was geting SqlStatement to be more focused. I'm always a big fan of those types of refactorings.  :-)
</description><link>http://ayende.com/4036/a-good-refactoring-session-is#comment12</link><guid>http://ayende.com/4036/a-good-refactoring-session-is#comment12</guid><pubDate>Thu, 28 May 2009 12:14:56 GMT</pubDate></item><item><title>Ayende Rahien commented on A good refactoring session is…</title><description>Ian,
  
Almost, it is called SqlStatementProcessor, and it is a command object
</description><link>http://ayende.com/4036/a-good-refactoring-session-is#comment11</link><guid>http://ayende.com/4036/a-good-refactoring-session-is#comment11</guid><pubDate>Thu, 28 May 2009 12:06:21 GMT</pubDate></item><item><title>Ayende Rahien commented on A good refactoring session is…</title><description>Jeremy,
  
I create a separate class for handling that
</description><link>http://ayende.com/4036/a-good-refactoring-session-is#comment10</link><guid>http://ayende.com/4036/a-good-refactoring-session-is#comment10</guid><pubDate>Thu, 28 May 2009 12:05:13 GMT</pubDate></item><item><title>Ian Nelson commented on A good refactoring session is…</title><description>Admit it Ayende, you moved 300+ lines of code to static methods in a SqlStatementHelper class? ;-)
</description><link>http://ayende.com/4036/a-good-refactoring-session-is#comment9</link><guid>http://ayende.com/4036/a-good-refactoring-session-is#comment9</guid><pubDate>Thu, 28 May 2009 09:50:34 GMT</pubDate></item><item><title>Erik van Brakel commented on A good refactoring session is…</title><description>@configurator:
  
Sometimes, putting stuff on one line makes the whole more readable. I often use that with properties, to cut down on the curly-braces-porn that's going on in there:
  
  
public string Whatever { get { return whatever; } set { whatever = value; } }
  
public string Whenever { get { return whenever; } set { whenever = value; } }
  
public string However { get { return however; } set { however = value; } }
  
  
Or, if you don't like it like that:
  
  
public string Whatever
  
{
  
  get { return whatever; }
  
  set { whatever = value; } 
  
}
  
  
En then continue using proper spacing in the rest of the code. Those properties are SO obvious that you don't really need to space it out over 8 lines. 
  
  
Either way, I don't think Ayende just removed whitespace, else he wouldn't be so happy with it ;-)
</description><link>http://ayende.com/4036/a-good-refactoring-session-is#comment8</link><guid>http://ayende.com/4036/a-good-refactoring-session-is#comment8</guid><pubDate>Thu, 28 May 2009 08:53:53 GMT</pubDate></item><item><title>Jeremy Wiebe commented on A good refactoring session is…</title><description>So did some of the functionality move to other classes or were you really able to remove ~300 lines and maintain similar functionality?
</description><link>http://ayende.com/4036/a-good-refactoring-session-is#comment7</link><guid>http://ayende.com/4036/a-good-refactoring-session-is#comment7</guid><pubDate>Thu, 28 May 2009 05:00:01 GMT</pubDate></item><item><title>configurator commented on A good refactoring session is…</title><description>Clearly this:
  
class SqlStatement { public string Whatever { get { return whatever; } set { whatever = value; } } private string whatever; ... }
  
is much better than this:
  
class SqlStatement {
  
   public string Whatever {
  
      get {
  
         return whatever;
  
      }
  
      set {
  
         whatever = value;
  
      }
  
   }
  
   private string whatever;
  
   ...
  
}
  
  
</description><link>http://ayende.com/4036/a-good-refactoring-session-is#comment6</link><guid>http://ayende.com/4036/a-good-refactoring-session-is#comment6</guid><pubDate>Thu, 28 May 2009 00:04:08 GMT</pubDate></item><item><title>Gloubidou commented on A good refactoring session is…</title><description>YUICompressor for CSharp :-)
</description><link>http://ayende.com/4036/a-good-refactoring-session-is#comment5</link><guid>http://ayende.com/4036/a-good-refactoring-session-is#comment5</guid><pubDate>Wed, 27 May 2009 21:22:26 GMT</pubDate></item><item><title>Kelly Stuard commented on A good refactoring session is…</title><description>Oh, and there was a &lt;/sarcasm&gt; tag at the end of the first post; but I guess it got eaten.
</description><link>http://ayende.com/4036/a-good-refactoring-session-is#comment4</link><guid>http://ayende.com/4036/a-good-refactoring-session-is#comment4</guid><pubDate>Wed, 27 May 2009 21:21:49 GMT</pubDate></item><item><title>Kelly Stuard commented on A good refactoring session is…</title><description>BTW: not liking that I have to fire up an alternate browser to IE8 to post comments - not even compat mode works
</description><link>http://ayende.com/4036/a-good-refactoring-session-is#comment3</link><guid>http://ayende.com/4036/a-good-refactoring-session-is#comment3</guid><pubDate>Wed, 27 May 2009 21:19:56 GMT</pubDate></item><item><title>Kelly Stuard commented on A good refactoring session is…</title><description>So obviously that means it does 30% less now. Or that you put 30% of the code on one line. Oh, I know ... the curley braces are no longer on their own line! Because, of course, there is no way to get rid of or refactor code. 
</description><link>http://ayende.com/4036/a-good-refactoring-session-is#comment2</link><guid>http://ayende.com/4036/a-good-refactoring-session-is#comment2</guid><pubDate>Wed, 27 May 2009 21:19:43 GMT</pubDate></item><item><title>Frank Quednau commented on A good refactoring session is…</title><description>I tend to say that the best line of code is the one you never wrote, but this is the next best thing.
</description><link>http://ayende.com/4036/a-good-refactoring-session-is#comment1</link><guid>http://ayende.com/4036/a-good-refactoring-session-is#comment1</guid><pubDate>Wed, 27 May 2009 21:09:49 GMT</pubDate></item></channel></rss>