Giter VIP home page Giter VIP logo

designpattern_example-1's Introduction

生成型模式(Creational Patterns)

生成型模式會牽涉到將物件實例化、它會提供一個方法,讓Client能夠從實例化物件的過程分離出來。

  • 工廠方法 Factory Method
  • 抽象工廠 Abstract Factory
  • 建構者 Builder
  • 單例 Singleton
  • 原型 Prototype

結構型模式(Structural Patterns)

結構型模式可以讓小物件合併成為大型物件。

  • 合成 Composite
  • 裝飾者 Decorator
  • 橋接 Bridge
  • 享元 Flyweight
  • 代理人 Proxy
  • 轉接器 Adapter
  • 表象 Facade

行為型模式(Behavioral Patterns)

行為型模式可以描述類別和物件如何互動,以及它們各自的責任。

  • 策略 Strategy
  • 命令 Command
  • 疊代器 Iterator
  • 狀態 State
  • 訪問者 Visitor
  • 備忘錄 Memento
  • 觀察者 Observer
  • 責任鏈 Chain of Responsibility
  • 樣板方法 Template Method
  • 解譯器 Interpreter
  • 中介者 Mediator

designpattern_example-1's People

Contributors

eddiexh avatar kentlin0919 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.