Software-Design
13 Thoughts filed under this subject.
- A Constructor Should Leave a Usable Object
- A Null Object Should Mean Nothing Happened
- The Law of Demeter Is About Knowledge, Not Dots
- Tell, Don't Ask Means Keep the Decision with the State
- Strategy Chooses How; Command Records What to Do
- Composition Over Inheritance Is a Decision, Not a Rule
- Dependency Inversion Lets Policy Own the Boundary
- Interfaces Belong to Their Clients
- Substitution Is a Behavioral Contract
- Open–Closed Protects Stable Policy from Repeated Variation
- Single Responsibility Is About Change, Not Class Size