SOLID in one page
medium 45 minFive principles for classes that can be changed without fear: single responsibility, open/closed, Liskov substitution, interface segregation and dependency inversion.
Watch lesson5:16
What each level should show
The same question is judged differently for mid, senior and staff.
Junior
Must show
- Explains each letter with a small example
- Splits rules, storage and mail
- Uses an interface for two kinds
Will be probed on
- SRP or ISP?
- DIP or DI?
Stands out
Asks what is expected to change.
Mid
Must show
- Names the contract, also its unwritten parts
- Turns the arrow at one border
- Explains Square and Rectangle by promises
Will be probed on
- When not?
- Optional operations
Stands out
Prefers the smallest seam that works.
Senior
Must show
- Contract tests for all kinds
- Wrappers for retry and fallback
- Decides when letters disagree
Will be probed on
- Failure in the middle
- Tenth implementation
Stands out
Removes an abstraction, with the count that justifies it.
Staff
Must show
- Same questions for packages and services
- Compatibility as substitution
- Checks in the build
Will be probed on
- Who owns the contract?
- Migration of many consumers
Stands out
Measures files per change instead of rules obeyed.