Patterns 0/12

Lesson 2 of 12

Design patterns for LLD

Use Strategy, Factory, Builder, Observer, State, Command, Decorator and Adapter where machine coding needs them.

1,912 words · 9 min read Ultra Premium Useful background: Objects and classes, Design principles

In this lesson

  1. What a design pattern is
  2. Strategy, State, Observer
  3. An order lifecycle
  4. Drive the order
  5. Strategy and Observer code
  6. The State pattern
  7. Five more patterns
  8. What stays true
  9. Costs and tradeoffs
  10. Common mistakes
  11. 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