Lesson 2 of 12
Design patterns for LLD
Use Strategy, Factory, Builder, Observer, State, Command, Decorator and Adapter where machine coding needs them.
In this lesson
- What a design pattern is
- Strategy, State, Observer
- An order lifecycle
- Drive the order
- Strategy and Observer code
- The State pattern
- Five more patterns
- What stays true
- Costs and tradeoffs
- Common mistakes
- Related topics and practice
Ultra Premium
Unlock this lesson
Ultra Premium opens the 12 premium lessons in Patterns, along with the rest of WhiteBox's premium lessons and problems.
Not ready yet? Read the free lesson: Backpressure