Git Product home page Git Product logo

design's Introduction

用最好的语言描述设计模式--The best language to describe design patterns

前言:这里不会完全按照"四人帮"的23种设计模式,只会记录适合php的。

这是什么

一个用php描述的设计模式仓库

用作什么

  1. 俗话说:好记性不如烂笔头,记录下来,加深自己的印象
  2. 烂笔头不如理解,使用示例来充分理解
  3. 理解不如实践

怎么用

代码都会放在book目录下,运行每个模式里面的index.php即可看到相应的设计模式示例

用什么方式

先看下开胃菜看了你会"拿刀"来"慰问"我

有哪些模式

  1. 创建型模式--Creational

    • 简单工厂模式--SimpleFactory
    • 工厂方法模式--FactoryMethod
    • 抽象工厂模式--AbstractFactory
    • 单例模式--Singleton
  2. 结构性模式--Structural

    • 适配器模式--Adapter
    • 桥接模式--Bridge
    • 代理模式--Proxy
    • 装饰器模式--Decorator
  3. 行为型模式--Behavioral

    • 责任链模式--ChainOfResponsibility
    • 观察者模式--Observer
    • 策略模式--Strategy
    • 迭代器模式--Iterator

TODO

  • 简单UML示例
  • UML图
  • 补充实践
  • 模式补全
  • 几大原则
  • 结合laravel框架源码一起分析

design's People

Contributors

omgzui avatar

Stargazers

 avatar

Watchers

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