← Back to Practice
Practice · SOLID
Drill the design judgment
Ten cards, two per principle. Each one shows code or a scenario that violates the principle in a recognizable shape. Form your read, then reveal the breakdown.
Card 1
SRP — Spot the responsibilities in this controller
Card 2
OCP — Adding a third payment type
Card 3
LSP — Why this subclass breaks callers
Card 4
ISP — Cost of including a big concern everywhere
Card 5
DIP — Why is this class hard to test?
Card 6
SRP — Where does this query belong?
Card 7
OCP — Adding a status touches how many files?
Card 8
LSP — Two exporters with different shapes
Card 9
ISP — Why does this method take a whole User?
Card 10
DIP — Why is the test flaky at midnight?
Want the theory? The full 19-lesson SOLID series lives at SOLID, with several lessons per principle anchored in real OSS Rails code.
← Back to Practice Practice · SOLID · 10 cards