Giter VIP home page Giter VIP logo

designpattern's Introduction

#DesignPattern

《研磨设计模式》书中的例子

--第二章:简单工厂 本质:选择实现

--第三章:外观模式(Facade) 本质:封装交互,简化调用

--第四章:适配器模式(Adapter) 本质:转换匹配,复用功能

--第五章:单例模式(Singleton) 本质:控制实例数目

--第六章:工厂方法模式(Factory Method) 本质:延迟到子类类选择实现(选择单个产品的实现)

--第七章:抽象工厂模式(Abstract Factory) 本质:选择产品簇的实现

--第八章:生成器模式(Builder) 本质:分离整体构建算法和部件构造

--第九章:原型模式(Prototype) 本质:克隆生成对象

--第十章:中介者(Mediator) 本质:封装交互

--第十一章:代理模式(Proxy) 本质:控制对象访问

--第十二章:观察者模式(Observer) 本质:触发联动

--第十三章:命令模式(Command) 本质:封装请求

--第十四章:迭代器模式(Iterator) 本质:控制访问聚合对象中的元素

--第十五章:组合模式(Composite) 本质:统一叶子对象和组合对象

--第十六章:模板方法模式(Template Method) 本质:固定算法骨架

--第十七章:策略模式(Strategy) 本质:分离算法,选择实现

--第十八章:状态模式(State) 本质:根据状态来分离和选择行为

--第二十二章:装饰器模式(Decorator) 本质:动态组合

--第二十三章:职责链模式(Chian of Responsibility) 本质:分离职责,动态组合

designpattern's People

Contributors

miracle1243 avatar

Watchers

 avatar

Forkers

plumpmath

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.