Primož Hadalin / Essays

Quotes by Martin Fowler

Nov 14, 2023

Martin Fowler is the author of Refactoring. I like this book because Martin is good with words. Here are some of my favorite quotes of his.

Whenever I have to think to understand what the code is doing, I ask myself if I can refactor the code to make that understanding more immediately apparent.

If you can get today’s work done today, but you do it in such a way that you can’t possibly get tomorrow’s work done tomorrow, then you lose.

When you find you have to add a feature to a program, and the program’s code is not structured in a convenient way to add the feature, first refactor the program to make it easy to add the feature, then add the feature.

Other than when you are very close to a deadline, however, you should not put off refactoring because you haven’t got time. Experience with several projects has shown that a bout of refactoring results in increased productivity. Not having enough time usually is a sign that you need to do some refactoring.

In almost all cases, I’m opposed to setting aside time for refactoring. In my view refactoring is not an activity you set aside time to do. Refactoring is something you do all the time in little bursts.

A statement Kent Beck often makes about himself, “I’m not a great programmer; I’m just a good programmer with great habits”.

HackerNews ~ Medium