Click a node for articles · drag to pan · scroll to zoom
Outline · 32 nodes
- Software Design — Design assigns responsibilities so code communicates intent and remains changeable.
- Responsibilities — Clear responsibility keeps behavior close to the data and reason it changes.
- Single purpose — A focused unit has fewer reasons to change and is easier to test.
- Information hiding — Hidden implementation details let callers depend on stable behavior.
- Cohesion — Cohesive code keeps things that change for the same reason together.
- Dependencies — Dependency direction determines how easily a design can be replaced or tested.
- Dependency inversion — High-level policy should not depend directly on replaceable details.
- Explicit seams — A seam gives tests and integrations a deliberate point of substitution.
- Stable abstractions — Stable abstractions protect callers from volatile implementation choices.
- Collaboration — Collaborating objects coordinate through messages with clear ownership. Open map ↗
- Domain objects — Domain objects protect business rules close to the concepts they govern.
- Commands — A command expresses an intention to change something.
- Events — An event records a fact that other parts may react to.
- Simplicity — Simplicity removes accidental complexity while preserving important behavior. Open map ↗
- Remove duplication — Remove duplication when it represents the same knowledge changing together.
- Prefer clarity — Clear code makes the next change safer than clever code does.
- Delay generalisation — Waiting for a second real use avoids abstractions built on guesses.
- Testing seams — Design seams make behavior observable without requiring a full production environment. Open map ↗
- Fakes — A fake provides a lightweight working substitute for a dependency.
- Contract checks — Contract checks protect assumptions shared across a boundary.
- Property tests — Property tests explore broad input spaces through general invariants.
- Test data — Intentional test data makes edge cases and expected behavior obvious.
- Domain modeling — Domain modeling gives the code a vocabulary that matches the problem. Open map ↗
- Entities — Entities keep identity when their other attributes change.
- Value objects — Value objects group validated values without needing identity.
- Invariants — Invariants state what must always remain true.
- Ubiquitous language — Shared language reduces translation between domain experts and engineers.
- Architecture fit — Local design choices should support larger boundaries and quality goals. Open map ↗
- Module boundary — A module boundary limits the knowledge one part needs about another.
- Coupling budget — A coupling budget makes dependency growth a visible design cost.
- Quality trade-off — Quality trade-offs explain why a design is fit for its context.
- Change vector — A change vector identifies which decisions are likely to move together.
- Responsibilities — Clear responsibility keeps behavior close to the data and reason it changes.