JavaScript Design Patterns
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已能用 JavaScript 写业务代码、想系统补设计模式的前端开发者
- 准备面试或技术晋升,需要把模式名称与用途对上号的人
- 计算机相关专业学生,需要一本案例驱动的辅助教材
- 从后端或其他语言转前端、希望理解 JS 特色写法的程序员
Not a good fit for
- 完全没有 JavaScript 基础、连闭包和原型都未接触的纯新手
- 希望读到 React/Vue 时代现代工程化范式与 TS 类型写法的读者
- 只想找可直接复制到生产环境的工业级代码的人
Reading tips
- 第一篇务必按顺序读完,封装、继承、多态没吃透,后面每种模式都会读得吃力。
- 第二至第六篇可按需跳读,建议先挑工作中正遇到的场景(如表单验证看策略、事件绑定看外观/委托)。
- 每章读完先自己动手实现一遍示例,再回看作者的实现,比对着读效果好。
- 遇到 ES5 写法不必纠结,可顺手用 ES6 class、模块化和现代框架对照改写。
- 关注每种模式前面的“定义”和后面的“忆之获”,那是全书信息密度最高的部分。
About the publisher
Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.
Contents
- Part One Object-Oriented Programming
- Chapter 1 A Flexible Language—JavaScript
- Chapter 2 What You Write Is What You See—Object-Oriented Programming
- Part Two Creational Design Patterns
- Chapter 3 The Magic Magician—Simple Factory Pattern
- Chapter 4 Give Me a Business Card—Factory Method Pattern
- Chapter 5 All That Appears Is Illusion—Abstract Factory Pattern
- Chapter 6 Separation Is Combination—Builder Pattern
- Chapter 7 The Soul of the Language—Prototype Pattern
- Chapter 8 One Person's Loneliness—Singleton Pattern
- Part Three Structural Design Patterns
- Chapter 9 Combo Service—Facade Pattern
- Chapter 10 The Winding Pipe—Adapter Pattern
- Chapter 11 The Cowherd and the Weaver Girl—Proxy Pattern
- Chapter 12 House Renovation—Decorator Pattern
- Chapter 13 Roads Between Cities—Bridge Pattern
- Chapter 14 Value Lunch—Composite Pattern
- Chapter 15 City Bus—Flyweight Pattern
- Part Four Behavioral Design Patterns
- Chapter 16 Drawing a Tiger from a Cat—Template Method Pattern
- Chapter 17 Communication Satellite—Observer Pattern
- Chapter 18 Super Mario—State Pattern
- Chapter 19 The Living Zhuge Liang—Strategy Pattern
- Chapter 20 The Orderly Station—Chain of Responsibility Pattern
- Chapter 21 Command Pattern
- Chapter 22 Ambassador to China—Visitor Pattern
- Chapter 23 The Matchmaker—Mediator Pattern
- Chapter 24 Keep a Good Record—Memento Pattern
- Chapter 25 The Bill Counter—Iterator Pattern
- Chapter 26 Language Translation—Interpreter Pattern
- Part Five Technique Design Patterns
- Chapter 27 Endless—Chain Pattern
- Chapter 28 The Future Prophet—Delegation Pattern
- Chapter 29 Data Manager—Data Access Object Pattern
- Chapter 30 Execution Control—Throttle Pattern
- Chapter 31 Card Puzzle—Simple Template Pattern
- Chapter 32 Machine Learning—Lazy Pattern
- Chapter 33 Foreign Battlefield—Participant Pattern
- Chapter 34 The Entrance Ceremony—Waiter Pattern
- Part Six Architectural Design Patterns
FAQ
这本书和《JavaScript设计模式与开发实践》是同一本吗?
零基础能直接读这本书吗?
书里的例子现在还能用吗?
全书有多少章、大概什么体量?
适合作为培训或课程教材吗?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.