Darren Lewis bio photo

Darren Lewis

Professional Nerd

Twitter GitHub StackOverflow

I was asked an interesting question today. What is refactoring?

Such a simple question that so many people can answer. However, it’s one of those questions that will elicit 11 different answers from 10 different people. So, here’s my definition for the 12th:

“Take an existing piece of code THAT WORKS and where necessary make it testable, extensible and supportable. Do this in such a way that you end up with code THAT WORKS.”