Software Architecture · Design Principles
SOLID Principles in Practice
Five heuristics for maintainable object-oriented code.
1 min readPublished Updated
- solid
- design
SOLID is a set of five design heuristics for maintainable object-oriented code.
ts
interface PaymentProcessor {
charge(amountCents: number): Promise<void>;
}- Single responsibility
- Open/closed
- Liskov substitution
- Interface segregation
- Dependency inversion