Giter Club home page Giter Club logo

design-pattern's Introduction

design-pattern

设计模式学习 一、工厂模式:批量生产 1、简单工厂:一个工厂生产所有,要什么生产什么 2、工厂方法:自己的工厂生产自己的产品 3、抽象工厂:生产自己的一组产品

二、单例模式 :全局唯一实例 1、懒汉式 2、饿汉式 3、枚举 4、静态内部类 5、容器

三、原型模式 :复制 1、浅克隆 2、深克隆

四、代理模式 :增强目标对象 1、静态代理 2、动态代理

五、委派模式 :注重管理分配

六、策略模式 :封装算法,由用户指定

七、模版模式 :固定流程,减少重复代码

八、适配器 :注重转换

九、装饰者模式 :注重在不改变原有的功能上进行扩展

十、观察者模式 :发布订阅

design-pattern's People

Contributors

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