Python Design Patterns (2nd Edition)
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已经掌握 Python 基础语法、想系统学习设计模式的开发者
- 需要为中小型项目做架构设计、希望提升代码复用性的工程师
- 从 Java 等静态语言转 Python、想了解模式在动态语言中如何变形的读者
- 准备面试、需要梳理面向对象设计原则与常见模式的技术求职者
Not a good fit for
- 完全没有编程基础、尚未写过一个完整 Python 程序的初学者
- 希望查阅全部 GoF 23 种模式并作为工具书随时检索的读者
- 只想找可直接复制粘贴的生产级框架代码而非理解原理的读者
Reading tips
- 先读第 1 章的设计原则,再按创建型、结构型、行为型分组阅读后续章节,形成体系。
- 每读完一个模式,用自己项目里的真实场景重写一遍示例代码,比抄书更有效。
- 读到第 11 章时,对照前面学过的模式回看自己写过的代码,找出其中的反模式。
- 本书篇幅短,宜快读一遍再精读重点章节,并配合《设计模式》原著补充静态语言视角。
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
- Chapter 1 Introduction to Design Patterns
- Chapter 2 The Singleton Design Pattern
- Chapter 3 The Factory Pattern: Building a Factory for Creating Objects
- Chapter 4 The Facade Pattern: Adapting to the Facade
- Chapter 5 The Proxy Pattern: Controlling Access to Objects
- Chapter 6 The Observer Pattern: Keeping Track of Object State
- Chapter 7 The Command Pattern: Encapsulating Invocation
- Chapter 8 The Template Method Pattern: Encapsulating Algorithms
- Chapter 9 Model-View-Controller: A Composite Pattern
- Chapter 10 The State Design Pattern
- Chapter 11 Anti-Patterns
FAQ
这本书是第几版?依据哪个英文原版翻译?
书中示例代码基于哪个 Python 版本?
这本书讲了全部 23 种设计模式吗?
118 页这么薄,内容会不会太浅?
零基础能读懂吗?
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.