Giter VIP home page Giter VIP logo

design-pattern's Introduction

设计模式

介绍

23 种设计模式,从人门到入土。 语言实现:Java、TypeScript

创建型模式(共5种):单例模式、工厂(方法)模式、抽象工厂模式、原型模式、建造者模式

结构型模式(共7种):适配器模式、桥接模式、装饰者模式、组合模式、外观模式、享元模式、代理模式

行为型模式(共11种):模板方法模式、命令模式、访问者模式、迭代器模式、观察者模式、中介者模式、备忘录模式、解释器模式、状态模式、策略模式、责任链模式

已实现

  • 单例模式(Singleton)

  • 工厂(方法)模式(Factory/FactoryMethod)

  • 抽象工厂模式(Factory/AbstractFactory)

  • 原型模式(ProtoType)

  • 建造者模式(Builder)

  • 适配器模式(Adapter)

  • 桥接模式(Bridge)

  • 装饰者模式(Decorator)

  • 组合模式(Composite)

  • 外观模式(Facade)

  • 享元模式(Flyweight)

  • 代理模式(Proxy)

  • 模板方法模式(TemplateMethod)

  • 命令模式(Command)

  • 访问者模式(Visitor)

  • 迭代器模式(Iterator)

  • 观察者模式(Observer)

  • 中介者模式(Mediator)

  • 备忘录模式(Memento)

  • 解释器模式(Interpreter)

  • 状态模式(State)

  • 策略模式(Strategy)

  • 责任链模式(ResponsibilityChain)

design-pattern's People

Contributors

fantzero 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.