Learning Python Design Patterns, 2/e (Paperback)
暫譯: 學習 Python 設計模式 (第二版)
Chetan Giridhar
- 出版商: Packt Publishing
- 出版日期: 2016-02-15
- 售價: $1,840
- 貴賓價: 9.5 折 $1,748
- 語言: 英文
- 頁數: 164
- 裝訂: Paperback
- ISBN: 178588803X
- ISBN-13: 9781785888038
-
相關分類:
Python、程式語言、Design Pattern
-
相關翻譯:
Python 設計模式, 2/e (Learning Python Design Patterns, 2/e) (簡中版)
買這商品的人也買了...
-
$1,670$1,587 -
$3,300$3,135 -
$990Software Architecture with Python
-
$709流暢的 Python
商品描述
Key Features
- Understand the structural, creational, and behavioral Python design patterns
- Get to know the context and application of design patterns to solve real-world problems in software architecture, design, and application development
- Get practical exposure through sample implementations in Python v3.5 for the design patterns featured
Book Description
With the increasing focus on optimized software architecture and design it is important that software architects think about optimizations in object creation, code structure, and interaction between objects at the architecture or design level. This makes sure that the cost of software maintenance is low and code can be easily reused or is adaptable to change. The key to this is reusability and low maintenance in design patterns.
Building on the success of the previous edition, Learning Python Design Patterns, Second Edition will help you implement real-world scenarios with Python's latest release, Python v3.5.
We start by introducing design patterns from the Python perspective. As you progress through the book, you will learn about Singleton patterns, Factory patterns, and Facade patterns in detail. After this, we'll look at how to control object access with proxy patterns. It also covers observer patterns, command patterns, and compound patterns.
By the end of the book, you will have enhanced your professional abilities in software architecture, design, and development.
What you will learn
- Enhance your skills to create better software architecture
- Understand proven solutions to commonly occurring design issues
- Explore the design principles that form the basis of software design, such as loose coupling, the Hollywood principle and the Open Close principle among others
- Delve into the object-oriented programming concepts and find out how they are used in software applications
- Develop an understanding of Creational Design Patterns and the different object creation methods that help you solve issues in software development
- Use Structural Design Patterns and find out how objects and classes interact to build larger applications
- Focus on the interaction between objects with the command and observer patterns
- Improve the productivity and code base of your application using Python design patterns
About the Author
Chetan Giridhar is a technology leader, open source enthusiast, and Python developer. He has written multiple articles on technology and development practices in magazines such as LinuxForYou and Agile Record, and has published technical papers in the Python Papers journal. He has been a speaker at PyCon conferences such as PyCon India, Asia-Pacific, and New Zealand and loves working on real-time communications, distributed systems, and cloud applications. Chetan has been a reviewer at Packt Publishing and has contributed to books on IPython Visualizations and Core Python.
Table of Contents
- Introduction to Design Patterns
- The Singleton Design Pattern
- The Factory Pattern – Building Factories to Create Objects
- The Facade Pattern – Being Adaptive with Facade
- The Proxy Pattern – Controlling Object Access
- The Observer Pattern – Keeping Objects in the Know
- The Command Pattern – Encapsulating Invocation
- The Template Method Pattern – Encapsulating Algorithm
- Model-View-Controller – Compound Patterns
- The State Design Pattern
- AntiPatterns
商品描述(中文翻譯)
**主要特點**
- 理解結構型、創建型和行為型的 Python 設計模式
- 瞭解設計模式的背景和應用,以解決軟體架構、設計和應用開發中的實際問題
- 通過 Python v3.5 中的範例實作獲得實際經驗
**書籍描述**
隨著對優化軟體架構和設計的日益重視,軟體架構師必須考慮在物件創建、程式碼結構和物件之間的互動方面的優化,無論是在架構還是設計層面。這確保了軟體維護成本低,程式碼可以輕鬆重用或適應變更。設計模式的關鍵在於可重用性和低維護性。
在前一版成功的基礎上,《學習 Python 設計模式,第二版》將幫助您使用 Python 的最新版本 Python v3.5 實現現實世界的場景。
我們將從 Python 的角度介紹設計模式。隨著您逐步深入本書,您將詳細了解單例模式、工廠模式和外觀模式。之後,我們將探討如何使用代理模式控制物件訪問。書中還涵蓋了觀察者模式、命令模式和複合模式。
到本書結束時,您將提升在軟體架構、設計和開發方面的專業能力。
**您將學到的內容**
- 提升您的技能以創建更好的軟體架構
- 理解常見設計問題的成熟解決方案
- 探索構成軟體設計基礎的設計原則,例如鬆耦合、好萊塢原則和開放封閉原則等
- 深入了解物件導向程式設計概念,並了解它們在軟體應用中的使用
- 發展對創建型設計模式及不同物件創建方法的理解,幫助您解決軟體開發中的問題
- 使用結構型設計模式,了解物件和類別如何互動以構建更大的應用
- 專注於物件之間的互動,使用命令模式和觀察者模式
- 使用 Python 設計模式提高應用的生產力和程式碼基礎
**關於作者**
**Chetan Giridhar** 是一位技術領導者、開源愛好者和 Python 開發者。他在《LinuxForYou》和《Agile Record》等雜誌上撰寫了多篇有關技術和開發實踐的文章,並在《Python Papers》期刊上發表了技術論文。他曾在 PyCon 會議上演講,包括 PyCon India、亞太和紐西蘭,並熱衷於實時通信、分散式系統和雲應用。Chetan 曾擔任 Packt Publishing 的審稿人,並為有關 IPython 可視化和核心 Python 的書籍做出貢獻。
**目錄**
1. 設計模式介紹
2. 單例設計模式
3. 工廠模式 - 建立工廠以創建物件
4. 外觀模式 - 以外觀適應
5. 代理模式 - 控制物件訪問
6. 觀察者模式 - 讓物件保持知情
7. 命令模式 - 封裝調用
8. 模板方法模式 - 封裝演算法
9. 模型-視圖-控制器 - 複合模式
10. 狀態設計模式
11. 反模式