Posts

  • B/C - Interpreter

    • Category: behavioral
    • Type: class
    • Motivation: build an interpreter to solve the problem by Interpreting those sentences in a simple language
  • S - Flyweight

    • Category: structural
    • Type: object
    • Motivation: share common parts(pool to cache flyweights) of state between multiple objects instead of keeping all of the data in each object
  • S - Proxy

    • Category: structural
    • Type: object
    • Motivation: a proxy is a wrapper to forward the real object request and/or provide additional logic
  • S - Facade

    • Category: structural
    • Type: object
    • Motivation: provide a simplified interface to larger body of code
  • S/O- Decorator

    • Category: structural
    • Type: object
    • Motivation: add responsibility to an object, provide alternative to sub-class for extending function