Software Design Principles and Patterns with AI
Apply layers and classic patterns in a small Node.js and Express app while reviewing code an AI assistant wrote: spot code in the wrong layer, push back on needless abstraction, choose patterns that earn their place, and refactor safely behind tests.
- Intermediate level
- 4 modules
- 10 lessons
- 50 quiz questions
Syllabus
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
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
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
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