Martin Fowler's Refactoring (1999) is a landmark book for software engineering. It is a catalog of techniques for cleaning up code. Unfortunately, this remarkable book is tarnished by some frivolous names chosen for its list of "refactoring smells" (anti-patterns). Unlike the memorable pattern names from that other luminous book Design Patterns (1995) – Singleton, Observer, Visitor, etc. – the anti-pattern names in Refactoring sometimes degenerate into the ludicrous: Feature Envy, Inappropriate Intimacy, Primitive Obsession, Speculative Generality, ...| Old Name | New Name |
|---|---|
| Alternative Classes with Different Interfaces | Heterogeneous Interfaces |
| Comments | |
| Data Class | |
| Data Clumps | |
| Divergent Change | Schizophrenic Class |
| Duplicated Code | |
| Feature Envy | Satellite Method |
| Inappropriate Intimacy | Internal Access |
| Incomplete Library Class | |
| Large Class | |
| Lazy Class | Small Class |
| Long Method | |
| Long Parameter List | |
| Message Chains | Temporary Variables |
| Middle Man | Overdelegation |
| Parallel Inheritance Hierarchies | |
| Primitive Obsession | Procedural Code |
| Refused Bequest | Weak Inheritance |
| Shotgun Surgery | ? |
| Speculative Generality | Overdesign |
| Switch Statements | |
| Temporary Field |
Views: 160
Tags:
© 2025 Created by Ning Developer Admin.
Powered by
You need to be a member of Ning Developer Docs to add comments!
Join Ning Developer Docs