内容简介
Lookingforareliablewaytolearnhowtoprogramonyourown,withoutbeingoverwhelmedbyconfusingconcepts?HeadFirstProgrammingintroducesthecoreconceptsofwritingcomputerprograms--variables,decisions,loops,functions,andobjects--whichapplyregardlessoftheprogramminglanguage.ThisbookoffersconcreteexamplesandexercisesinthedynamicandversatilePythonlanguagetodemonstrateandreinforcetheseconcepts.Learnthebasictoolstostartwritingtheprogramsthatinterestyou,andgetabetterunderstandingofwhatsoftwarecan(andcannot)do.Whenyou'refinished,you'llhavethenecessaryfoundationtolearnanyprogramminglanguageortackleanysoftwareprojectyouchoose.Withafocusonprogrammingconcepts,thisbookteachesyouhowto:*Understandthecorefeaturesofallprogramminglanguages,including:variables,statements,decisions,loops,expressions,andoperators*Reusecodewithfunctions*Uselibrarycodetosavetimeandeffort*Selectthebestdatastructuretomanagecomplexdata*WriteprogramsthattalktotheWeb*Shareyourdatawithotherprograms*WriteprogramsthattestthemselvesandhelpyouavoidembarrassingcodingerrorsWethinkyourtimeistoovaluabletowastestrugglingwithnewconcepts.Usingthelatestresearchincognitivescienceandlearningtheorytocraftamulti-sensorylearningexperience,HeadFirstProgrammingusesavisuallyrichformatdesignedforthewayyourbrainworks,notatext-heavyapproachthatputsyoutosleep.
作者简介
DavidGriffithsbeganprogrammingatage12,afterbeinginspiredbyadocumentaryontheworkofSeymourPapert.Atage15hewroteanimplementationofPapert'scomputerlanguageLOGO.AfterstudyingPureMathematicsatUniversity,hebeganwritingcodeforcomputersandmagazinearticlesforhumansandhecurrentlyworksintheUK,helpingpeopletocreatesimpler,morevaluablesoftware.Hespendshisfreetimetravelingandtimewithhislovelywife,Dawn.PaulBarryisformallyeducatedandtrainedinComputerScienceandholdsaMastersDegreeinComputingScience.Hehasbeenprogrammingprofessionally,onandoff,forcloseto25years.Paulalreadyhastwotextbookstohisname,andisalsoaContributingEditortoLinuxJournalmagazine.HisdayjobiswiththeInstituteofTechnology,CarlowinIrelandwherehehasspentoveradecadepreparingIreland'snextgenerationofcomputingfolktobeproductiveintheworkforce.Hisroleasathirdleveleducatoraffordshimtheopportunitytoexplore,learnandteachtheverylatestprogrammingtechnologiesandpractices,whichissomethingthatheenjoyseventhoughheknowsthismakeshimabonafide"geek".PaullivesjustoutsidethetownofCarlowinIrelandwithhiswife,twosons,daughter,dogandcat.There'sabunchofcomputersandagrowingcollectionofmusicinstrumentsinthehouse,too(andlikealotoftheHeadFirstfamily,Paulisastrugglingguitaristtrappedinsideageek'sbody).Hehassofarresistedanysuggestionthatthefamilyacquireahamster...orasetofdrums.