资源描述:
《design patterns explained, 2000》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、------==ProudlyPresentedbyMODELER==------preface.fmPagexvWednesday,June6,20014:18PMPrefaceDesignpatternsandobject-orientedprogramming.Theyholdsuchpromisetomakeyourlifeasasoftwaredesigneranddevelopereas-ier.Theirterminologyisbandiedabouteverydayinthetechnical
2、andeventhepopularpress.Butitcanbehardtolearnthem,tobecomeproficientwiththem,tounderstandwhatisreallygoingon.Perhapsyouhavebeenusinganobject-orientedorobject-basedlanguageforyears.Haveyoulearnedthatthetruepowerofobjectsisnotinheritancebutisin“encapsulatingbeh
3、aviors”?Perhapsyouarecuriousaboutdesignpatternsandhavefoundtheliteratureabittooesotericandhigh-falutin.Ifso,thisbookisforyou.Itisbasedonyearsofteachingthismaterialtosoftwaredevelopers,bothexperiencedandnewtoobjectorientation.Itisbaseduponthebelief—andourexpe
4、rience—thatonceyouunderstandthebasicprinciplesandmotivationsthatunderlietheseconcepts,whytheyaredoingwhattheydo,yourlearningcurvewillbeincrediblyshorter.Andinourdiscussionofdesignpatterns,youwillunder-standthetruemindsetofobjectorientation,whichisanecessityb
5、eforeyoucanbecomeproficient.Asyoureadthisbook,youwillgainasolidunderstandingofthetenmostessentialdesignpatterns.Youwilllearnthatdesignpat-ternsdonotexistontheirown,butaresupposedtoworkincon-certwithotherdesignpatternstohelpyoucreatemorerobustapplications.You
6、willgainenoughofafoundationthatyouwillbeabletoreadthedesignpatternliterature,ifyouwantto,andpossi-blydiscoverpatternsonyourown.Mostimportantly,youwillbebetterequippedtocreateflexibleandcompletesoftwarethatiseasiertomaintain.xvpreface.fmPagexviWednesday,June6
7、,20014:18PMxviPrefaceFromObjectOrientationtoPatternstoTrueObjectOrientationInmanyways,thisbookisaretellingofmypersonalexperiencelearningdesignpatterns.Priortostudyingdesignpatterns,Iconsid-eredmyselftobereasonablyexpertinobject-orientedanalysisanddesign.Mytr
8、ackrecordhadincludedseveralfairlyimpressivedesignsandimplementationsinmanyindustries.IknewC++andwasbeginningtolearnJava.Theobjectsinmycodewerewell-formedandtightlyencapsulated.Icoulddesignexcell