Giter Site home page Giter Site logo

designpatterns's Introduction

创建型模式

  • 创建型模式针对者是一个类,单例、原型模式很容易理解,工厂模式可以生产好多类,但是类与类间是无关的,目的依旧是创建,创造者模式引入了一个指导者类,但他存在的意义依然是创建类。

工厂方法模式factory

抽象工厂模式abstractFactory

单例模式singleton

建造者模式builder

原型模式prototype

结构型模式

  • 结构模式主要针对类间关系。

适配器模式adapter

桥接模式bridge

合成模式composite

装饰器模式decorator

门面模式facade

代理模式proxy

享元模式flyweight

行为型模式

  • 行为模式针对的是对象间的责任分配。

策略模式strategy

模板方法模式template

观察者模式observer

迭代器模式iterator

责任链模式responsibilityChain

命令模式command

备忘录模式memento

状态模式state

访问者模式visitor

中介者模式mediator

解释器模式interpreter

designpatterns's People

Contributors

agxmaster avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

w2yn

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.