Each SOLID principle from the problem it solves. SRP's 'one reason to change' (not one method), OCP's extension without modification, LSP's behavioural subtyping and the Square-Rectangle failure, ISP's fat interface victims, DIP's abstraction layer, and a full before/after refactoring case study.
// Lessons
- 01soon
Why Principles? — What Makes Code Hard to Change
- 02soon
Single Responsibility — One Reason to Change (Not One Method)
- 03soon
Open/Closed — Extending Without Modifying
- 04soon
Liskov Substitution — Behavioural Subtyping and the Square-Rectangle
- 05soon
Interface Segregation — Fat Interfaces and Their Victims
- 06soon
Dependency Inversion — Depending on Abstractions, Not Concretions
- 07soon
SOLID in Spring — How the Framework Embodies All Five Principles
- 08soon
Refactoring to SOLID — A Before/After Case Study