Mastering Python Design Patterns

所需积分/C币:15 2018-09-22 17:39:50 2.05MB PDF
19
收藏 收藏
举报

Mastering Python Design Patterns. In software engineering, a design pattern is a recommended solution to a software design problem. Design patterns generally describe how to structure our code to solve common design problems using best practices. It is important to note that a design pattern is a high-level solution; it doesn't focus on implementation details such as algorithms and data structures [GOF95, page 13], [j.mp/srcmdp]. It is up to us, as software engineers, to decide which algorithm and data structure is optimal to use for the problem we are trying to solve.
Mastering Python Design Patterns Copyrightc 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 rt 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, cither express or implied. Neither the author nor Pacl 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 ISBN978-1-783989324 www.packtpub.com Credits Author Project Coordinator Sakis Kasampalis Aboli ambardekar Reviewers Proofreaders Evan Dempsey Ameesha green Amitabh sharma Joyce Littlejohn Yogendra sharma Indexer Patrycja Szablowska Teial soni Commissioning Editor Graphics Kunal parikh Abhinash Sahu Acquisition Editor Production Coordinator Owen roberts Aparna bhagat Content Development Editor Cover work Sumeet sawant Aparna bhaga Technical editors Tanvi bhatt Garay s Copy Editors Shivangi chaturvedi Nithya P Adithi Shetty 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 Objecl-oriented Python and learning Python Design Patterns, published by Packt Publishing I want to thank my sweetheart, Georgia, for supporting this effort Many thanks to Owen roberts who encouraged me to write this book. I also want to thank Sumeet Sawant for being a very kind and cooperative content development editor. Last but not least, I want to thank the reviewers of this book for their valuable feedback 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 I would like to thank my grandfather and my father for allowing me to learn all that i can i would also like to thank my wife. Komal, for her support and encouragement 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, Recruiter Box, Tumbler, Wrike, Indeed, HybridSaaS, Sengrid, and SnapEngag He has reviewed many books from reputed publishing houses. You can find him on Linkedinathttp://in.linkedincom/in/yogendraosharma I would like to thank all my friends who always encouraged me to do something new and believing in me Patrycja Szablowska is a Python developer with some Java background, with experience mainly in backend development. She graduated from nicolaus Copernicus University in Torun, poland She is currently working in Warsaw, Poland at Grupa Wirtualna polska. She is the next Python library or framework. Her favorite programming motto is Code I constantly exploring technical novelties and is open-minded and eager to learn ab read much more often than it is written I'd like to thank my husband, Waclaw, for encouraging me to explore new frontiers, and also my parents for teaching me what matters the most Www.Packtpub.com Support files, e Books, discount offers, and more Forsupportfilesanddownloadsrelatedtoyourbookpleasevisitwww.PacktPub.com Did you know that Packt offers e Book versions of every book published, with PDF andepubfilesavailable?YoucanupgradetotheeboOkversionatwww.packtpub com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@pack ktpub. com for more details Atwww.packtPub.comyoucanalsoreadacollectionoffreetechnicalarticlessign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks PACKTLIB https://www2.packtpub.com/books/subscription/packtlib Do you need instant solutions to your If questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books Why subscribe? Fully searchable across every book published by packt Copy and paste, print, and bookmark content On demand and accessible via a web browser Free access for packt account holders Ifyouhaveanaccountwithpacktatwww.packtpubcomyoucanusethistoaccess PacktLib today and view nine entirely free books Simply use your login credentials for immediate access Table of contents Preface Chapter 1: The Factory Pattern Factory Method 9 A real-life example 10 A software example 10 Use cases 10 Implementation 12 Abstract Factory 20 A real-life example 20 A software example 21 Use cases 21 Implementation 21 Summary Chapter 2: The Builder Pattern 29 A real-life example 30 A software example 30 Us se cases 31 Implementation 34 Summary 43 Chapter 3: The Prototype Pattern 45 A real-life example 47 A software example 48 Use cases 48 Implementation 49 Summary 54

...展开详情
试读 127P Mastering Python Design Patterns
立即下载
限时抽奖 低至0.43元/次
身份认证后 购VIP低至7折
一个资源只可评论一次,评论内容不能少于5个字
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
关注 私信
上传资源赚钱or赚积分
最新推荐
Mastering Python Design Patterns 15积分/C币 立即下载
1/127
Mastering Python Design Patterns第1页
Mastering Python Design Patterns第2页
Mastering Python Design Patterns第3页
Mastering Python Design Patterns第4页
Mastering Python Design Patterns第5页
Mastering Python Design Patterns第6页
Mastering Python Design Patterns第7页
Mastering Python Design Patterns第8页
Mastering Python Design Patterns第9页
Mastering Python Design Patterns第10页
Mastering Python Design Patterns第11页
Mastering Python Design Patterns第12页
Mastering Python Design Patterns第13页
Mastering Python Design Patterns第14页
Mastering Python Design Patterns第15页
Mastering Python Design Patterns第16页
Mastering Python Design Patterns第17页
Mastering Python Design Patterns第18页
Mastering Python Design Patterns第19页
Mastering Python Design Patterns第20页

试读结束, 可继续阅读

15积分/C币 立即下载