All 5 recommendations
Est. prices as of Dec 23, 2025
#1 ยท Robert Martin
Single Responsibility Principle
$0
One class, one job - but everyone makes Swiss Army knife classes
- โ Easy to understand
- โ Reduces coupling
- โ Improves testability
- โ Can lead to class explosion
- โ Sometimes hard to define single responsibility
#2 ยท Bertrand Meyer
Open/Closed Principle
$0
Open for extension, closed for modification - yet we all modify existing code
- โ Prevents breaking existing functionality
- โ Encourages abstraction
- โ Supports polymorphism
- โ Requires upfront design thinking
- โ Can create over-abstracted code
#3 ยท Robert Martin
Dependency Inversion Principle
$0
Depend on abstractions, not concretions - but concrete dependencies are everywhere
- โ Improves flexibility
- โ Enables dependency injection
- โ Reduces tight coupling
- โ Adds complexity
- โ Requires understanding of abstractions
#4 ยท Robert Martin
Interface Segregation Principle
$0
Many specific interfaces beat one general interface - yet fat interfaces persist
- โ Prevents interface pollution
- โ Improves cohesion
- โ Reduces unnecessary dependencies
- โ Can create many small interfaces
- โ May seem over-engineered for simple cases
#5 ยท Barbara Liskov
Liskov Substitution Principle
$0
Subtypes must be substitutable for base types - but inheritance hierarchies often break this
- โ Ensures proper inheritance
- โ Maintains polymorphic behavior
- โ Prevents unexpected side effects
- โ Most abstract to understand
- โ Easy to violate without realizing
- โ Requires careful design