19. November 2008 19:29
Okay, there are two main reasons to refactor. The first is clarity of code. Since we have a working base, we can now concentrate on making our logic readable, breaking major blocks of code into separate methods, as well as possibly change how certain calls work. The second major reason to refactor is for performance or scale. One needs to first realize that scale and performance aren't always the same thing. Scaling is about consistency, where performance is about speed. The two often have the same result, but not always. More...