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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.