Hi, My Name Is Travis and I Have OCR

There is just something about my nature, but I can’t look at “sub-optimal” code and not want to start refactoring. It’s gotten so bad lately, I think I have OCR Syndrome: Obsessive Compulsive Refactoring Syndrome. What? You say that’s not a disease?! Well that’s because you don’t suffer from it! ;-)

Of course, it hasn’t helped that my night time reading of late has been Refactoring by Fowler. It’s been a few years since I’ve picked it up and read through it, but the other evening, for some reason, it seemed like a good choice. Nearly every single refactoring listed in there brings to mind some code I’ve seen in the last 6 months in various places. I wonder if it’s considered rude to send a copy of that out as a Christmas present? ;-)

At any rate, it’s reminded exactly how valuable a concept it really is. The other day I was asked by a colleague at SugarCRM what books or websites I frequently referred to when doing performance work so he could pass them on to other developers in the company. I immediately responded with Refactoring. In my opinion, it is ten times easier to make good code run fast, than to take bad code and make it run fast. Of course, you know what they say about opinions…