欢迎来到天天文库
浏览记录
ID:34163718
大小:2.74 MB
页数:311页
时间:2019-03-03
《Chetan Giridhar-Learning Python Design Patterns-Packt Publishing (2016).pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、LearningPythonDesignPatternsSecondEditionTableofContentsLearningPythonDesignPatternsSecondEditionCreditsForewordAbouttheAuthorAbouttheReviewerwww.PacktPub.comSupportfiles,eBooks,discountoffers,andmoreWhysubscribe?FreeaccessforPacktaccountholdersPrefaceWhatthisbookcoversWhatyouneedf
2、orthisbookWhothisbookisforConventionsReaderfeedbackCustomersupportDownloadingtheexamplecodeErrataPiracyQuestions1.IntroductiontoDesignPatternsUnderstandingobject-orientedprogrammingObjectsClassesMethodsMajoraspectsofobject-orientedprogrammingEncapsulationPolymorphismInheritanceAbst
3、ractionCompositionObject-orienteddesignprinciplesTheopen/closeprincipleTheinversionofcontrolprincipleTheinterfacesegregationprincipleThesingleresponsibilityprincipleThesubstitutionprincipleTheconceptofdesignpatternsAdvantagesofdesignpatternsTaxonomyofdesignpatternsContext–theapplic
4、abilityofdesignpatternsPatternsfordynamiclanguagesClassifyingpatternsCreationalpatterns:StructuralpatternsBehavioralpatternsSummary2.TheSingletonDesignPatternUnderstandingtheSingletondesignpatternImplementingaclassicalSingletoninPythonLazyinstantiationintheSingletonpatternModule-le
5、velSingletonsTheMonostateSingletonpatternSingletonsandmetaclassesAreal-worldscenario–theSingletonpattern,part1Areal-worldscenario–theSingletonpattern,part2DrawbacksoftheSingletonpatternSummary3.TheFactoryPattern–BuildingFactoriestoCreateObjectsUnderstandingtheFactorypatternTheSimpl
6、eFactorypatternTheFactoryMethodpatternImplementingtheFactoryMethodAdvantagesoftheFactorymethodpatternTheAbstractFactorypatternImplementingtheAbstractFactorypatternTheFactorymethodversusAbstractFactorymethodSummary4.TheFaçadePattern–BeingAdaptivewithFaçadeUnderstandingStructuraldesi
7、gnpatternsUnderstandingtheFaçadedesignpatternAUMLclassdiagramFaçadeSystemClientImplementingtheFaçadepatternintherealworldTheprincipleofleastknowledgeFrequentlyaskedquestionsSummary5.TheProxyPattern–ControllingObjectAccessUnderstandingtheProxydesignpatternAUMLclassdiagramfortheProxy
8、patternUnderstandingdiffer
此文档下载收益归作者所有