DEV Community

Cover image for Design Pattern: The Compound Pattern
Daniel Lee
Daniel Lee

Posted on

Design Pattern: The Compound Pattern

The Compound Pattern, as its name already tells, is a collection of patterns. Patterns are often used together and combined within the same design solution. For instance, MVC architecture can be dissected into patterns.

  1. Model: Observer Pattern
    • The model keeps interested objects updated when state change occurs
  2. View: Composite Pattern
    • The view consists of a nested set of windows, panels, buttons, etc.
  3. Controller: Strategy pattern
    • The view is an object that is configured with a strategy. The controller provides the strategy and the view is concerned with visual aspects of an application.

Discussion (0)