资源描述:
《[设计内容模式解析]Design Patterns Explained - A New Perspective on Object-Oriented Design - 第一版教材.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、------==ProudlyPresentedbyMODELER==------PrefaceDesignpatternsandobject-orientedprogramming.Theyholdsuchpromisetomakeyourlifeasasoftwaredesigneranddevelopereas-ier.Theirterminologyisbandiedabouteverydayinthetechnicalandeventhepopularpress.Butitcanbehardtolearnthem,tobecomeprofi
2、cientwiththem,tounderstandwhatisreallygoingon.Perhapsyouhavebeenusinganobject-orientedorobject-basedlanguageforyears.Haveyoulearnedthatthetruepowerofobjectsisnotinheritancebutisin“encapsulatingbehaviors”?Perhapsyouarecuriousaboutdesignpatternsandhavefoundtheliteratureabittooeso
3、tericandhigh-falutin.Ifso,thisbookisforyou.Itisbasedonyearsofteachingthismaterialtosoftwaredevelopers,bothexperiencedandnewtoobjectorientation.Itisbaseduponthebelief—andourexperience—thatonceyouunderstandthebasicprinciplesandmotivationsthatunderlietheseconcepts,whytheyaredoingw
4、hattheydo,yourlearningcurvewillbeincrediblyshorter.Andinourdiscussionofdesignpatterns,youwillunder-standthetruemindsetofobjectorientation,whichisanecessitybeforeyoucanbecomeproficient.Asyoureadthisbook,youwillgainasolidunderstandingofthetenmostessentialdesignpatterns.Youwilllea
5、rnthatdesignpat-ternsdonotexistontheirown,butaresupposedtoworkincon-certwithotherdesignpatternstohelpyoucreatemorerobustapplications.Youwillgainenoughofafoundationthatyouwillbeabletoreadthedesignpatternliterature,ifyouwantto,andpossi-blydiscoverpatternsonyourown.Mostimportantly
6、,youwillbebetterequippedtocreateflexibleandcompletesoftwarethatiseasiertomaintain.xvxviPrefaceFromObjectOrientationtoPatternstoTrueObjectOrientationInmanyways,thisbookisaretellingofmypersonalexperiencelearningdesignpatterns.Priortostudyingdesignpatterns,Iconsid-eredmyselftobere
7、asonablyexpertinobject-orientedanalysisanddesign.Mytrackrecordhadincludedseveralfairlyimpressivedesignsandimplementationsinmanyindustries.IknewC++andwasbeginningtolearnJava.Theobjectsinmycodewerewell-formedandtightlyencapsulated.Icoulddesignexcellentdataabstractionsforinheritan
8、cehierarchies.IthoughtIknewobject-orientation.Now,look