Linguaggio di programmazione

Introductio

Computerprogramminglanguages​​canrealizecommunicationandcommunicationbetweenhumansandmachines,andcomputerprogramminglanguages​​mainlyincludeassemblylanguage,machinelanguageandhigh-levellanguages.Thespecificcontentisasfollows:p>

Conventus

ThislanguageismainlywrittenwiththeabbreviationEnglishasthelabel,andthosewritteninassemblylanguagearegenerallyrelativelysimplesmallprograms.Itismoreconvenientinexecution,butassemblylanguageismoreverboseintermsofprogram,soithasahighererrorrate.

Machinelanguage

Thislanguagemainlyusesbinarycodetosendinstructions,whichcanbequicklyrecognizedbythecomputer,anditsflexibilityisrelativelyhigh.Andtheexecutionspeedisconsiderable,andthesimilaritybetweenmachinelanguageandassemblylanguageisrelativelyhigh,butduetoitslimitations,therearecertainconstraintsinuse.

Summus levellanguage

Theso-calledhigh-levellanguageisactuallyageneraltermafterthecombinationofmultipleprogramminglanguages.ItcanintegratemultipleinstructionsandcombineItbecomesasingleinstructiontocompletethedelivery.Ithasbeenappropriatelysimplifiedintermsofoperationdetailsandintermediateprocedures.Therefore,theentireprogramissimplerandhasstrongoperability.ThesimplificationofthiscodingmethodmakesthecomputerProgrammingrequirementsfortheprofessionallevelofrelevantstaffarecontinuouslyrelaxed.

Developmenthistory

Thefirstcomputerwasinventedinthe1940s.Atthattime,thevariouscontrolsofthecomputerweremainlyrealizedbymanualoperation,butintermsofconvenienceThereareseriousshortcomingsinthisregard.Afteryearsofdevelopment,relevantpersonnelhaveputforwardtheideaof​​usingaprogramminglanguagetocontrolthecomputer.Althoughtheprogrammingmodelatthattimewasnotperfect,ithasproducedahugeboosttothedevelopmentofcomputerprogramminglanguages.Thecomputerprogramminglanguagewasgraduallyperfectedinthehalfcenturyafterthis.Withthedevelopmentofsociety,technicalrequirementsinvariousfieldscontinuetoincrease,whichmakesthedevelopmentofcomputerprogrammingmoreandmorecomplexanddiversified.Inthiscase,somevisualandintegratedlanguageenvironmentshavegraduallybeguntoemerge.Onlyasimplekeystrokeisrequiredtocompleteapieceofcode,whichgreatlyreducesthecapitalcostandtimecostofcomputerprogramming.Coupledwiththeemergenceofsomehigh-levellanguages,suchasPascal,Fortran,andClanguage,computermanipulationnolongerrequiresalotofcapitalandlabor.Untilthe1990s,thefieldofcomputerprogrammingdevelopedrapidly,andsomeobject-orientedlanguages​​weregraduallyborn.Summus levellanguages​​suchasJava,etc.,makecomputerprogramsgraduallydevelopfromtheoriginalcommunicationandcalculationtothedirectionofvideoanalysis,imagetransmission,intelligentsimulation,andknowledgeprocessing.Inotherwords,datacollection,analysis,andmanagementarerealizedthroughcomputernetworktechnologyoperate.Withthecontinuousdevelopmentofmoderncivilization,computerprogramminglanguages​​havebeenabletomeettheinformatizationneedsofvariousfields.

Experiencetheeraandrepresentativelanguages

Programminglanguages​​aregenerallydividedinto:low-levellanguages,high-levellanguages,andobject-orientederas.

Theeraoflow-levellanguages

Theeraoflow-levellanguages​​(1946-1953)mainlyincludesthemachinelanguageandassemblylanguageknownasthe"BookofHeaven".

Computerworkisbasedonbinary.Fundamentally,thecomputercanonlyrecognizeandacceptinstructionscomposedof0and1.Thesetoftheseinstructionsisthemachinelanguageofthecomputer.Thedisadvantagesofmachinelanguageinclude:difficulttolearn,difficulttowrite,difficulttoremember,difficulttocheck,difficulttomodify,anddifficulttopromoteanduse.Therefore,onlyaverysmallnumberofcomputerprofessionalscanwritecomputerprogramsintheearlydays.

Conventusisdifficulttounderstandinmachinelanguage,Moqilaiandothersbegantothinkofusingmnemonicstoreplace0,1codes,soassemblylanguageappeared.

Theeraofhigh-levellanguages

Theeraofhigh-levellanguages​​(1954-present)-Withtheemergenceoftheworld'sfirsthigh-levellanguagefortran,newprogramminglanguages​​begantoemerge.Overthepastfewdecades,morethan2500high-levellanguages​​haveemergedallovertheworld.Somehavebecomepopulartoday,whilesomehavegraduallydisappeared.

Thefirsthigh-levellanguage-Fortran

Inordertoovercometheshortcomingsoflow-levellanguages,itwascreatedbyJohnBackusinthe1950sThefirstcomputerhigh-levellanguage-FORTRANlanguagewasreleased.Itisveryclosetothenaturallanguageandmathematicallanguagethatpeopleareaccustomedtousing.Theoperatorsandoperationexpressionsusedintheprogramareeasytounderstandandeasytouse.AndFORTRANplaysanimportantroleinthefieldsofnumerical,scientificandengineeringcalculationswithitsuniquefunctions.

Thefirststructuredprogramminglanguage-ALGOL

Thisisthefirstbatchofclearlydefinedhigh-levellanguages​​inthehistoryofcomputerdevelopment.Thejointconferenceformedbythejointforcewasdevelopedinthe1950swhentransistorcomputerswerestillpopular.TheInternationalComputerSociety(ACM)listedtheALGOLmodelasastandardforalgorithmdescription,andinspiredtheemergenceofALGOL-likemodernlanguages​​suchasPascal,Ada,andClanguages.

Thesimplestlanguage-BASIC

In1964,theBASIClanguagewasofficiallyreleased.ItwasjointlydevelopedbythedeanofDartmouthCollege,theHungarianJohnG.Kemeny,andthemathematicsteacherThomasE.Kurtz.Thelanguagehasonly26variablenames,17statements,12functionsand3commands.Thislanguageiscalled"Beginner'sgeneralsymbolinstructioncode.

Animportantmilestoneintheprogramminglanguage-Pascal

ThisisbasedontheALGOLprogramminglanguage,NamedinmemoryofBlaisePascal,aFrenchmathematician,philosopher,andcomputerpioneer.ItwasdesignedandfoundedbyProfessorNiklausWirthofSwitzerlandinthelate1960s.Pascalisthefirststructurewithrigorousgrammarandclearhierarchy.Programminglanguageiscalled"animportantmilestoneinprogramminglanguage".

Thestartingpointofmodernprogramminglanguagerevolution-Clanguage

ClanguageTheancestoristheBCPL(BasicCombinedProgrammingLanguage)language.In1970,KenThompsonofBellLaboratoriesintheUnitedStatesdesignedtheBlanguageonthebasisoftheBCPLlanguage.Thenfrom1972to1973,DennisM.RitchiedesignedtheClanguageonthebasisofKenThompson.

Object-orientedera

Object-orientedera (prima 90s-praesens) - Object-Orientedprogramming(Programming Object-Oriented, OOPforshort) nunc valde magnum est in tota progressione designationis, andits maximas facultates in capsulationis, haereditatem et polymorphismum.

Java

Javaisahigh-levelprogramminglanguagelaunchedbySunMicrosystemin1995.Enteringthe21stcentury,Javaenterprise-levelapplicationshavedevelopedrapidly,andaremainlyusedintheconstructionofinformationplatformsintelecommunications,finance,transportationandotherindustries.JavaisauniversallyapplicableThesoftwareplatformhasmainfeaturessuchaseasytolearnanduse,platformindependence,portability,multithreading,robustness,dynamics,andsecurity.

Python

nearInthepastfewyears,thePythonlanguagehasbeenrisingrapidly,mainlyduetothedevelopmentofbigdataandartificialintelligence.WiththeadvancementoftheindustrialInternet,thefuturedevelopmentspaceofthePythonlanguagewillbefurtherexpanded.Pythonisahigh-levelscriptinglanguageItiscurrentlyusedinthefieldsofWebandInternetdevelopment,scientificcomputingandstatistics,education,softwaredevelopment,andback-enddevelopment,andhastheadvantagesofeasylearning,fastrunning,portability,scalability,andembedding.

Electionprinciple

(1)Comprehensivelyconsiderthehardwareenvironmentinwhichthesoftwareisrunning.Ifitisinthehardwareenvironment.Theupdateefficiencyisrelativelyhigh.Oncethehardwareenvironmentchangestoacertainextent,thecomputerwillbeprogrammedThebudgetcannotquicklymeetthehardwareenvironment.Thismakestheprogramprogramminghaveacertainimpact.Therefore,programmersneedtoThesoftwareadjuststhecontenttoconsidercomprehensively.Andpayattentiontoappropriatelyreducingthedifficultyofsoftwareadjustment.

(2)Comprehensivelyconsiderthesupportabilityoftheplatform.Intheprocessofdevelopingprogramprogramming,weshouldconsidertheimpactoftheapplicationplatformontheprogramminglanguage,andimplementscientificadjustmentstotheapplicationplatformbasedonthecharacteristicsoftheprogramminglanguage,soastoimprovetheworklevelandgivefullplaytotheroleoftheprogramminglanguage.

(3)Thinkabouttheactualproblemsofprogramprogramming.Intheprocessofprogramprogramming,whenconsideringtheabovetwoquestionscomprehensively.Itisalsonecessarytocomprehensivelythinkabouttheactualsituationofprogramming.Therefore,intheprocessofselectingacomputerprogramminglanguage,programmersarerequiredtohaveanunderstandingofthecharacteristicsoftheprogramminglanguage.Programmersareintheprocessofdevelopingspecificsoftware.Amoreprofessionalcomputerprogramminglanguageshouldbeused.Professionalprogramminglanguages​​caneffectivelyimprovethestandardizationofsoftwaredevelopment.

Selectionskills

Inthedevelopmentofcomputersoftware,themostimportantkeyistoensurethatthecomputerprogramisoperatingnormally.Thisrequirescomputerprogrammerstoinvestigatetheprogramindetail.Afterthesurveyiscompleted,randomsamplingandintegrationofcomputer-relateddataandinformation,andthenselectthemostappropriatetypeofcomputerprogramminglanguage,onthisbasis,inordertoreducetheerrorrateofcomputerprograms.Intheprocessofselectingcomputerlanguages,computerprogrammersmustfullyconsidertheadvantagesandcharacteristicsofcomputerprogramminglanguages,weightheprosandcons,andreasonablycontroltheactualcostofcomputerlanguagedevelopmentinordertomaximizetheeffectsofcomputerprogramminglanguages.

(1)Beforechoosingaprogramminglanguage,theoverallframeworkoftheprojectshouldbefullyconsideredtodeterminethedistributionofprogramminglanguages.Becauseallpartsoftheentireprojectarewritteninonelanguage.Inaddition,theconnectionanddecompositionofcomponentsiscloselyrelatedtothechoiceofprogramminglanguage.Insomeprojects,itisrelativelysimpletochoosethebestprogramminglanguage,buttheprogrammingprocessisflexible.Thebestlanguageselectionneedstobechangedaccordingtotheprogramrequirements.

(2)Undertheprincipleofscienceandrationality,weshouldchoosethemostfamiliarprogramminglanguage.Becausedevelopersarefamiliarwithacertainlanguage,theycangreatlyhelpthempredictthedevelopmenttime,processandothercontent,whichcanavoidmajorchangesandimproveprogrammingefficiency.

(3)Fullconsiderationshouldbegiventohigh-costoperations,suchasencryption,graphicsrendering,videoprocessing,andothercontentoperations.Forthesehigh-costoperatingmodules,developersshouldchooseastaticlanguagethatneedstobecompiled.JAVAandC#arethebestchoices.

(4)Atpresent,thedevelopmentenvironmentofprogramminglanguages​​isnolongerlimitedtothecomputerhardwareenvironment.Thehardwareenvironmentissufficientforsoftwaredevelopment,butforsomespecialapplicationsoftwareorserioussituations,theprogrammingenvironmentismorethanjustahardwareenvironment.Therefore,scientificandreasonablechoicesshouldbemadesothattheprogramstheywritecanrunwellinthisenvironment.

(5)Thesupportplatformisanimportantbasisforchoosingaprogramminglanguage.Forexample,thecodeneedstoruninthecustomer'sbrowser,whichresultsinfewerprogramminglanguages​​tochoosefrom.

(6)Theuseofanyprogramminglanguageneedstoensurethatthewrittenprogramcanbeadjustedintimeaccordingtoactualneeds.Therefore,arapidprototypingenvironmentisveryimportant.Inthisenvironment,thecombinationofdynamiclanguages​​andrelatedlibrariescangreatlyenhanceitsadvantages.

Applicationem

Atthecurrentstage,inordertoobtainhigherapplicationqualityofcomputersoftwaretechnology,andtocontinuouslyimprovethelevelofinformatizationinallsectorsofsociety,scientificresearchersinrelatedfieldsareworkingoncomputerContinuousimprovementandinnovationoftheprogramminglanguages​​intheChineselanguagetoimprovetheintuitivenessandeaseoflearningofcomputerprogramminglanguages,sothatprogrammerscanobtainmoreconvenientprogramminglanguages,andcurrentlywidelyusedprogramminglanguages​​includePython,PHP,Java,C++,VB,andClanguages.Differentprogramminglanguages​​havedifferentadvantagesinapplication.Therefore,duringspecificapplications,youneedtochooseaprogramminglanguagewithhigheradaptabilityandpertinenceinaccordancewithyourownneeds.Inordertoensuretheadvantagesoftheselectedprogramminglanguage.

PHP

Inessence,thePHPcomputerprogramminglanguageisoneoftheHTMLembeddedlanguages,anditbelongstothemainstreamofdynamicwebsiteprogramminglanguages.Programminglanguage,butinspecificapplications,youneedtoeffectivelycooperatewithhtmlcss+p+jsandotherlanguages​​tobuildarelativelycompletewebsite.ThemainfunctionofthislanguageistoeffectivelyexecutetheHTMLdocumentinformation,andthroughandTheeffectiveintegrationofmultipleprogramminglanguages​​tomeettheuser'scomputeroperationandcontrolneeds,suchasPerd,Java,andClanguage,etc.,inaddition,theapplicationofPHPasaprogramminglanguagecanalsoachieveeffectiveconstructionofdynamicwebpages.

Java

Javaisanobject-basedprogramminglanguage.Itsfocusisonspecificalgorithmsfordataapplicationandmanipulation,asadistributionAtypeoflanguageisanimportantpartofthehigh-performanceInternetarchitecture.Ithasmanyadvantages,suchassimplesyntax,automaticmemorymanagement,cross-platformtransplantation,highreliabilityofexceptionhandling,andcompletebytecodeSecuritymechanismhasawiderangeofapplicationsintheinformationage,especiallyintheInternet,gamecontrol,personalPCandmultimedia,etc.Ithasavitalrole,anditisalsowidelyusedinsoftwareandwebsiteconstruction.ThemosttypicalistheapplicationintheAndroidAPP.Inaddition,someofficesoftwareonthecomputersideisalsowrittenintheJavalanguage,suchasExcelandWord,butcomparedwiththeClanguage,theJavaprogramminglanguageisrelativelylowintermsofmechanicalefficiency,butitseconomyandPortabilityisoneofitsbiggestadvantages,soitsapplicationsinthefieldofbigdataandsupercomputersarerelativelymore.TakingtheapplicationofJavatechnologyintheconstructionofgovernmentwebsitesasanexample,intheprocessofconstructinggovernmentwebsites,thegeneralbuildablewebsitestructureisdividedinto3layers,namelythebusinesslayer,thedatalayerandthepresentationlayer.Thedatalayerismainlyresponsibleforthemanagementofmassdataandprovidesconvenientconditionsforwebsiteservices.Thebusinesslayer,inwhichthebusinesslogicofeachsubsystemisintegrated,andthedataexchangebetweenthedatalayerandthebusinesslayerisrealizedthroughtheintermediatesupportlayer.Thebusinesslayercanensurethesmoothrealizationofwebsiteapplicationfunctionsandprovidestandardizeddevelopment.interface.Presentationlayer,thislayerismainlyresponsibleforinformationinteractionanddatadisplay,isresponsiblefortechnicallyrelatedtotheuser'srequest,combinedwiththespecifictypeofrequest,transmitsittotheapplicationserver,andfinallyfeedsbacktheprocessingresulttotheuser.Intheprocessofbuildingagovernmentwebsite,adistributeddesignisgenerallyadopted,andrelatedsoftwareisintegratedatthecorrespondinglevel.Atthesametime,thedevelopmentworkcanalsobecompletedwiththehelpoftheproductapplicationdevelopmentinterface.Javatechnologycanprovideapplicationdevelopmentprogramminginterfacesandstandardizedcomponents,andfinallycombinedifferentneedstoreusefunctions,andcanalsobecombinedatwill.

C++

Currently,mostoftheonlinegamesweareexposedtoaredevelopedonthebasisofC++,andarerelativelycommonoperationsincomputersThesystemkerneliswritteninClanguage,suchasWindows/Linux,etc.TheC++language,whichiscontinuouslyoptimizedonthebasisofClanguage,hasobviousadvantagesduringtheapplicationperiod.ItcanimprovetheprogramminglanguageTherunningstateiseffectivelyoptimized,andC++hasfurtherimprovedthecompletenessoftheClanguage.Inparticular,itsrobustnessandconcisenesshavebeenfavoredbyprogrammers,soitiswidelyusedinprogramming.Inaddition,C++hasstrongdrawingcapabilitiesanddataprocessingcapabilities,andtheflexibilityoftransplantationisrelativelystrong.Therefore,itiswidelyusedingraphicsprocessing,systemsoftware,games,andmobilephones.Thewell-knownTetrisisTypicalapplicationofC++language.

Developmenttrend

Withthedevelopmentandprogressofscienceandtechnology,thecontinuousinnovationofcomputersoftwareandhardwaretechnology,especiallythedevelopmentofthemulti-coreera,hasgraduallychangedthetraditionalformofcomputerarchitecture.Affectedbythisformofdevelopment,computersshouldalsomakecorrespondingchangesinprogramminglanguages.Onlyinthiswaycantheinformationdevelopmentneedsofallsectorsofsocietybebettermet,andwewanttoachieveoptimizationandinnovationinprogramminglanguages.,Wemuststartfromtheaspectsofprogrammeroperation,programminglanguageapplication,object-orientedspaceexpansionandplatformindependence.

(1)Itisnecessarytoensuretheconvenienceofvariousoperationsforusers.Asfarasthecurrentcomputerprogramisconcerned,itscoremainlineisdataabstractionandobject-orientedprogramming.Inordertomakethevariousoperationsoftheprogramminglanguagemoreconvenient,itisnecessarytoensurethattheprogramminglanguageissimpleandeasytolearn,anditsprofessionalismisconstantlyreduced.Witheaseofuseasthemaindevelopmentdirection,toensurethatusersonlyneedtomasterthebasicconceptsandoperationmethods,theycanwritesomerelativelysimpleprogramstoensureconvenientoperation.

(2)Theprogramminglanguageshouldbebasedonobjectstoachievedeepdevelopment,andprovideastrongdynamicinterfacemodelandsimpleclassmechanism.Byusingtheinheritancemechanism,subclassescanapplythemethodsgivenbytheparentclasstoachievecodereuse.Inaddition,thecomputernetworkitselfhasstrongopenness.Therefore,intheprocessoffuturedevelopmentofprogramminglanguages,securityshouldbefullyconsidered,sothatprogrammingcanobtainarelativelysafeenvironment.Therefore,securityprotectionshouldbeprovided.Themechanismistobebuilt,combinedwiththerelevantcharacteristicsofprogramwriting,toconstructasecuritysystemtoensuretheharmonyandsafetyofthewritingenvironment.Themainpurposeofimprovingplatformindependenceistowriteprogramsthatcanbeportedtodifferentplatformsormachinestoavoidbeingaffectedbytheplatform.Thisisalsoanimportantdirectionforthefuturedevelopmentofprogramminglanguages.Underthisdevelopmentmodel,applicationswillbemorewhenwritingprograms.Conveniencewillenableittoobtainawiderrangeofapplications.

DeclarativeprogrammingandDSL

Declarativeprogrammingtellsthecomputerwhattocalculateinsteadofhowtocalculate.

Munusprogramming

Thecodeisconcise,et progressionem; itisclosetonaturallanguage, facile intellige; magis convenient codemanagement;facilis"concurrentprogramming";hotcodeupgrade.

Dynamiclanguage

Dynamiclanguagereferstoaprogramthatcanchangeitsstructurewhileitisrunning.Itrepresentsthegeneraltrendoffasterandsimplertechnology,andwillinevitablybecomethefutureofbuildingsoftwareandITTheprotagonistoftechnology.

Concurrentprogramming

Theinevitablerequirementofthemulti-coreera.

Related Articles
TOP