基于新信息技術(shù)的計算機英語(第二版)課件 Unit 5 Programming Language_第1頁
基于新信息技術(shù)的計算機英語(第二版)課件 Unit 5 Programming Language_第2頁
基于新信息技術(shù)的計算機英語(第二版)課件 Unit 5 Programming Language_第3頁
基于新信息技術(shù)的計算機英語(第二版)課件 Unit 5 Programming Language_第4頁
基于新信息技術(shù)的計算機英語(第二版)課件 Unit 5 Programming Language_第5頁
已閱讀5頁,還剩25頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

Section1SituationalDialogue

Section2ReadingMaterial

Section3ExtendedReadingSection1SituationalDialogueCallAboutCoursesofComputerProgrammingA:Hello,thisistheadmissionsoffice.CanIhelpyou?B:Hi.I'mcallingaboutyourcontinuingeducationprogram.A:Whatwouldyouliketoknow?B:Iwanttobecomecertifiedincomputerprogramming.Doyouofferanypart-timecoursesforadultfurthereducation?A:Yes,weofferbothnightandweekendcoursesinanumberofdifferentsubjects.B:HowdoIsignup?A:Ifyougivemeyouraddress,Icanmailyouaninformationpacketandtheapplicationforms.B:Great!Section2ReadingMaterialIntroductiontoProgrammingLanguageAprogramminglanguageisusedtowritecomputerprogramsincludingapplications,utilities,andsystemsprograms.BeforetheJavaandC#programminglanguagesappeared,computerprogramswereeithercompiledorinterpreted.Acompiledprogramiswrittenasaseriesofhumanlyunderstandablecomputerinstructionsthatcanbereadbyacompilerandlinkerandtranslatedintomachinecodesothatacomputercanunderstandandrunit.Fortran,Pascal,AssemblyLanguage,C,andC++programminglanguagesarealmostalwayscompiledinthisway.Otherprograms,suchasBasic,JavaScript,andVBScript,areinterpreted.Thedifferencesbetweencompiledandinterpretedlanguagescanbeconfusing.CompilingaprogramThedevelopmentofacompiledprogramfollowsthesebasicsteps:1.?Writeoredittheprogram.2.?Compiletheprogramintomachinecodefilesthatarespecifictothetargetmachine.3.?Linkthemachinecodefilesintoarunnableprogram(knownasanEXEfile).4.?Debugorruntheprogram.InterpretingaprogramInterpretingaprogramisamuchfasterprocessthat'shelpfulfornoviceprogrammerswheneditingandtestingtheircode.Theseprogramsrunslowerthancompiledprograms.Thestepstointerpretaprogramare:1.?Writeoredittheprogram.2.?Debugorruntheprogramusinganinterpreterprogram.JavaandC#BothJavaandC#aresemi-compiled.CompilingJavageneratesbytecodethatislaterinterpretedbyaJavavirtualmachine.Asaresult,thecodeiscompiledinatwo-stageprocess.C#iscompiledintoCommonIntermediateLanguage,whichisthenrunbytheCommonLanguageRuntimepartoftheNETframework,anenvironmentthatsupportsjust-in-timecompilation.ThespeedofC#andJavaisalmostasfastastruecompiledlanguage.Asfarasspeedgoes,C,C++,andC#allaresufficientlyspeedyforgamesandoperatingsystems.Aretheremanyprogramsonacomputer?Fromthemomentyouturnonyourcomputer,itisrunningprograms,carryingoutinstructions,testingRAMandaccessingtheoperatingsystemonitsdrive.Eachandeveryoperationthatyourcomputerperformshasinstructionsthatsomeonehadtowriteinaprogramminglanguage.Forexample,theWindows10operatingsystemhasroughly50millionlinesofcode.Thesehadtobecreated,compiledandtested,whichisalongandcomplextask.Whatprogramminglanguagesarenowinuse?TopprogramminglanguagesforPCsareJavaandC++withC#closebehindandCholdingitsown.AppleproductsuseObjective-CandSwiftprogramminglanguages.Therearehundredsofsmallprogramminglanguagesoutthere,butotherpopularprogramminglanguagesinclude:·Python·PHP·Perl·Ruby·Go·Rust·ScalaTherehavebeenmanyattemptstoautomatetheprocessofwritingandtestingprogramminglanguagesbyhavingcomputerswritecomputerprograms,butthecomplexityissuchthat,fornow,humansstillwriteandtestcomputerprograms.ThefutureforprogramminglanguagesComputerprogrammerstendtouseprogramminglanguagestheyknow.Asaresult,theoldtried-and-truelanguageshavehungaroundforalongtime.Withthepopularityofmobiledevices,developersmaybemoreopentolearningnewprogramminglanguages.AppledevelopedSwifttoeventuallyreplaceObjective-C,andGoogledevelopedGotobemoreefficientthanC.Adoptionofthesenewprogramshasbeenslow,butsteady.TheCProgrammingLanguageIntroductiontothebasicsofCprogrammingTheCprogramminglanguageisapopularandwidelyusedprogramminglanguageforcreatingcomputerprograms.ProgrammersaroundtheworldembraceCbecauseitgivesmaximumcontrolandefficiencytotheprogrammer.Ifyouareaprogrammer,orifyouareinterestedinbecomingaprogrammer,thereareacoupleofbenefitsyouwillgainfromlearningC.Youwillbeabletoreadandwritecodeforalargenumberofplatforms-everythingfrommicrocontrollerstothemostadvancedscientificsystemscanbewritteninC,andmanymodernoperatingsystemsarewritteninC.ThejumptotheobjectorientedC+?+languagebecomesmucheasier.C+?+isanextensionofC,anditisnearlyimpossibletolearnC+?+withoutlearningCfirst.WhatisC?Cisacomputerprogramminglanguage.ThatmeansthatyoucanuseCtocreatelistsofinstructionsforacomputertofollow.Cisoneofthousandsofprogramminglanguagescurrentlyinuse.Chasbeenaroundforseveraldecadesandhaswonwidespreadacceptancebecauseitgivesprogrammersmaximumcontrolandefficiency.Cisaneasylanguagetolearn.Itisabitmorecrypticinitsstylethansomeotherlanguages,butyougetbeyondthatfairlyquickly.Ciswhatiscalledacompiledlanguage.ThismeansthatonceyouwriteyourCprogram,youmustrunitthroughaCcompilertoturnyourprogramintoanexecutableprogramthatthecomputercanrun(execute).TheCprogramisthehuman-readableform,whiletheexecutablethatcomesoutofthecompileristhemachine-readableandexecutableform.ItmeanstowriteandrunaCprogram,youmusthaveaccesstoaCcompiler.IfyouareusingaUNIXmachine(forexample,ifyouarewritingCGIscriptsinConyourhost'sUNIXcomputer,orifyouareastudentworkingonalab'sUNIXmachine),theCcompilerisavailableforfree.Itiscalledeither"cc"or"gcc"andisavailableonthecommandline.Ifyouareastudent,thentheschoolwilllikelyprovideyouwithacompiler-findoutwhattheschoolisusingandlearnaboutit.IfyouareworkingathomeonaWindowsmachine,youaregoingtoneedtodownloadafreeCcompilerorpurchaseacommercialcompiler.AwidelyusedcommercialcompilerisMicrosoft'sVisualC+?+environment(itcompilesbothCandC++programs).Unfortunately,thisprogramcostsseveralhundreddollars.Ifyoudonothavehundredsofdollarstospendonacommercialcompiler,thenyoucanuseoneofthefreecompilersavailableontheWeb.ThesimplestCprogramLet'sstartwiththesimplestCprogramanduseitbothtounderstandthebasicsofCandtheCcompilationprocess.Typethefollowingprogramintoastandardtexteditor(vioremacsonUNIX,NotepadonWindowsorTeachTextonaMacintosh).Thensavetheprogramtoafilenamedsamp.c.Ifyouleaveoff".c",youwillprobablygetsomesortsoferrorwhenyoucompileit,somakesureyourememberthe".c".Also,makesurethatyoureditordoesnotautomaticallyappendsomeextracharacters(suchas.txt)tothenameofthefile.Here'sthefirstprogram:#include<stdio.h>intmain(){ printf("Helloworld!\n");return0;}Whenexecuted,thisprograminstructsthecomputertoprintouttheline"Helloworld!"-thentheprogramquits.Youcan'tgetmuchsimplerthanthat!Tocompilethiscode,takethefollowingsteps:OnaUNIXmachine,typegccsamp.c-osamp(ifgccdoesnotwork,trycc).ThislineinvokestheCcompilercalledgcc,asksittocompilesamp.candasksittoplacetheexecutablefileitcreatesunderthenamesamp.Toruntheprogram,typesamp(or,onsomeUNIXmachines,./samp).OnaDOSorWindowsmachineusingDJGPP,atanMS-DOSprompttypegccsamp.c-osamp.exe.ThislineinvokestheCcompilercalledgcc,asksittocompilesamp.candasksittoplacetheexecutablefileitcreatesunderthenamesamp.exe.Toruntheprogram,typesamp.Section3ExtendedReadingWhatIstheJavaLanguage?Javaisageneral-purposecomputer-programminglanguagethatisconcurrent,class-based,object-oriented,andspecificallydesignedtohaveasfewimplementationdependenciesaspossible.Itisintendedtoletapplicationdevelopers"WriteOnce,RunAnywhere"(WORA),meaningthatcompiledJavacodecanrunonallplatformsthatsupportJavawithouttheneedforrecompilation.JavaapplicationsaretypicallycompiledtobytecodethatcanrunonanyJavaVirtualMachine(JVM)regardlessofcomputerarchitecture.Asof2016,Javaisoneofthemostpopularprogramminglanguagesinuse,particularlyforclient-serverwebapplications,withareported9milliondevelopers.JavawasoriginallydevelopedbyJamesGoslingatSunMicrosystems(whichhassincebeenacquiredbyOracleCorporation)andreleasedin1995asacorecomponentofSunMicrosystems'Javaplatform.ThelanguagederivesmuchofitssyntaxfromCandC+?+,butithasfewerlow-levelfacilitiesthaneitherofthem.TheoriginalandreferenceimplementationJavacompilers,virtualmachines,andclasslibrarieswereoriginallyreleasedbySununderproprietarylicenses.AsofMay2007,incompliancewiththespecificationsoftheJavaCommunityProcess,SunrelicensedmostofitsJavatechnologiesundertheGNUGeneralPublicLicense.OthershavealsodevelopedalternativeimplementationsoftheseSuntechnologies,suchastheGNUCompilerforJava(bytecodecompiler),GNUClasspath(standardlibraries),andIcedTea-Web(browserpluginforapplets).ThelatestversionofJavaLTSisJava17,releasedinSeptember2021.ThisisaLongTermSupport(LTS)version,whichmeansitwillreceiveatleast8yearsofsecurityupdatesandfixes.Java17hasbroughtsomenewfeatures,suchaspatternmatching,sealedclasses,textblocks,etc.,improvingthereadabilityandflexibilityofthecode.IfyouwanttousethelatestJavatechnologyanddon'tmindupdatingyourcodefrequently,Java17maybeagoodchoice.ObjectOrientedProgrammingObjectOrientedProgramming(OOP)isatermlooselyappliedtomeananykindofprogrammingthatusesaprogramminglanguagewithsomeobjectorientedconstructsorprogramminginanenvironmentwheresomeobjectorientedprinciplesarefollowed.Itisaprogrammingparadigmthatuses"objects"-datastructuresconsistingofdatafieldsandmethodstogetherwiththeirinteractions-todesignapplicationsandcomputerprograms.ObjectOrientedProgramminghasrootsthatcanbetracedtothe1960s.Ashardwareandsoftwarebecameincreasinglycomplex,manageabilityoftenbecameaconcern.ResearchersstudiedwaystomaintainsoftwarequalityanddevelopedObjectOrientedProgramminginparttoaddresscommonproblemsbystronglyemphasizingdiscrete,reusableunitsofprogramminglogic.Thetechnologyfocusesondataratherthanprocesses,withprogramscomposedofself-sufficientmodules("classes"),eachinstanceofwhich("objects")containsalltheinformationneededtomanipulateitsowndatastructure("members").Thisisincontrasttotheexistingmodularprogrammingwhichhadbeendominantformanyyearsthatfocusedonthefunctionofamodule,ratherthanspecificallythedata,butequallyprovidedforcodereuse,enablingcollaborationthroughtheuseoflinkedmodules("subroutines").Thismoreconventionalapproach,whichstillpersists,tendstoconsiderdataandbehaviorseparately.OOPwasnotcommonlyusedinmainstreamsoftwareapplicationdevelopmentuntiltheearly1990s.ManymodernprogramminglanguagesnowsupportOOP.OneoftheprincipaladvantagesofObjectOrientedProgrammingtechniquesoverproceduralprogrammingtechniquesisthattheyenableprogrammerstocreatemodulesthatdonotneedtobechangedwhenanewtypeofobjectisadded.Aprogrammercansimplycreateanewobjectthatinheritsmanyofitsfeaturesfromexistingobjects.Otherpiecesofsoftwarecanaccesstheobjectonlybycallingitsfunctionsandproceduresthathavebeenallowedtobecalledbyoutsiders.Thismakesobjectorientedprogramseasiertomodify.Anobjectorientedprogrammaythusbeviewedasacollectionofinteractingobjects,asopposedtotheconventionalmodel,inwhichaprogramisseenasalistoftasks("subroutines")toperform.InOOP,eachobjectiscapableofreceivingmessages,processingdata,andsendingmessagestootherobjectsandcanbeviewedasanindependent"machine"withadistinctroleorresponsibility.TheimportantprinciplesofObjectOrientedProgrammingarelistedbelow:ClassAclassisablueprintthatdefinesthevariablesandthemethodscommontoallobjectsofacertainkindandisusedtomanufactureorcreateobjects.Itdefinestheabstractcharacteristicsofathing("object").Forexample,theclassCarwouldconsistoftraitssharedbyallcars,suchasbrandandcolor("characteristics"),andtheabilitytomove.Classesprovidemodularityandstructureinanobjectorientedcomputerprogram.Aclassshouldtypicallyberecognizabletoanon-programmerfamiliarwiththeproblemdomain,meaningthatthecharacteristicsoftheclassshouldmakesenseincontext.Collectively,thepropertiesandmethodsdefinedbyaclassarecalled"members".ObjectAnobjectisalsoknownasaninstance.Itisasoftwarebundleofrelatedstateandbehavior.Itisaninstance(thatis,anactualexample)ofaclass.Softwareobjectsareoftenusedtomodelthereal-worldobjectsthatyoufindineverydaylife.Itconsistsofstateandthebehaviorthat'sdefinedintheobject'sclass.Forexample,theclassCarprovidesapatternorblueprintforcarobjectsbylistingthecharacteristicsandbehaviorstheycanhave;theobjectcarwithplatenumber"皖C35828"isoneparticularcar.MessageSoftwareobjectsinteractandcommunicatewitheachotherbysendingmessagestoeachother.WhenobjectAwantsobjectBtoperformoneofB'smethods,objectAsendsamessagetoobjectB.Forexample,theobjectcalleddrivermayfireacartostartupbypassinga"fire"messagewhichinvokesthecar's"fire"method.InheritanceInheritanceisawaytoformnewclassesbyusingclassesthathavealreadybeendefined.Inheritanceisemployedtohelpreuseexistingcodewithlittleornomodification.Thenewclasses,knownassub-classes,inheritattributesandbehaviorofthepre-existingclasses,whicharereferredtoassuper-classes.Theinheritancerelationshipofsub-classesandsuper-classesgivesrisetoahierarchy.Forexample,theclassCarmighthavesub-classescalledLorry,Motorcycle,andCarriage.SupposetheCarclassdefinesamethodcalledbrakeandapropertycalledwheelbase.Eachofitssub-classes(Lorry,Motorcycle,andCarriage)willinheritthesemembers,meaningthattheprogrammeronlyneedstowritethecodeforthemonce.HowtoLearnaProgrammingLanguageIfyouhaveaninterestincreatingcomputerprograms,mobileapps,websites,gamesoranyotherpieceofsoftware,you'llneedtolearnhowtoprogram.Programsarecreatedthroughtheuseofaprogramminglanguage.Thislanguageallowstheprogramtofunctionwiththemachineitisrunningon,beitacomputer,amobilephone,oranyotherpieceofhardware.ChoosingalanguageDetermineyourareaofinterest.Youcanstartlearningwithanyprogramminglanguage(thoughsomearedefinitely"easier"thanothers),soyou'llwanttostartbyaskingyourselfwhatyouwanttoaccomplishbylearningaprogramminglanguage.Thiswillhelpyoutodeterminewhattypeofprogramminglanguageyoushouldpursue,andprovideyouagoodstartingpoint.Ifyouwanttogetintowebdevelopment,you'llhaveawholedifferentsetoflanguagesthatyou'llneedtolearnasopposedtodevelopingcomputerprograms.Mobileappdevelopingrequiresadifferentskillsetcomparedwithmachineprogramming.Allofthesedecisionswillinfluenceyourdirection.Considerstartingwitha"simpler"language.Regardlessofyourdecision,youmaywanttoconsiderstartingwithoneofthehigh-level,simplerlanguages.Theselanguagesareespeciallyusefulforbeginners,astheyteachbasicconceptsandthoughtprocessesthatcanapplytovirtuallyanylanguage.ThetwomostpopularlanguagesinthiscategoryarePythonandRuby.Thesearebothobject-orientedwebapplicationlanguagesthatuseaveryreadablesyntax."Object-oriented"meansthatthelanguageisbuiltaroundtheconceptsof"objects",orcollectionsofdata,andtheirmanipulation.ThisisaconceptthatisusedinmanyadvancedprogramminglanguagessuchasC+?+,Java,Objective-C,andPHP.Readthroughsomebasictutorialsforavarietyoflanguages.Ifyou'restillnotsurewhichlanguageyoushouldstartlearning,readthroughsometutorialsforafewdifferentlanguages.Ifonelanguagemakesabitmoresensethantheothers,tryitoutforabittoseeifitclicks.Therearecountlesstutorialsforeveryprogramminglanguageavailableonline,includingmanyonwikiHow:·Python-Agreatstarterlanguagethatisalsoquitepowerfulwhenyougetfamiliarwithit.Usedformanywebapplicationsandanumberofgames.·Java-Usedincountlesstypesofprograms,fromgamestowebapplicationstoATMsoftware.·HTML-Anessentialstartingplaceforanywebdeveloper.HavingahandleonHTMLisvitalbeforemovingontoanyothersortofwebdevelopment.·C-Oneoftheolderlanguages,Cisstillapowerfultool,andisthebasisforthemoremodernC+?+,C#,andObjective-C.StartingsmallLearnthecoreconceptsofthelanguage.Whilethepartsofthisstepthatapplywillvarydependingonthelanguageyouchoose,allprogramminglanguageshavefundamentalconceptsthatareessentialtobuildingusefulprograms.Learningandmasteringtheseconceptsearlywillmakeiteasiertosolveproblemsandcreatepowerfulandefficientcode.Belowarejustsomeofthecoreconceptsfoundinmanydifferentlanguages.Variables-Avariableisawaytostoreandrefertochangingpiecesofdata.Variablescanbemanipulated,andoftenhavedefinedtypessuchas"integers""characters",andothers,whichdeterminethetypeofdatathatcanbestored.Whencoding,variablestypicallyhavenamesthatmakethemsomewhatidentifiabletoahumanreader.Thismakesiteasiertounderstandhowthevariableinteractswiththerestofthecode.Conditionalstatements-Aconditionalstatementisanactionthatisperformedbasedonwhetherthestatementistrueornot.Themostcommonformofaconditionalstatementisthe"If-Then"statement.Ifthestatementistrue(e.g.x=5)thenonethinghappens.Ifthestatementisfalse(e.g.x!=5),thensomethingelsehappens.Functionsorsubroutines-Theactualnameforthisconceptmaybecalledsomethingdifferentdependingonthelanguage.Itcouldalsobe"Procedure"a"Method",ora"CallableUnit".Thisisessentiallyasmallerprogramwithinalargerprogram.Afunctioncanbe"called"bytheprogrammultipletimes,allowingtheprogrammertoefficientlycreatecomplexprograms.Datainput-Thisisabroadconceptthatisusedinnearlyeverylanguage.Itinvolveshandlingauser'sinputaswellasstoringthatdata.Howthatdataisgathereddependonthetypeofprogramandtheinputsavailabletotheuser(keyboard,file,etc.).ThisiscloselylinkedtoOutput,whichishowtheresultisreturnedtotheuser,beitdisplayedonthescreenordeliveredinafile.Installanynecessarysoftware.Manyprogramminglanguagesrequirecompilers,whichareprogramsdesignedtotranslatethecodeintoalanguagethatthemachinecanunderstand.Otherlanguages,suchasPython,useaninterpreterwhichcanexecutetheprogramsinstantlywithoutcompiling.SomelanguageshaveIDEs(IntegratedDevelopmentEnvironment)whichusuallycontainacodeeditor,acompilerand/orinterpreter,andadebugger.Thisallowstheprogrammertoperformanynecessaryfunctioninoneplace.IDEsmayalsocontainvisualrepresentationsofobjecthierarchiesanddirectories.Thereareavarietyofcodeeditorsavailableonline.Theseprogramsofferdifferentwaysofhighlightingsyntaxandprovideotherdeveloper-friendlytools.CreatingyourfirstprogramFocusononeconceptatatime.Oneofthefirstprogramstaughtforanylanguageisthe"HelloWorld"program.Thisisaverysimpleprogramthatdisplaysthetext"HelloWorld"(orsomevariation),onscreen.Thisprogramteachesfirst-timeprogrammersthesyntaxtocreateabasic,functioningprogram,aswellashowtohandledisplayingoutput.Bychangingthetext,youcanlearnhowbasicdataishandledbytheprogram.BelowaresomewikiHowguidesoncreatinga"HelloWorld"programinvariouslanguages:·HelloWorldinPython·HelloWorldinRuby·HelloWorldinC·HelloWorldinPHP·HelloWorldinC#·HelloWorldinJavaLearnthroughdeconstructionofonlineexamples.Therearethousandsofcodeexamplesonlineforvirtuallyeveryprogramminglanguages.Usetheseexamplestoexaminehowvariousaspectsofthelanguageworkandhowdifferentpartsinteract.Takebitsandpiecesfromvariousexamplestocreateyourownprograms.Examinethesyntax.Thesyntaxisthewaythelanguageiswrittensothatthecompilerorinterpretercanunderstandit.Eachlanguagehasauniquesyntax,thoughsomeelementsmaybesharedacrossmultiplelanguages.Learningthesyntaxisessentialforlearninghowtoprograminthelanguage,andisoftenwhatpeoplethinkofwhentheythinkaboutcomputerprogramming.Inreality,itissimplythefoundationuponwhichmoreadvancedconceptsarebuilt.Experimentwithchanges.Makechangestoyourexampleprogramsandthentesttheresult.Byexperimenting,youcanlearnwhatworksandwhatdoesn'tmuchquickerthanbyreadingabookorguide.Don'tbeafraidtobreakyourprogram;learningtofixerrorsisamajorpartofanydevelopmentprocess,andnewthingsalmostneverworkrightthefirsttime.Startpracticingdebugging.Whenyou'reprogramming,you'reinvariablygoingtocomeacrossbugs.Theseareerrorsintheprogram,andcanmanifestvirtuallyanywhere.Bugscanbeharmlessquirksintheprogram,ortheycanbemajorerrorsthatstoptheprogramfromcompilingorrunning.Huntingdownandfixingtheseerrorsisamajorprocessinthesoftwaredevelopmentcycle,sogetusedtodoingthisearly.Asyouexperimentwithchangingbasicprograms,you'regoingtocomeacrossthingsthatdon'twork.Figuringouthowtotakeadifferentapproachisoneofthemostvaluableskillsyoucanhaveasaprogrammer.Commentallofyourcode.Nearlyallprogramminglanguageshavea"comment"functionthatallowsyoutoincludetextthatisnotprocessedbytheinterpreterorcompiler.Thisallowsyoutoleaveshort,butclear,human-languageexplanationsofwhatthecodedoes.Thiswillnotonlyhelpyourememberwhatyourcodedoesinalargeprogram,itisanessentialpracticeinacollaborativeenvironment,asitallowsotherstounderstandwhatyourcodeisdoing.PracticingregularlyCodedaily.Masteringaprogramminglanguagetakestimeaboveallelse.EvenasimplerlanguagelikePython,whichmayonlytakeadayortwotounderstandthebasicsyntax,buttakeslotsoftimetobecometrulyproficientat.Likeanyotherskills,practiceisthekeytobecomingmoreproficient.Trytospendatleastsometimeeachdayoncoding,evenifit'sonlyanhourbetweenworkanddinner.Setgoalsforyourprograms.Bysettingattainablebutchallenginggoals,youwillbeabletostartsolvingproblemsandcomingupwithsolutions.Trytothinkofabasicapplication,suchasacalculator,anddevelopawaytomakeit.Usethesyntaxandconceptsyou'vebeenlearningandapplythemtopracticaluses.Talkwithothersandreadotherprograms.Therearelotsofprogrammingcommunitiesdedicatedtospecificlanguagesordisciplines.Findingandparticipatinginacommunitycandowondersforyourlearning.Youwillgainaccesstoavarietyofsamplesandtoolsthatcanaidyouinyourlearningprocess.Readingotherprogrammers'codecaninspireyouandhelpyoutograspconceptsthatyouhaven'tmasteredyet.Checkoutprogrammingforumsandonlinecommunitiesforyourlanguageofchoice.Makesuretoparticipateandnotjustconstantlyaskquestions.ThesecommunitiesareusuallyviewedasaplaceofcollaborationanddiscussionandnotsimplyQ&A.Feelfreetoaskforhelp,butbepreparedtoshowyourworkandbeopentotrydifferentapproaches.Onceyouhavesomeexperienceunderyourbelt,considerattendingahack-a-thonorprogrammingjam.Theseareeventswhereindividualsorteamscompeteagainsttheclocktodevelopafunctionalprogram,usuallybasedaroundaspecifictheme.Theseeventscanbealotoffunandareagreatwaytomeetotherprogrammers.Challengeyourselftokeepitfun.Trytodothingsthatyoudon'tknowhowtodoyet.Researchwaystoaccomplishthetask(orasimilarone),andthentrytoimplementthatinyourownprogram.Trytoavoidbeingcontentwithaprogramthat"basically"works;doeverythingyoucantomakesureeveryaspectworksflawlessly.ExpandingyourknowledgeTakeafewtrainingcourses.Manyuniversities,communitycollegesandcommunitycentersofferprogrammingclassesandworkshopsthatyoucanattendwithouthavingtoenrollintheschool.Thesecanbegreatfornewprogrammers,asyoucangethands-onhelpfromanexperiencedprogrammer,aswellasnetworkwithotherlocalprogrammers.Buyorborrowabook.Therearethousandsofinstructionalbooksavailableforeveryconceivableprogramminglanguage.Whileyourknowledgeshouldnotcomestrictlyfromabook,theymakegreatreferencesandoftencontainalotofgoodexamples.Studymathandlogic.Mostprogramminginvolvesbasicarithmetic,butyoumaywanttostudymoreadvancedconcepts.Thisisespecial

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論