Design Patterns
Recognize recurring design problems and apply, or deliberately avoid, the matching object-oriented and enterprise patterns.
4 objectives 6 steps about 130 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Select a creational, structural or behavioral pattern for a stated design force and explain its consequences.
- Apply repository, unit of work and service layer to separate domain logic from persistence and transport.
- Refactor toward or away from a pattern when it changes measured complexity, and recognize pattern overuse.
- Choose between transaction script and domain model for a module's business logic, and between active record and data mapper persistence, from the domain's complexity and rate of change.
Lesson plan
6 steps, about 130 min · 5 of 5 lessons available so far
- Patterns as named trade-offs: forces, solution, consequences Concept · 15 min
- Varying behavior: strategy, command and observer Concept · 25 min
- Shaping boundaries: adapter, facade and decorator Concept · 20 min
- Organizing domain logic and persistence: from transaction script to data mapper Concept · 25 min
- Replacing a conditional maze with strategy and adapter Lab · 30 min
- Pattern selection and overuse check Knowledge check · 8 questions
Practise it
Extend a payment or notification module to support two new providers by introducing strategy and adapter, keep all tests green, and document one place where you chose not to apply a pattern and why.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own Web FrameworkIntermediate · 8–15 h
- Build your own ReduxIntro · 3–6 h
- Build your own Programming LanguageIntermediate · 20–40 h
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.