Code Monkey home page Code Monkey logo

design_pattern's Introduction

设计模式学习总结

看了曾探的《JavaScript设计模式与开发实践》,之前模模糊糊有些感觉的东西忽然清晰了很多,趁热打铁总结一下

主要包括三个部分

  1. 基础知识

    • 面向对象的JavaScript
    • this、call、apply
    • 闭包和高阶函数
  2. 设计模式

    • 单例模式
    • 策略模式
    • 代理模式
    • 迭代器模式
    • 观察者模式
    • 命令模式
    • 组合模式
    • 模板方法模式
    • 享元模式
    • 职责链模式
    • 中介者模式
    • 装饰者模式
    • 状态模式
    • 适配器模式
  3. 设计原则和编程技巧

    • 单一职责原则
    • 最少知识原则
    • 开放封闭原则
    • 接口和面向接口编程
    • 代码重构

主要都是对书中代码验证和知识理解,可以说就是笔记

design_pattern's People

Contributors

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