Why this matters
- Growing switches — detailed pointwise breakdown in the section below.
- Strategy as OCP — detailed pointwise breakdown in the section below.
- Plugin registries — detailed pointwise breakdown in the section below.
- Trade-offs — detailed pointwise breakdown in the section below.
- SOLID is scored as refactor skill, not acronym recall.
Creational
Factorychoose implementation
Builderstep-by-step assembly
Structural
Decoratorstack behaviour
Facadesimple entry point
Behavioral
Strategyswap algorithm
Observernotify subscribers
Statebehaviour by mode
Overview
Add behaviour with new types, not edited conditionals. Study each section below in order — every list is interview-ready reference material.
Growing switches
Points to cover
- Definition — what Growing switches means in one clear sentence
- When to use — the force or smell that triggers this concept
- CampusOS example — where this appears in parking, booking, or library modules
- How to explain — pointwise bullets you can say aloud in an interview
- Common mistake — what weak candidates do instead
- Refactor move — one concrete change that improves the design
The rest of this guide is part of Pro
Free covers every fresher guide in full. Pro unlocks Senior, Staff and Architect guides across every track.
Still to come · 3 sections
- Strategy as OCP
- Plugin registries
- Trade-offs
Test yourself
Answer these before moving on — recall is what makes it stick.