Chapter 11. Refactoring web applications
This chapter covers:
You can’t know a town, neighborhood, or landscape well until you’ve been around it. You need to explore it to the point where most places are familiar to you. That means roaming most of the roads and streets. Just traversing it a couple of times is not enough.
You learn more if you’re on foot or on a bicycle. Traveling by car, even if you’re driving, you might forget where the slopes or even hills are located. When you’re foot-powered, you’re likely to remember the exact ups and downs.
A software design is a landscape of possibilities. If you take the time to explore them, you’re likely to learn something new every time.
In the real world, there is limited time for this. But refactoring opens up an opportunity. The obvious benefits of refactoring are improving the design and preventing it from deteriorating as a result of changes. The less obvious benefit is to allow us to explore and see the effect of different design approaches.