Chapter 1. Smells and Refactorings

The smells (along with the refactorings commonly used to fix them) from Martin Fowler's book Refactoring are listed in Table I-1, and the refactorings are listed in Table I-2.

INTERLUDE I1.1

Tally. Put a tally mark by each refactoring for each time a smell references it.

INTERLUDE I1.2

Refactorings that Fix the Most Smells. Which refactorings fix the most smells?

▪ See Appendix A for solution.

INTERLUDE I1.3

Refactorings Not Mentioned. Which refactorings aren't mentioned by any of the smells? Why not?

▪ See Appendix A for solutions.

INTERLUDE I1.4

Other Smells. Does this list suggest any other smells you might want to be aware of?

▪ See Appendix A for solutions.

Table I.1. Smells and Their Associated Refactorings (from Fowler's ...

Get Refactoring Workbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.