Welcome to Design Patterns
See what patterns are and what you'll build, set up your language, and meet the idea the whole course rests on: a pattern is a recipe with a name.
Updated
Start Here
- What You Can Build with Design Patterns (Novice): Code that works is only the start: this course builds five small apps, a bakery, a package tracker, a smart home, a library's web API and an old gym system, and changes each one the way real apps change, so you learn the fixes that keep code ready for the next change.
- How This Course Works (Novice): How Design Patterns, Demystified works on ask-codey.com: the passes, the same shape every pattern lesson follows and its pattern card, the language tabs, exercises written as tickets with tests that say Keep this working and Not yet, and how chapter checks, module assessments, Covered and Mastered fit together.
Your Tools
- Setup: VS Code and Your Language (Novice): Install VS Code and the tools for the language you'll use in this course, on Windows or macOS, make a course folder, and run your first one-file program from VS Code's terminal.
- Running the Exercise Tests (Novice): What an exercise's tests are, how to run them in your language with one command, and how to read a red run and a green one, including the "Not yet" message that says what to fix.
Patterns Are Everywhere
- You Already Use Patterns (Novice): Four everyday things, a car's start button, a back-in-stock text, a coin sorter and a camera's shooting modes, each solve a problem that software has too, and the fixes they use are four of the design patterns this course teaches.
- A Recipe with a Name (Novice): A design pattern has four parts, a name, a problem, a solution and its consequences, like a recipe card; this lesson shows where patterns came from (an architect's book, then the 1994 book of 23 patterns in three families) and why a pattern is a shared word, not a library you install.
Exercise: Green Before, Green After
- Exercise: Green Before, Green After (Novice): Take your first ticket from Sunrise Bakery: a receipt printer that needs the subtotal and tax on their own, and delivery from Monday. Change the working checkout code in small, safe steps (rename, pull a method out, add the rule), running the tests after every one.