Agile Legacy Code

Primary Menu

Tag: Refactoring

This is part 2 of a series on refactoring, you should also read part one where we introduce refactorings and why you should do it Doing a refactoring in any BIG project can be a frightening experience, you know that Read More …

In this article we will do a short introduction to refactoring. What it is, why you should do it and when. I think that refactoring is an important part of the development cycle and that every programmer should do it. Read More …

After building the Golden Master in the previous iteration we are sure that we wont introduce any bugs during our refactoring phase: we built a safety net that will prevent us form falling into the regression trap. The next refactoring I’m going Read More …

Building a test suite for legacy code can be daunting, so most of us usually approach legacy code in two different ways: If it ain’t broke don’t fix it Refactor without automated tests and hope for the best But there Read More …

If you have been comdamned to work on old, ugly, unmantained and untested code, then you probably feel the urge from time to time to clean up a little bit and make your life easier. Let’s face it, cleaning up some mess in Read More …

Recently I’ve been maintaining a project with poorly written code that, to make it worst, is the core to most of the activities of its users. The project follows the big ball of mud pattern, almost every method is a Read More …

Friday morning. I get to the office some minutes before 9AM to check the e-mail before starting what I thought was going to be a very productive and very relaxing Friday. The release went live that night but for the Read More …

Remember when in the first post of the series I said that we should write the requirements as tests before writing the code that implements it? but why is this important? what’s TDD anyway? As you may have noticed, during the implementation of the requirements Read More …

Picture this, you are working on a brownfield project (hard to picture, right? Is there anything else anymore?). You hate it. It’s a mess, and you would like to clean it, but… There’s always a but. You are afraid, you Read More …