Mastering Python Design Patterns
eBook - ePub

Mastering Python Design Patterns

Sakis Kasampalis

Share book
  1. 212 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Mastering Python Design Patterns

Sakis Kasampalis

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Mastering Python Design Patterns an online PDF/ePUB?
Yes, you can access Mastering Python Design Patterns by Sakis Kasampalis in PDF and/or ePUB format, as well as other popular books in Informatique & Programmation en Python. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781783989324

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

Mastering Python Design Patterns

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: January 2015
Production reference: 1220115
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78398-932-4
www.packtpub.com

Credits

Author
Sakis Kasampalis
Reviewers
Evan Dempsey
Amitabh Sharma
Yogendra Sharma
Patrycja SzabƂowska
Commissioning Editor
Kunal Parikh
Acquisition Editor
Owen Roberts
Content Development Editor
Sumeet Sawant
Technical Editors
Tanvi Bhatt
Gaurav Suri
Copy Editors
Shivangi Chaturvedi
Nithya P.
Adithi Shetty
Project Coordinator
Aboli Ambardekar
Proofreaders
Ameesha Green
Joyce Littlejohn
Indexer
Tejal Soni
Graphics
Abhinash Sahu
Production Coordinator
Aparna Bhagat
Cover Work
Aparna Bhagat

About the Author

Sakis Kasampalis (@SKasampalis) is a software engineer living in the Netherlands. He is not dogmatic about particular programming languages and tools; his principle is that the right tool should be used for the right job. One of his favorite tools is Python because he finds it very productive.
Sakis was also the technical reviewer of Mastering Object-oriented Python and Learning Python Design Patterns, published by Packt Publishing.

About the Reviewers

Evan Dempsey is a software developer from Waterford, Ireland. When he isn't hacking in Python for fun and profit, he enjoys craft beers, common Lisp, and keeping up with modern research in machine learning. He is a contributor to several open source projects.
Amitabh Sharma is a professional software engineer. He has worked extensively on enterprise applications in telecommunications and business analytics. His work is focused on service-oriented architecture, data warehouses, and languages such as Java, Python, and others.
Yogendra Sharma was born and brought up in a small but cultural town, Pratapgarh, in the state of Rajasthan. His basic education has been imparted in his hometown itself, and he completed his BTech in Computer Science from Jaipur. He is basically an engineer by heart and a technical enthusiast by nature.
He has vast experience in the fields of Python, Django framework, web app security, networking, Web 2.0, and C++.
Along with CCNA, many other esteemed certifications have been awarded to him. He is an active member of International Association of Engineers, Ubuntu, India, and Computer Society of India.
More recently, he participated in bug bounty programs and won many bug bounties, including the respected Yahoo, Ebay, PayPal bug bounty. He has been appointed as security researcher for several respected organizations, such as Adobe, Ebay, Avira, Moodle, Cisco, Atlassian, Basecamp, CodeClimate, Abacus, Rediff, Assembla, RecruiterBox, Tumbler, Wrike, Indeed, HybridSaaS, Sengrid, and SnapEngag.
He has reviewed many books from reputed publishing houses. You can find him on LinkedIn at http://in.linkedin.com/in/yogendra0sharma.
Patrycja SzabƂowska is a Python developer with some Java background, with experience mainly in backend development. She graduated from Nicolaus Copernicus University in ToruƄ, Poland.
She is currently working in Warsaw, Poland, at Grupa Wirtualna Polska. She is constantly exploring technical novelties and is open-minded and eager to learn about the next Python library or framework. Her favorite programming motto is Code is read much more often than it is written.
I'd like to thank my husband, WacƂaw, for encouraging me to explore new frontiers, and also my parents for teaching me what matters the most.

www.PacktPub.com

Support files, eBooks, discount offers, and more

For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
Support files, eBooks, discount offers, and more
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.

Why s...

Table of contents