Software Engineering & Design

How do I turn changing requirements into software that is understandable, testable, maintainable, evolvable and safe to change over time? Not a SOLID recital, not a pattern catalogue, not clean-code slogans.

Your path through Software Engineering & Design

0 of 77 Foundation lessons done
0 of 250 lessons done overall
Start: What Makes Software Hard to Change →

Then follow the stages in order

Each stage builds on the ones before it. Labs and simulators sit right after the lessons they exercise. Open a stage to see its lessons. Full roadmap with goals →

  1. Names, functions and the first two forces: cohesion and coupling0 of 21 lessons done
    1. What Makes Software Hard to ChangeFoundation≈ 10 min
    2. The Cost of ChangeFoundation≈ 10 min
    3. Changeability Is the GoalFoundation≈ 5 min
    4. Local ReasoningFoundation≈ 5 min
    5. NamingFoundation≈ 10 min
    6. Naming and Domain LanguageFoundation≈ 10 min
    7. Units in Names and TypesFoundation≈ 10 min
    8. Boolean ParametersFoundation≈ 10 min
    9. Function DesignFoundation≈ 10 min
    10. Long FunctionsFoundation≈ 10 min
    11. Extract FunctionFoundation≈ 10 min
    12. RenameFoundation≈ 10 min
    13. CommentsFoundation≈ 10 min
    14. CohesionFoundation≈ 10 min
    15. Kinds of CouplingFoundation≈ 15 min
    16. Temporal CouplingFoundation≈ 15 min
    17. Shared-State CouplingFoundation≈ 10 min
    18. Duplicate KnowledgeFoundation≈ 10 min
    19. DRY: Knowledge, Not LinesFoundation≈ 10 min
    20. KISS: Simplest for the Requirements You HaveFoundation≈ 10 min
    21. What a Code Smell IsFoundation≈ 10 min
  2. Responsibilities, module interfaces and state you can see0 of 28 lessons done
    1. The Design LoopFoundation≈ 10 min
    2. Requirements Before DesignFoundation≈ 15 min
    3. Constraints Are Part of the DesignFoundation≈ 15 min
    4. Problem DecompositionFoundation≈ 15 min
    5. Designing by ResponsibilityFoundation≈ 15 min
    6. Single Responsibility, CarefullyFoundation≈ 10 min
    7. Separation of ConcernsFoundation≈ 15 min
    8. EncapsulationFoundation≈ 10 min
    9. Information HidingFoundation≈ 10 min
    10. Designing a Module InterfaceFoundation≈ 10 min
    11. Exposing Too MuchFoundation≈ 10 min
    12. Explicit StateFoundation≈ 15 min
    13. State MachinesFoundation≈ 15 min
    14. Invalid TransitionsFoundation≈ 15 min
    15. Boolean Flag ExplosionFoundation≈ 15 min
    16. State OwnershipFoundation≈ 10 min
    17. Optional Values and AbsenceFoundation≈ 10 min
    18. Making Illegal States UnrepresentableFoundation≈ 15 min
    19. InvariantsFoundation≈ 15 min
    20. Where Invariants LiveFoundation≈ 15 min
    21. Enforcing InvariantsFoundation≈ 15 min
    22. Error ModelingFoundation≈ 15 min
    23. Decomposition by FolderFoundation≈ 10 min
    24. An Error Taxonomy That Survives ContactFoundation≈ 10 min
    25. Result TypesFoundation≈ 10 min
    26. Exceptions, Where They Help and Where They Hide the FlowFoundation≈ 10 min
    27. Error BoundariesFoundation≈ 15 min
    28. Swallowed ErrorsFoundation≈ 15 min
  3. Abstraction, dependency direction, pattern vocabulary and the domain model0 of 28 lessons done
    1. What an Abstraction Actually IsFoundation≈ 10 min
    2. What an Abstraction CostsFoundation≈ 10 min
    3. The Rule of ThreeFoundation≈ 10 min
    4. Leaky AbstractionsFoundation≈ 10 min
    5. Premature AbstractionFoundation≈ 15 min
    6. Choosing the ModelFoundation≈ 15 min
    7. Dependency DirectionFoundation≈ 10 min
    8. Dependency InversionFoundation≈ 15 min
    9. Dependency InjectionFoundation≈ 15 min
    10. Constructor InjectionFoundation≈ 10 min
    11. Volatile DependenciesFoundation≈ 15 min
    12. Wiring and the Composition RootFoundation≈ 15 min
    13. Patterns as VocabularyFoundation≈ 10 min
    14. StrategyFoundation≈ 10 min
    15. FactoryFoundation≈ 10 min
    16. AdapterFoundation≈ 10 min
    17. FacadeFoundation≈ 10 min
    18. Pattern OveruseFoundation≈ 15 min
    19. Domain ModelingFoundation≈ 15 min
    20. Ubiquitous LanguageFoundation≈ 10 min
    21. EntitiesFoundation≈ 10 min
    22. Value ObjectsFoundation≈ 10 min
    23. Service LocatorFoundation≈ 10 min
    24. DecoratorFoundation≈ 10 min
    25. ObserverFoundation≈ 10 min
    26. CommandFoundation≈ 10 min
    27. State PatternFoundation≈ 15 min
    28. Template MethodFoundation≈ 10 min
  4. Refactoring under tests, reading smells, and letting review and testing talk back0 of 26 lessons done
    1. What Refactoring Actually IsIntermediate≈ 10 min
    2. The Refactoring LoopIntermediate≈ 10 min
    3. Extract ModuleIntermediate≈ 10 min
    4. Move ResponsibilityIntermediate≈ 10 min
    5. Replace Conditional With PolymorphismIntermediate≈ 15 min
    6. Introduce Parameter ObjectIntermediate≈ 10 min
    7. God ObjectIntermediate≈ 10 min
    8. Shotgun SurgeryIntermediate≈ 10 min
    9. Divergent ChangeIntermediate≈ 10 min
    10. Feature EnvyIntermediate≈ 10 min
    11. Primitive ObsessionIntermediate≈ 10 min
    12. Long Parameter ListIntermediate≈ 10 min
    13. The Utility Dumping GroundIntermediate≈ 10 min
    14. What Code Review Is ForIntermediate≈ 15 min
    15. A Review Checklist Worth ReadingIntermediate≈ 15 min
    16. Review SizeIntermediate≈ 15 min
    17. Tone, Disagreement and Receiving ReviewIntermediate≈ 15 min
    18. Review as Design Feedback — and Why It Arrives Too LateIntermediate≈ 15 min
    19. Testing as Design FeedbackIntermediate≈ 15 min
    20. What a Unit IsIntermediate≈ 10 min
    21. MockingIntermediate≈ 10 min
    22. Test Doubles, PreciselyIntermediate≈ 10 min
    23. What to Automate Out of ReviewIntermediate≈ 15 min
    24. Where a Test Must Be RealIntermediate≈ 10 min
    25. Contract TestsIntermediate≈ 10 min
    26. Property-Based TestingIntermediate≈ 10 min
  5. Package structure, architecture boundaries and the modular monolith0 of 22 lessons done
    1. Package DesignIntermediate≈ 10 min
    2. Package by LayerIntermediate≈ 10 min
    3. Package by FeatureIntermediate≈ 10 min
    4. Vertical SlicesIntermediate≈ 10 min
    5. Module GranularityIntermediate≈ 15 min
    6. Circular DependenciesIntermediate≈ 10 min
    7. Breaking CyclesIntermediate≈ 15 min
    8. Stable DependenciesIntermediate≈ 10 min
    9. Dependency CyclesIntermediate≈ 10 min
    10. Fan-in and Fan-outIntermediate≈ 10 min
    11. Afferent and Efferent CouplingIntermediate≈ 15 min
    12. Architecture BoundariesIntermediate≈ 15 min
    13. Hexagonal Architecture (Ports and Adapters)Intermediate≈ 10 min
    14. Clean Architecture, and Where It Is OverusedIntermediate≈ 15 min
    15. Onion ArchitectureIntermediate≈ 15 min
    16. Boundary AdaptersIntermediate≈ 15 min
    17. Anti-Corruption LayerIntermediate≈ 15 min
    18. Designing a MonolithIntermediate≈ 15 min
    19. The Modular MonolithIntermediate≈ 10 min
    20. Internal Module ContractsIntermediate≈ 15 min
    21. Shared LibrariesIntermediate≈ 15 min
    22. The Common ModuleIntermediate≈ 15 min
  6. Legacy code, safe migration and debt you can actually account for0 of 21 lessons done
    1. What "Legacy" Actually MeansIntermediate≈ 15 min
    2. Characterization TestsIntermediate≈ 15 min
    3. SeamsIntermediate≈ 15 min
    4. The Legacy Change LoopIntermediate≈ 15 min
    5. Refactoring Without TestsIntermediate≈ 15 min
    6. The Strangler PatternIntermediate≈ 15 min
    7. The Risk in a RewriteIntermediate≈ 15 min
    8. Incremental MigrationIntermediate≈ 15 min
    9. Designing the MigrationIntermediate≈ 15 min
    10. Backward Compatibility as a ConstraintIntermediate≈ 15 min
    11. Versioned InterfacesIntermediate≈ 10 min
    12. Data MigrationIntermediate≈ 15 min
    13. Expand and ContractIntermediate≈ 15 min
    14. Feature Flags and What They CostIntermediate≈ 15 min
    15. What Technical Debt Actually IsIntermediate≈ 10 min
    16. Deliberate DebtIntermediate≈ 10 min
    17. Accidental DebtIntermediate≈ 10 min
    18. Interest: Why Debt CompoundsIntermediate≈ 10 min
    19. The Debt RegisterIntermediate≈ 10 min
    20. Refactor or RewriteIntermediate≈ 15 min
    21. DeprecationIntermediate≈ 15 min
  7. Evolvability, the complexity budget and decisions you write down0 of 24 lessons done
    1. EvolvabilityAdvanced≈ 15 min
    2. Change AmplificationAdvanced≈ 15 min
    3. Encapsulation RadiusAdvanced≈ 10 min
    4. ExtensibilityAdvanced≈ 15 min
    5. Plugin ArchitectureAdvanced≈ 15 min
    6. Stability and Dependency DirectionAdvanced≈ 10 min
    7. Speculative GeneralityAdvanced≈ 15 min
    8. Essential and Accidental ComplexityAdvanced≈ 10 min
    9. Simple Is Not EasyAdvanced≈ 10 min
    10. The Complexity BudgetAdvanced≈ 10 min
    11. YAGNI, With Its Bill AttachedAdvanced≈ 10 min
    12. Over-Design and Under-DesignAdvanced≈ 10 min
    13. Over-DecompositionAdvanced≈ 15 min
    14. The Trade-off MatrixAdvanced≈ 10 min
    15. Decision RecordsAdvanced≈ 10 min
    16. Revisit TriggersAdvanced≈ 10 min
    17. Reversible and Irreversible DecisionsAdvanced≈ 10 min
    18. Build, Library, SaaS or Managed ServiceAdvanced≈ 10 min
    19. Library or FrameworkAdvanced≈ 10 min
    20. What a Framework ChargesAdvanced≈ 10 min
    21. Architecture Decision RecordsAdvanced≈ 10 min
    22. Docs Close to CodeAdvanced≈ 10 min
    23. Types of DocumentationAdvanced≈ 10 min
    24. Documentation DecayAdvanced≈ 10 min
  8. Large refactors, aggregates, and the repository as a design artefact0 of 23 lessons done
    1. Design, Architecture and System DesignAdvanced≈ 5 min
    2. Finding SeamsAdvanced≈ 15 min
    3. Stable BoundariesAdvanced≈ 10 min
    4. Consistency BoundariesAdvanced≈ 15 min
    5. Invariant LeaksAdvanced≈ 15 min
    6. AggregatesAdvanced≈ 10 min
    7. The Aggregate RootAdvanced≈ 10 min
    8. Domain ServicesAdvanced≈ 10 min
    9. The Anemic Domain ModelAdvanced≈ 10 min
    10. Transaction ScriptAdvanced≈ 10 min
    11. When Domain-Driven Design Does Not PayAdvanced≈ 15 min
    12. SOLID, Read HonestlyAdvanced≈ 15 min
    13. Single Responsibility, CriticallyAdvanced≈ 15 min
    14. Liskov Substitution, CriticallyAdvanced≈ 15 min
    15. Interface Segregation, CriticallyAdvanced≈ 10 min
    16. Dependency Inversion, CriticallyAdvanced≈ 15 min
    17. How SOLID Gets MisusedAdvanced≈ 15 min
    18. Repository StructureAdvanced≈ 10 min
    19. Monorepo vs PolyrepoAdvanced≈ 15 min
    20. Code OwnershipAdvanced≈ 10 min
    21. Bus FactorAdvanced≈ 15 min
    22. Design ReviewAdvanced≈ 15 min
    23. Open/Closed, CriticallyAdvanced≈ 15 min
  9. Designing a codebase that many teams change, and modernising one that already exists0 of 35 lessons done
    1. When Design Does Not PayAdvanced≈ 5 min
    2. Requirements Are a SnapshotAdvanced≈ 15 min
    3. The Requirements Nobody StatesAdvanced≈ 15 min
    4. Design for the Known, Name What You AssumedAdvanced≈ 15 min
    5. Dependency ManagementAdvanced≈ 15 min
    6. Do We Need a Package for This?Advanced≈ 15 min
    7. API StabilityAdvanced≈ 10 min
    8. Semantic VersioningAdvanced≈ 15 min
    9. RFCsAdvanced≈ 15 min
    10. Knowledge SharingAdvanced≈ 10 min
    11. Designing a Feature Before Writing ItAdvanced≈ 20 min
    12. A Feature Design TemplateAdvanced≈ 15 min
    13. Failure-Aware Feature DesignAdvanced≈ 15 min
    14. Slicing a FeatureAdvanced≈ 15 min
    15. Designing for FailureAdvanced≈ 10 min
    16. Idempotency by DesignAdvanced≈ 15 min
    17. Partial FailureAdvanced≈ 10 min
    18. What Changes at the Network BoundaryAdvanced≈ 10 min
    19. Debuggability by DesignAdvanced≈ 15 min
    20. Designing a System That Has a Model In ItAdvanced≈ 15 min
    21. The Model Is a DependencyAdvanced≈ 15 min
    22. Where the Probabilistic System EndsAdvanced≈ 15 min
    23. Functional and Non-Functional RequirementsAdvanced≈ 10 min
    24. Designing the Happy Path LastAdvanced≈ 10 min
    25. Logging at BoundariesAdvanced≈ 15 min
    26. Stable IdentifiersAdvanced≈ 15 min
    27. A Deterministic CoreAdvanced≈ 10 min
    28. Time as a DependencyAdvanced≈ 15 min
    29. Randomness as a DependencyAdvanced≈ 15 min
    30. Retries Are a Property of the OperationAdvanced≈ 10 min
    31. Concurrency by DesignAdvanced≈ 10 min
    32. The Thread-Safety ContractAdvanced≈ 10 min
    33. Transitive DependenciesAdvanced≈ 10 min
    34. Business Logic Hiding in a PromptAdvanced≈ 15 min
    35. Designing a Tool InterfaceAdvanced≈ 15 min
The question this domain answers

Good software design controls the cost of change.

That is the whole claim, and it is deliberately falsifiable. Not elegance, not pattern count, not how it reads in a screenshot — the measurable thing a design decides is what the next requirement costs: how many modules move, how many tests move, whether anything has to be migrated, and whether one person can still reason about the result locally. A learner who finishes this hears “add one more feature” and does not reach for a pattern. They ask what changed, which invariant moved, who owns it, and what the change after this one now costs.

The design loop every lesson carries
Requirement→Constraints→Invariants→Responsibilities→Boundaries→Interfaces→State→Dependencies→Failure→Implementation→Tests→Feedback→Evolution

The order is the argument. The requirement and its constraints decide which invariants must hold; the invariants decide where responsibility for protecting them sits, and therefore where the boundaries fall; the boundaries decide what an interface has to say, and therefore what can be tested in isolation. Start in the middle — pick a pattern, draw layers, add a container — and you get a structure that is locally defensible and expensive to change, because nothing in it was derived from something that has to be true.

This is the codebase domain

Software Engineering & Design does not own every layer it touches. It owns the code a team edits every day — and deep-links its neighbours rather than re-teaching them.

Upstream

Software Architecture decides how subsystems are bounded and in what style, and System Design decides how a whole distributed system meets its scale and reliability goals. Both hand down constraints this domain has to live inside — and both leave open the question of how the code *inside* a subsystem is structured so it can change.

Here

The codebase a team edits daily: responsibilities, invariants, interfaces, state, dependencies, changeability. Which of our internal seams deserve to be a contract at all, who owns which data, what testability is telling us about the design, and what the next change costs. No other domain answers that last one.

Downstream

API Design, Backend, Frontend, Database and Security Engineering each own a layer in full, and Testing & Reliability owns confidence and resilience. Lessons here teach the structural decision and hand the rest off by name.

This domain's advice is contested more than any other here. SOLID, Clean Architecture, DDD and “never duplicate” are not settled findings — competent, experienced engineers genuinely disagree about all of them, and presenting a disputed position as consensus is the characteristic way a design curriculum goes wrong. So every claim carries a scope label saying what it is specific to — the paradigm, the language, the team size, the domain complexity, how long the code must live — and where a different context would flip it. Where a lesson is labelled CONTESTED, it states the strongest form of the opposing view, not a caricature of it. If it cannot, it does not understand the argument well enough to teach it.

Flagship experiences

The parts of this domain that are not reading.

Change Impact Explorer →

Pick a requirement change and see which modules, tests and deployments move — under a god-object design and a bounded one, side by side. The model is honest: a good design does not make every change cheap, it makes the *anticipated* ones cheap.

Follow a Requirement →

"Add Pause Subscription" from requirement through domain rule, state machine, contract, application logic, persistence, events, tests, migration and observability. Every step has a "go one layer deeper".

Responsibility Map →

Pick a unit; see what it knows, what it does, what it depends on, and every distinct reason it has to change. More than one or two reasons is the finding.

State Machine Lab →

Build order, payment and deployment lifecycles — then the lab checks which transitions you left reachable that should have been impossible to express.

Refactoring Lab →

Messy code, a menu of moves, and the coupling consequence of each — including the moves that make it worse while looking like progress.

Legacy Lab →

Change billing in a decade-old service with no tests: observe, characterize, find the seam, refactor, change, verify. Legacy means unprotected, not old.

Feature Design Lab →

States, rules, contract, persistence, errors, migration and tests defined *before* the first line of implementation — and what fails when each field is skipped.

Design Review Simulator →

A proposed design. Find the unclear ownership, the hidden state, the unsafe migration, the abstraction nobody needed and the failure nobody handled.

How Should I Structure This Code? →

A decision tree, plus refactor versus rewrite. Every leaf names why, what it costs, the simpler thing to try first, and how the recommended design itself fails.

Capstone: evolvable billing, legacy modernization →

Design a SaaS billing system, then absorb change requests one at a time — and modernize a system whose behaviour nobody can fully state.

Practice challenges →

Four levels, with the cause unlabelled. Each one carries the trap: the fix that looks right, passes review, and leaves the real design problem in place.

Interview guide →

What each question is really testing, what a strong answer sounds like, and the red flags that separate a recited acronym from a working model.

Learning modules

Thirty-eight modules, from what actually makes software hard to change to designing systems whose most unpredictable dependency is a model.

250 lessons →
Engineering Fundamentals7

What actually makes software hard to change, and why the cost of the next change — not elegance, not pattern count — is the thing design is optimising.

Requirements6

Design starts from what must be true, not from choosing a pattern. Functional and non-functional requirements, and the constraints a valid design cannot ignore.

Invariants5

The things that must never stop being true, and the engineering question that follows: which layer is actually responsible for protecting each one.

Problem Decomposition7

Splitting a problem by responsibility rather than by folder name — and the single-responsibility idea stated as "a coherent reason to change" rather than "one thing".

Abstraction6

An abstraction hides detail behind a useful model, and charges indirection, vocabulary and leakage for it. When to pay, and when duplication is cheaper.

Encapsulation & Information Hiding5

Keeping implementation behind stable boundaries, and the sharper idea underneath it: hide the decisions most likely to change.

Cohesion & Coupling7

The five kinds of coupling that actually differ in cost, why cohesion is the other half of the same question, and how fan-in, fan-out and cycles show up in a real dependency graph.

Dependency Design7

Direction, inversion and injection — taught as three different ideas rather than one, because conflating them is how teams end up with a container and no boundaries.

SOLID, Critically7

Each principle by the problem it addresses, a real example, a real misuse and a counterexample. Useful heuristics, not laws, and the difference matters.

Composition & Inheritance5

Why composition avoids rigid hierarchies, when inheritance genuinely earns its place, and polymorphism as a response to variation that is actually there.

Design Patterns11

Each pattern as a response to an observed problem, with its trade-off and its simpler alternative — because a pattern applied without the problem is just indirection.

Domain Modeling10

Entities, value objects, aggregates and services — plus the honest question of whether a rich domain model earns its cost over a transaction script for the system in front of you.

State & State Machines7

Making lifecycle explicit, so that invalid transitions become impossible to express rather than merely undesirable — and boolean-flag explosion becomes visible.

Error Modeling6

Failure as part of the design: separating expected business failure from validation, dependency failure and outright bugs, and choosing how each is expressed in types.

Side Effects & Immutability7

Pure computation versus I/O and mutation, the functional-core / imperative-shell split, and what immutability buys and costs.

Naming & Function Design6

Names are the API you present to every future reader. Units, roles, side effects — and function design judged by responsibility rather than line count.

Documentation5

Comments that explain why, decision records that survive the author, and the failure mode nobody plans for: documentation that has quietly become wrong.

Code Review6

What review is actually for once tooling handles formatting, what a useful checklist asks, and why review size predicts defect detection better than reviewer skill.

Refactoring9

Changing internal structure without changing observable behaviour — as a disciplined loop with a safety net, not a rewrite that someone called a refactor.

Code Smells9

Heuristics that point at a possible design problem, each with the case where it is genuinely fine — because a smell is a question, not a verdict.

Technical Debt5

A choice that raises the cost of future change. Deliberate and bounded is a strategy; accidental and unnamed is the thing that compounds.

Legacy Code7

Code that is risky to change because its behaviour is poorly understood or weakly protected — and the characterization-test, seam, small-step loop that makes it safe.

Migration & Compatibility6

Every change to a running system has an initial state, a transition state, a final state and a way back. Backward compatibility, versioning and data migration.

Evolvability7

Change amplification, local reasoning and encapsulation radius — the properties that decide whether the tenth change is as cheap as the first.

Module & Package Structure8

Grouping by feature or by layer, what each does to change locality, and why cycles are a reasoning problem before they are a build problem.

Architecture Boundaries6

Layered, hexagonal, clean and onion compared honestly — plus adapters and anti-corruption layers, which are the part that survives whichever style you pick.

Monolith & Modular Monolith5

A monolith can be well designed, and usually should be tried first. Internal module contracts, shared libraries, and the `common/` folder as a design failure.

Feature Design5

The work that happens before the first line: goal, rules, state changes, interfaces, persistence, errors, observability, tests — and what fails if you skip it.

Debuggability by Design6

A system that can answer what happened, why, for whom, on which version. Stable ids, deterministic cores, and time and randomness as injected dependencies.

Testing as Design Feedback7

Hard-to-test code is usually telling you something about its dependencies. Where to put the boundary, what to double, and when mocks start mirroring implementation.

Designing for Failure7

What a design owes once calls can time out, repeat or half-succeed — including idempotency as a property chosen up front rather than retrofitted.

Designing for Security5

Trust boundaries, least privilege and capability-passing as design decisions in the code, distinct from the attacker techniques Security Engineering teaches.

Designing for Cost5

Interfaces that hide what they cost — the repository call that loads a million rows, the N+1 that is an API-shape failure before it is a query failure.

Complexity7

Essential versus accidental, simple versus easy, and the maxims — DRY, YAGNI, KISS — restated so they say something falsifiable.

Engineering Decisions8

Trade-off matrices, decision records with revisit triggers, refactor versus rewrite, build versus buy, and what a framework charges for what it gives.

Dependency Management6

Direct and transitive dependencies, update risk, API stability, versioning as a communication convention, and deprecation as a lifecycle rather than a deletion.

Repository & Team Structure7

How a repository is laid out, monorepo against polyrepo, ownership without silos, and the design reviews and RFCs that stop decisions living in one head.

Designing Agentic Systems5

Treating a model as an external dependency that is non-deterministic, fallible and costly — and keeping the invariants in code the moment they have to hold.

Reference

For when you already know roughly what you are looking for.

Don't delegate understanding

The point of the domain, stated plainly.

Frameworks
hide lifecycle
Patterns
hide trade-offs
ORMs
hide persistence
Dependency injection
hides wiring
Architecture templates
hide assumptions
AI coding tools
hide design decisions

Use all of them. Every one is worth using, and rebuilding them by hand is not the lesson. But know what owns the state, what protects the invariant, what depends on what and in which direction, and how the system changes tomorrow — because when one of these abstractions leaks, and each leaks in a characteristic way, you want to be debugging a system you have a model of rather than one you have been trusting.