Free Design patterns lessonsDesign patterns · Stage 2 · Behaviour and communication · Step 4
Choosing a pattern
Start from the force, not the name: a quick map from the problem you have to the pattern that answers it, and when none is needed. About 12 minutes.
Which approach to using a design pattern is generally best?
- AStart simple, and refactor to the pattern when the variation or change actually appears
- BApply as many patterns as possible up front
- CAvoid patterns entirely
Show the answer
Start simple, and refactor to the pattern when the variation or change actually appears. You pay for flexibility only when you need it.
4 questions on this idea
Short questions that apply the idea to new cases: trace it, work out a number, put steps in order. A wrong answer explains itself.
Answer them in your browserFree account, no card. Your progress is saved, and the idea comes back in a quick review later.
Sign up free to solve