Skip to content

Taiwolskit/design-pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Design Pattern

Collect design pattern

Behavioral Patterns

這些模式主要是負責物件之間溝通的演算法和其權責委派有關

These patterns are concerned with algorithms and the assignment of responsibilities between objects.

  • Chain of responsibility
  • Command
  • Iterator
  • Mediator
  • Memento
  • Observer
  • State
  • Strategy
  • Template Method
  • Visitor

Creational Patterns

這些模式提供了各種物件建立機制,從而增加了靈活性和現有代碼的重用性。

These patterns provide various object creation mechanisms, which increase flexibility and reuse of existing code.

  • Abstract factory
  • Builder
  • Factory Method
  • Prototype
  • Singleton

Structural Patterns

這些模式說明如何將物件和 class 組成更大的結構,同時保持這些結構的靈活性和效率。

These patterns explain how to assemble objects and classes into larger structures while keeping these structures flexible and efficient.

  • Adapter
  • Bridge
  • Composite
  • Decorator
  • Facade
  • Flyweight
  • Proxy

Reference