Archives for December, 2012

Let sleeping dogs lie: the political issues with refactoring

I was recently reading some of our project’s code before adding in a new feature. As is typically the case, I felt the burning desire to make the existing code easier to understand. However, refactoring code without a specific purpose can be a controversial topic. Here’s my take: generally speaking, it’s a Good Thing to [...]

Refactoring as you go makes it hard to identify the important changes

I’ve always been a big fan of improving code as I read it (though this opinion is controversial). This typically happens when I’m trying to understand some code I’ve never seen before (or code that I’ve written long enough ago to have forgotten it). If I see an opportunity to simplify or clarify the code, [...]