关闭

关闭

封号提示

内容

首页 [Head.First.C#.2nd.Edition.2010].Andrew.Stellma…

[Head.First.C#.2nd.Edition.2010].Andrew.Stellman.文字版.pdf

[Head.First.C#.2nd.Edition.2010…

上传者: seasongbryant 2013-10-11 评分 0 0 0 0 0 0 暂无简介 简介 举报

简介:本文档为《[Head.First.C#.2nd.Edition.2010].Andrew.Stellman.文字版pdf》,可适用于高等教育领域,主题内容包含AdvancePraiseforHeadFirstC#“I’veneverreadacomputerbookcovertocover,butthis符等。

AdvancePraiseforHeadFirstC#“I’veneverreadacomputerbookcovertocover,butthisoneheldmyinterestfromthefirstpagetothelastIfyouwanttolearnC#indepthandhavefundoingit,thisisTHEbookforyou”AndyParker,fledglingC#programmer“It’shardtoreallylearnaprogramminglanguagewithoutgoodengagingexamples,andthisbookisfullofthem!HeadFirstC#willguidebeginnersofallsortstoalongandproductiverelationshipwithC#andtheNETFramework”ChrisBurrows,developerforMicrosoft’sC#Compilerteam“WithHeadFirstC#,AndrewandJennyhavepresentedanexcellenttutorialonlearningC#ItisveryapproachablewhilecoveringagreatamountofdetailinauniquestyleIfyou’vebeenturnedoffbymoreconventionalbooksonC#,you’lllovethisone”JayHilyard,softwaredeveloper,coauthorofC#Cookbook“I’dreccomendthisbooktoanyonelookingforagreatintroductionintotheworldofprogrammingandC#Fromthefirstpageonwards,theauthorswalksthereaderthroughsomeofthemorechallengingconceptsofC#inasimple,easytofollowwayAttheendofsomeofthelargerprojectslabs,thereadercanlookbackattheirprogramsandstandinaweofwhatthey’veaccomplished”DavidSterling,developerforMicrosoft’sVisualC#Compilerteam“HeadFirstC#isahighlyenjoyabletutorial,fullofmemorableexamplesandentertainingexercisesItslivelystyleissuretocaptivatereadersfromthehumorouslyannotatedexamples,totheFiresideChats,wheretheabstractclassandinterfacebuttheadsinaheatedargument!Foranyonenewtoprogramming,there’snobetterwaytodivein”JosephAlbahari,C#DesignArchitectatEgtonMedicalInformationSystems,theUK’slargestprimaryhealthcaresoftwaresupplier,coauthorofC#inaNutshell“HeadFirstC#wasaneasybooktoreadandunderstandIwillrecommendthisbooktoanydeveloperwantingtojumpintotheC#watersIwillrecommendittotheadvanceddeveloperthatwantstounderstandbetterwhatishappeningwiththeircodeIwillrecommendittodeveloperswhowanttofindabetterwaytoexplainhowC#workstotheirlessseasoneddeveloperfriends”GiuseppeTuritto,C#andASPNETdeveloperforCornwallConsultingGroup“AndrewandJennyhavecraftedanotherstimulatingHeadFirstlearningexperienceGrabapencil,acomputer,andenjoytherideasyouengageyourleftbrain,rightbrain,andfunnybone”BillMietelski,softwareengineer“GoingthroughthisHeadFirstC#bookwasagreatexperienceIhavenotcomeacrossabookserieswhichactuallyteachesyousowell…ThisisabookIwoulddefinitelyrecommendtopeoplewantingtolearnC#”KrishnaPala,MCPPraiseforotherHeadFirstbooks“KathyandBert’sHeadFirstJavatransformstheprintedpageintotheclosestthingtoaGUIyou’veeverseenInawry,hipmanner,theauthorsmakelearningJavaanengaging‘what’retheygonnadonext’experience”WarrenKeuffel,SoftwareDevelopmentMagazine“BeyondtheengagingstylethatdragsyouforwardfromknownothingintoexaltedJavawarriorstatus,HeadFirstJavacoversahugeamountofpracticalmattersthatothertextsleaveasthedreaded“exerciseforthereader…”It’sclever,wry,hipandpracticaltherearen’talotoftextbooksthatcanmakethatclaimandliveuptoitwhilealsoteachingyouaboutobjectserializationandnetworklaunchprotocols”DrDanRussell,DirectorofUserSciencesandExperienceResearchIBMAlmadenResearchCenter(andteachesArtificialIntelligenceatStanfordUniversity)“It’sfast,irreverent,fun,andengagingBecarefulyoumightactuallylearnsomething!”KenArnold,formerSeniorEngineeratSunMicrosystemsCoauthor(withJamesGosling,creatorofJava),TheJavaProgrammingLanguage“Ifeellikeathousandpoundsofbookshavejustbeenliftedoffofmyhead”WardCunningham,inventoroftheWikiandfounderoftheHillsideGroup“Justtherighttoneforthegeekedout,casualcoolgurucoderinallofusTherightreferenceforpracticaldevelopmentstrategiesgetsmybraingoingwithouthavingtoslogthroughabunchoftiredstaleprofessorspeak”TravisKalanick,FounderofScourandRedSwooshMemberoftheMITTR“Therearebooksyoubuy,booksyoukeep,booksyoukeeponyourdesk,andthankstoO’ReillyandtheHeadFirstcrew,thereisthepenultimatecategory,HeadFirstbooksThey’retheonesthataredogeared,mangled,andcarriedeverywhereHeadFirstSQLisatthetopofmystackHeck,eventhePDFIhaveforreviewistatteredandtorn”BillSawyer,ATGCurriculumManager,Oracle“Thisbook’sadmirableclarity,humorandsubstantialdosesofclevermakeitthesortofbookthathelpsevennonprogrammersthinkwellaboutproblemsolving”CoryDoctorow,coeditorofBoingBoingAuthor,DownandOutintheMagicKingdomandSomeoneComestoTown,SomeoneLeavesTownPraiseforotherHeadFirstbooks“Ireceivedthebookyesterdayandstartedtoreadit…andIcouldn’tstopThisisdefinitelytrès‘cool’Itisfun,buttheycoveralotofgroundandtheyarerighttothepointI’mreallyimpressed”ErichGamma,IBMDistinguishedEngineer,andcoauthorofDesignPatterns“OneofthefunniestandsmartestbooksonsoftwaredesignI’veeverread”AaronLaBerge,VPTechnology,ESPNcom“Whatusedtobealongtrialanderrorlearningprocesshasnowbeenreducedneatlyintoanengagingpaperback”MikeDavidson,CEO,Newsvine,Inc“Elegantdesignisatthecoreofeverychapterhere,eachconceptconveyedwithequaldosesofpragmatismandwit”KenGoldstein,ExecutiveVicePresident,DisneyOnline“IHeadFirstHTMLwithCSSXHTMLitteachesyoueverythingyouneedtolearnina‘funcoated’format”SallyApplin,UIDesignerandArtist“Usuallywhenreadingthroughabookorarticleondesignpatterns,I’dhavetooccasionallystickmyselfintheeyewithsomethingjusttomakesureIwaspayingattentionNotwiththisbookOddasitmaysound,thisbookmakeslearningaboutdesignpatternsfun“Whileotherbooksondesignpatternsaresaying‘Bueller…Bueller…Bueller…’thisbookisonthefloatbeltingout‘Shakeitup,baby!’”EricWuehler“IliterallylovethisbookInfact,Ikissedthisbookinfrontofmywife”SatishKumarOtherrelatedbooksfromO’ReillyProgrammingC#C#inaNutshellC#EssentialsC#LanguagePocketReferenceOtherbooksinO’Reilly’sHeadFirstseriesHeadFirstJavaHeadFirstObjectOrientedAnalysisandDesign(OOAD)HeadRushAjaxHeadFirstHTMLwithCSSandXHTMLHeadFirstDesignPatternsHeadFirstServletsandJSPHeadFirstEJBHeadFirstPMPHeadFirstSQLHeadFirstSoftwareDevelopmentHeadFirstJavaScriptHeadFirstAjaxHeadFirstStatisticsHeadFirstPhysicsHeadFirstProgrammingHeadFirstRubyonRailsHeadFirstPHPMySQLHeadFirstAlgebraHeadFirstDataAnalysisHeadFirstExcelBeijing•Cambridge•Kln•Sebastopol•Taipei•TokyoAndrewStellmanJenniferGreeneHeadFirstC#SecondEditionWouldn’titbedreamyiftherewasaC#bookthatwasmorefunthanendlesslydebuggingcodeIt’sprobablynothingbutafantasyHeadFirstC#SecondEditionbyAndrewStellmanandJenniferGreeneCopyrightAndrewStellmanandJenniferGreeneAllrightsreservedPrintedintheUnitedStatesofAmericaPublishedbyO’ReillyMedia,Inc,GravensteinHighwayNorth,Sebastopol,CAO’ReillyMediabooksmaybepurchasedforeducational,business,orsalespromotionaluseOnlineeditionsarealsoavailableformosttitles(http:mysafaribooksonlinecom)Formoreinformation,contactourcorporateinstitutionalsalesdepartment:()orcorporateoreillycomSeriesCreators:KathySierra,BertBatesCoverDesigners:LouiseBarr,KarenMontgomeryProductionEditor:RachelMonaghanProofreader:EmilyQuillIndexer:LucieHaskinsPageViewers:QuentinthewhippetandTequilathepomeranianPrintingHistory:November:FirstEditionMay:SecondEditionTheO’ReillylogoisaregisteredtrademarkofO’ReillyMedia,IncTheHeadFirstseriesdesignations,HeadFirstC#,andrelatedtradedressaretrademarksofO’ReillyMedia,IncMicrosoft,Windows,VisualStudio,MSDN,theNETlogo,VisualBasicandVisualC#areregisteredtrademarksofMicrosoftCorporationManyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarksWherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc,wasawareofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcapsWhileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandtheauthorsassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcontainedhereinNobees,spacealiens,orcomicbookheroeswereharmedinthemakingofthisbookISBN:SBThisbookisdedicatedtothelovingmemoryofSludgietheWhale,whoswamtoBrooklynonApril,Youwereonlyinourcanalforaday,butyou’llbeinourheartsforeverviiiJenniferGreenestudiedphilosophyincollegebut,likeeveryoneelseinthefield,couldn’tfindajobdoingitLuckily,she’sagreatsoftwareengineer,soshestartedoutworkingatanonlineservice,andthat’sthefirsttimeshereallygotagoodsenseofwhatgoodsoftwaredevelopmentlookedlikeShemovedtoNewYorkintoworkonsoftwarequallityatafinancialsoftwarecompanyShemanagedateamoftestersatareallycoolstartupthatdidartificialintelligenceandnaturallanguageprocessingSincethen,she’straveledallovertheworldtoworkwithdifferentsoftwareteamsandbuildallkindsofcoolprojectsShelovestraveling,watchingBollywoodmovies,readingtheoccasionalcomicbook,playingPSgames(especiallyLittleBigPlanet!),andowningawhippetAndrewStellman,despitebeingraisedaNewYorker,haslivedinPittsburghtwiceThefirsttimewaswhenhegraduatedfromCarnegieMellon’sSchoolofComputerScience,andthenagainwhenheandJennywerestartingtheirconsultingbusinessandwritingtheirfirstbookforO’ReillyWhenhemovedbacktohishometown,hisfirstjobaftercollegewasasaprogrammeratEMICapitolRecordswhichactuallymadesense,sincehewenttoLaGuardiaHighSchoolofMusicandArtandthePerformingArtstostudycelloandjazzbassguitarHeandJennyfirstworkedtogetheratthatsamefinancialsoftwarecompany,wherehewasmanagingateamofprogrammersHe’shadtheprivilegeofworkingwithsomeprettyamazingprogrammersovertheyears,andlikestothinkthathe’slearnedafewthingsfromthemWhenhe’snotwritingbooks,Andrewkeepshimselfbusywritinguseless(butfun)software,playingmusic(butvideogamesevenmore),experimentingwithcircuitsthatmakeoddnoises,studyingtaijiandaikido,havingagirlfriendnamedLisa,andowningapomeraniantheauthorsJennyandAndrewhavebeenbuildingsoftwareandwritingaboutsoftwareengineeringtogethersincetheyfirstmetinTheirfirstbook,AppliedSoftwareProjectManagement,waspublishedbyO’ReillyinTheypublishedtheirfirstbookintheHeadFirstseries,HeadFirstPMP,inTheyfoundedStellmanGreeneConsultingintobuildareallyneatsoftwareprojectforscientistsstudyingherbicideexposureinVietnamvetsWhenthey’renotbuildingsoftwareorwritingbooks,theydoalotofspeakingatconferencesandmeetingsofsoftwareengineers,architectsandprojectmanagersCheckouttheirblog,BuildingBetterSoftware:http:wwwstellmangreenecomJennyAndrewThanksforbuyingourbook!Wereallylovewritingaboutthisstuff,andwehopeyougetakickoutofreadingit……becauseweknowyou’regoingtohaveagreattimelearningC#Thisphoto(andthephotooftheGowanusCanal)byNishaSondhetableofcontentsixTableofContents(Summary)TableofContents(therealthing)YourbrainonC#You’resittingaroundtryingtolearnsomething,butyourbrainkeepstellingyouallthatlearningisn’timportantYourbrain’ssaying,“Betterleaveroomformoreimportantthings,likewhichwildanimalstoavoidandwhethernudearcheryisabadidea”SohowdoyoutrickyourbrainintothinkingthatyourlifereallydependsonlearningC#IntroWhoisthisbookforxxxWeknowwhatyou’rethinkingxxxiMetacognitionxxxiiiBendyourbrainintosubmissionxxxvWhatyouneedforthisbookxxxviReadmexxxviiThetechnicalreviewteamxxxviiiAcknowledgmentsxxxixIntroxxixGetproductivewithC#:VisualApplications,inminutesorlessIt’sAllJustCode:UnderthehoodObjects:GetOriented:MakingcodemakesenseTypesandReferences:It’s:DoyouknowwhereyourdataisC#Lab:ADayattheracesEncapsulation:Keepyourprivates…privateInheritance:Yourobject’sfamilytreeInterfacesandabstractclasses:MakingclasseskeeptheirpromisesEnumsandcollections:StoringlotsofdataC#Lab:TheQuestReadingandWritingFiles:Savethebytearray,savetheworldExceptionHandling:PuttingoutfiresgetsoldEventsandDelegates:Whatyourcodedoeswhenyou’renotlookingReviewandPreview:Knowledge,power,andbuildingcoolstuffControlsandGraphics:MakeitprettyCaptainAmazing:TheDeathoftheObjectLINQ:GetcontrolofyourdataC#Lab:InvadersiLeftovers:ThetopthingswewantedtoincludeinthisbooktableofcontentsxVisualApplications,inminutesorlessWanttobuildgreatprogramsreallyfastWithC#,you’vegotapowerfulprogramminglanguageandavaluabletoolatyourfingertipsWiththeVisualStudioIDE,you’llneverhavetospendhourswritingobscurecodetogetabuttonworkingagainEvenbetter,you’llbeabletofocusongettingyourworkdone,ratherthanrememberingwhichmethodparameterwasforthenameofabutton,andwhichonewasforitslabelSoundappealingTurnthepage,andlet’sgetprogramminggetproductivewithC#WhyyoushouldlearnC#C#andtheVisualStudioIDEmakelotsofthingseasyHelptheCEOgopaperlessGettoknowyourusers’needsbeforeyoustartbuildingyourprogramWhatyoudoinVisualStudio…WhatVisualStudiodoesforyou…DeveloptheuserinterfaceVisualStudio,behindthescenesAddtotheautogeneratedcodeWeneedadatabasetostoreourinformationTheIDEcreatedadatabaseSQLisitsownlanguageCreatingthetablefortheContactListFinishbuildingthetableInsertyourcarddataintothedatabaseConnectyourformtoyourdatabaseobjectswithadatasourceAdddatabasedrivencontrolstoyourformHowtoturnYOURapplicationintoEVERYONE’SapplicationGiveyouruserstheapplicationYou’reNOTdone:testyourinstallationYou’vebuiltacompletedatadrivenapplicationtableofcontentsxiUnderthehoodYou’reaprogrammer,notjustanIDEuserYoucangetalotofworkdoneusingtheIDEButthere’sonlysofaritcantakeyouSure,therearealotofrepetitivetasksthatyoudowhenyoubuildanapplicationAndtheIDEisgreatatdoingthosethingsforyouButworkingwiththeIDEisonlythebeginningYoucangetyourprogramstodosomuchmoreandwritingC#codeishowyoudoitOnceyougetthehangofcoding,there’snothingyourprogramscan’tdoit’salljustcodeWhenyou’redoingthis……theIDEdoesthisWhereprogramscomefromTheIDEhelpsyoucodeWhenyouchangethingsintheIDE,you’realsochangingyourcodeAnatomyofaprogramYourprogramknowswheretostartTwoclassescanbeinthesamenamespaceYourprogramsusevariablestoworkwithdataC#usesfamiliarmathsymbolsUsethedebuggertoseeyourvariableschangeLoopsperformanactionoverandoverTimetostartcodingifelsestatementsmakedecisionsSetupconditionsandseeifthey’retruetableofcontentsxiiMakingCodeMakeSenseEveryprogramyouwritesolvesaproblemWhenyou’rebuildingaprogram,it’salwaysagoodideatostartbythinkingaboutwhatproblemyourprogram’ssupposedtosolveThat’swhyobjectsarereallyusefulTheyletyoustructureyourcodebasedontheproblemit’ssolving,sothatyoucanspendyourtimethinkingabouttheproblemyouneedtoworkonratherthangettingboggeddowninthemechanicsofwritingcodeWhenyouuseobjectsright,youendupwithcodethat’sintuitivetowrite,andeasytoreadandchangeobjects:getoriented!newNavigator()newNavigator()newNavigator()HowMikethinksabouthisproblemsHowMike’scarnavigationsystemthinksabouthisproblemsMike’sNavigatorclasshasmethodstosetandmodifyroutesUsewhatyou’velearnedtobuildaprogramthatusesaclassMikecanuseobjectstosolvehisproblemYouuseaclasstobuildanobjectWhenyoucreateanewobjectfromaclass,it’scalledaninstanceofthatclassAbettersolution…broughttoyoubyobjects!AninstanceusesfieldstokeeptrackofthingsLet’screatesomeinstances!What’sonyourprogram’smindYoucanuseclassandmethodnamestomakeyourcodeintuitiveGiveyourclassesanaturalstructureClassdiagramshelpyouorganizeyourclassessotheymakesenseBuildaclasstoworkwithsomeguysCreateaprojectforyourguysBuildaformtointeractwiththeguysThere’saneasierwaytoinitializeobjectstableofcontentsxiiiIt’s:DoyouknowwhereyourdataisDatatype,database,LieutenantCommanderData…it’sallimportantstuffWithoutdata,yourprogramsareuselessYouneedinformationfromyourusers,andyouusethattolookuporproducenewinformationtogivebacktothemInfact,almosteverythingyoudoinprogramminginvolvesworkingwithdatainonewayoranotherInthischapter,you’lllearntheinsandoutsofC#’sdatatypes,seehowtoworkwithdatainyourprogram,andevenfigureoutafewdirtysecretsaboutobjects(pssst…objectsaredata,too)typesandreferencesThevariable’stypedetermineswhatkindofdataitcanstoreAvariableislikeadatatogocuppoundsofdatainapoundbagEvenwhenanumberistherightsize,youcan’tjustassignittoanyvariableWhenyoucastavaluethat’stoobig,C#willadjustitautomaticallyC#doessomecastingautomaticallyWhenyoucallamethod,theargumentsmustbecompatiblewiththetypesoftheparametersCombining=withanoperatorObjectsusevariables,tooRefertoyourobjectswithreferencevariablesReferencesarelikelabelsforyourobjectIftherearen’tanymorereferences,yourobjectgetsgarbagecollectedMultiplereferencesandtheirsideeffectsTworeferen

职业精品

精彩专题

上传我的资料

热门资料

资料评价:

/ 840
所需积分:2 立即下载

意见
反馈

返回
顶部

Q