Architectural Patterns
Principle | Code Smell | Design Pattern |
---|---|---|
Single Responsibility | Large Class and other bloaters | Bridge or other structural patterns |
Open/Closed | Switch Statement | Strategy or other behavioral patterns |
Liskov Substitution | Refused Bequest | Chain of Responsibility |
Interface Segregation | Alternative Classes with Different Interfaces | Adapter or other structural patterns |
Dependency Inversion | Inappropriate Intimacy | Visitor |
Original Robert C. Martin article.