Coder Social home page Coder Social logo

designmodel's Introduction

目录结构

  • 01_factory: 工厂模式,包括简单工厂、工厂
  • 02_abstract_factory: 抽象工厂模式
  • 03_single_instance: 单例模式
  • 04_prototype: 原型模式
  • 05_builder: 建造者模式
  • 06_bridge: 桥接模式
  • 08_proxy:代理模式
  • 13_observe: 观察者模式

23种设计模式

  • 创建型模式,共五种:工厂方法模式、抽象工厂模式、单例模式、建造者模式、原型模式
  • 结构型模式,共七种:适配器模式、装饰者模式、代理模式、外观模式、桥接模式、组合模式、享元模式。
  • 行为型模式,共十一种:策略模式、模板方法模式、观察者模式、迭代子模式、责任链模式、命令模式、备忘录模式、状态模式、访问者模式、中介者模式、解释器模式
  • 并发者模式
  • 线程池模式
  • 为便于记忆,:
创结行
    作者:并线
    
原工抽单建,        # 原工喜欢抽单建
桥装代组外享适。   # 乔装打扮代组里享乐
责备命中迭状,     # 责备命中为何跌跌撞撞
观摩访解策         # 观察模仿寻找解决策略

设计模式遵从的七大原则:

  • 简单记忆:
依里合开迪接单     # 依里合开着奥迪接单
  • 单一职责
  • 接口隔离原则
  • 依赖倒转原则
  • 里式变换原则
  • 开闭原则
  • 迪米特法则
  • 合成复用原则

designmodel's People

Contributors

lanyyyy avatar

Watchers

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