当前位置:网站首页>图书 > 正文 >>

Mastering Python Design Patterns

图书信息

作者Sakis Kasampalis
出版社Packt Publishing
ISBN9781783989331
出版时间2015-01-28
字数40.6万
分类进口书,外文原版书,电脑,网络

读书简介

This book is for Python programmers with an intermediate background and an interest in design patterns implemented in idiomatic Python. Programmers of other languages who are interested in Python can also benefit from this book, but it would be better if they first read some introductory materials that explain how things are done in Python.

目录

Mastering Python Design Patterns

Table of Contents

Mastering Python Design Patterns

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

Design patterns

Common misunderstandings about design patterns

Design patterns and Python

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. The Factory Pattern

Factory Method

A real-life example

A software example

Use cases

Implementation

Abstract Factory

A real-life example

A software example

Use cases

Implementation

Summary

2. The Builder Pattern

A real-life example

A software example

Use cases

Implementation

Summary

3. The Prototype Pattern

A real-life example

A software example

Use cases

Implementation

Summary

4. The Adapter Pattern

A real-life example

A software example

Use cases

Implementation

Summary

5. The Decorator Pattern

A real-life example

A software example

Use cases

Implementation

Summary

6. The Facade Pattern

A real-life example

A software example

Use cases

Implementation

Summary

7. The Flyweight Pattern

A real-life example

A software example

Use cases

Implementation

Summary

8. The Model-View-Controller Pattern

A real-life example

A software example

Use cases

Implementation

Summary

9. The Proxy Pattern

A real-life example

A software example

Use cases

Implementation

Summary

10. The Chain of Responsibility Pattern

A real-life example

A software example

Use cases

Implementation

Summary

11. The Command Pattern

A real-life example

A software example

Use cases

Implementation

Summary

12. The Interpreter Pattern

A real-life example

A software example

Use cases

Implementation

Summary

13. The Observer Pattern

A real-life example

A software example

Use cases

Implementation

Summary

14. The State Pattern

A real-life example

A software example

Use cases

Implementation

Summary

15. The Strategy Pattern

A real-life example

A software example

Use cases

Implementation

Summary

16. The Template Pattern

A real-life example

A software example

Use cases

Implementation

Summary

Index

↑