Syllabus

  1. 01Layers and ResponsibilitiesSplit a small Express app into presentation, business and data layers, decide which checks belong where, and see how errors cross layer boundaries.2 lessons
    1. 01Three Layers, Three Jobs
    2. 02Where a Check Belongs
  2. 02Reviewing AI-Generated CodeReview a generated change layer by layer, catch rules that leak or get copied, and push back on abstractions nobody asked for.2 lessons
    1. 01Reviewing a Diff for Boundary Leaks
    2. 02When the Assistant Over-Designs
  3. 03Patterns Within LayersUse Repository and Adapter at the data edge, Strategy for rules that really vary, Observer for reactions, and decorators and middleware for cross-cutting behavior, judging each AI suggestion by what it buys.4 lessons
    1. 01Repository and Adapter at the Data Edge
    2. 02Strategy When a Rule Gets a Second Version
    3. 03Observer: Reacting Without Knowing Who Listens
    4. 04Decorators and Middleware for Cross-Cutting Code
  4. 04Refactoring with Trade-offsPin down current behavior with tests before an assistant refactors, run those tests against its diff, then audit a small app and decide what to fix now, ticket for later or leave alone.2 lessons
    1. 01Pin the Behavior Before the Refactor
    2. 02Audit, Then Decide: Fix, Ticket or Leave