Low-level design
Design principles
Cohesion, DRY, Demeter. 3 lessons where the diagrams draw themselves, one class and one message at a time, with the theory and the code beside them.
- 3 lessons
- Animated diagrams
Sign in with Google or GitHub and you land straight on this page. DSA comes with the all labs plan and every ChaiCode batch.
Design principles
In this module
- Aim for HIGH cohesion (a class’s parts belong together) and LOW coupling (classes barely depend on each other). It’s the master dial behind every other principle.
- Three everyday rules that keep designs lean: Don’t Repeat Yourself, Keep It Simple, You Aren’t Gonna Need It.
- Only talk to your immediate friends. A method should call methods on itself, its parameters, objects it creates, and its direct fields, not reach through a chain of strangers.
More low-level design
Start Design principles
Sign in and the first lesson opens with its diagram ready to play.
DSA comes with the all labs plan and every ChaiCode batch.