To Really Improve Your System You Can’t Refactor I firmly believe in constantly improving my code and I see a difference in quality because of that. Seemingly this would put me firmly in the refactoring camp. But it doesn’t. Why? Refactoring says you can’t break interfaces. That puts me in an awkward position.

Refactoring is all about improving your code and making sure your tests still pass along the way. There could be no single method that works equaly good for everyone and in every situation, though. I once was refactoring the library and at some point just realized that it’s going to take far less time if I just rewrote it. And so I did, and the resulting code was only 20% as big and it was all new code. But I still call it refactoring! Because even though I was writing a new code, I still had the existing tests to pass.

October 24, 2005 |

Comments Section

Feel free to comment on the post but keep it clean and on topic.

comments powered by Disqus

About Me

George Sudarkoff Climber of rocks, maker of things, husband of wife and father of kids. Manage DevOps @SurveyMonkey. Views are my own, but damn they are good views!