My grandmother started walking five miles a day when she was sixty. She's ninety-seven now, and we don't know where the heck she is.
– Ellen DeGeneres
Design 2 – Refactoring
Refactor: not because you know the abstraction, but because you want to find it.
– Martin Fowler
Refactoring, for me, used to mean something like, "Let me bring the bulldozer and fix all this code." I remember spending nights breaking everything apart, changing the design, and then bringing it all together again. In this process, I would easily have hundreds of tests failing while I was changing the design. This was what I called refactoring. Then, one day, I read a tweet saying something like, "Refactoring is about changing the design ...