cppgent0@gmail.com Phone: (858) 245-6450

Refactoring

Some Ideas on Refactoring Legacy Code This are some notes about refactoring legacy code that I’ve come up with from my own experiences doing the same. I do not claim it is in line with the “official” XP doctrine on refactoring. Any errors, idiosyncracies and other perturbations are strictly attributable to me. Why am I […]

Read More »

Refactoring Legacy Code

Check out: http://www.amazon.com/Working-Effectively-Legacy-Michael-Feathers/dp/0131177052. The Feathers book is very good. Here are some additional strategies to consider. You will use two basic refactorings: Extract Method and Extract Class. You will use Extract Method most of the time, but that’s just a stepping stone to the real big-bang-for-buck workhorse, Extract Class. The basic thing to realize is that […]

Read More »

Refactoring, OO and Tools

The refactoring yahoo group recently had a series of posts regarding OO and tools. As originally defined, refactoring is not an isolated activity. It fits into an overall development sequence to allow good, fast and flexible solutions, followed by a slow, deliberate, reasoned task to clean up the design and implementation. More specifically: 1) get […]

Read More »

Refactoring, an Analogy

Refactoring has nothing to do with tools (although they help speed things up). And refactoring has little to do with renaming variables (although that is one technique used). Take a polynomial x**2 -1 and it factors out to (x-1)(x+1). Clearly you can evaluate x**2-1, just as easily as you can evaluate (x-1)(x+1). But from one […]

Read More »