Home>Article>Backend Development> Senior C++ developer says: Python is the best entry-level programming language
Translator|Bugatti
Reviser|Sun Shujuan
Phil Nash is COne of theearly developersof the testing framework and a development advocate ofSonarSource.He believes thatnew programmers looking for a first language and anyone who wants toadd another language to theirtoolkit should Start withPython.
NashTellThe New Stack: "Choosing Python isboring, butreasonsexciting. PythonVeryeasy to get, itisgradually becoming arealprofessional grade, very popular language. I thinkno otherlanguage thatmeets all these requirementslike Python.”
So,JavaScriptWhat are the problems with using it as the first language? Nash said that JavaScript is a good choice, but it has never been a beginner-friendly language. ##. By the wayBASIC: Thisis a very ## from the80era#Popular programming language, the full name ofis "Universal symbolic instructions for beginners". It's simple,butit's not averygood language, so people don'tUsed it to develop professional-gradeapplications until Microsoft introducedVisual in the90Basic.
Nash said that thepopularPythonisnot the same, because it issimple to use, but as developers become more experienced,becomesThendelve into more complex uses, and finallywrite the actualapplication.Nash believes thatJavaScriptis also quite simple, but more of it ispurely accidental,rather thanis intentionallydesigned.He said: "
JavaScriptoriginallywas designed asOTHER USES,inadvertentlybecame the most popular language in the world,justbecause it basicallyBundled with the Web. Therefore,JavaScript is aworth learningexcellentLanguage, but itis not friendly to beginners.”On the other hand,
Pythonat the same timesatisfiesboth aspects:Beginner-friendly andandvery useful.Nash said: "
It reads more like pseudocode written on paper, whenYou sketch out theideaand it gets transformedinto actual working code in theproduction code base. No It’s more suitable for beginners than this.It has also beenwidely used in industry.”He often goes back and forth betweenPython
andJavaScript##Switching,The biggest confusion caused by thisis to figure out whether to add points## at the end of theline#Number.
He said: "This is one ofJavaScript'sproblems#,manyare optional. So the semicolon is actually optional,exceptinOneIn some casesitis notoptional.Python One of the tenets ofis that there should be a right way to do things. This is not always true, but in general,itattempts to design things,So that there is an obvious way to do things, the Pythonway. Everything looks unified,JavaScript is almostthe complete opposite.”
Python as a second language: What you should Do you bother?You might say, Pythondoesn’t matter.Speaking of the web, if youare a front-end/Web developer,JavaScriptis indeedthe king.
Wish youconsider:AnacondaOpen Source PyScriptAfter being released last year,nowmoves to thefront-end.
#You can alsouse Python on the backendas a great Webtechnology,Ioften do this. Itstillis beginning to show some potential of the front-end language,althoughis still in the early stages. Now judge whether it willIt's too early to catch on, but it's out there, and ifyoualready have Python skills, you can nowClaiming or thinking that#yourselfis afront-end developer, at least ifyou've tried the waters.Changed toOther languages, I’m afraid I can’t say that.”
ButIt's too late for younow, youhave already learned JavaScript or other languages.Nashbelieves that Pythonis also an idealcomplementarylanguage.
He said: "Python is a great scripting language. It also hascomplete functionality in this regard because itAimed atproblemsScalable.”
Anotherdifferentiating advantage of Pythonis,itis aDynamic Language.So,for exampleWhenyoudeclare a variable, you don’t have to say what type of variable it is(Number,StringorBoolean). The language infersbased on how youuse it, much like JjavaScript. This is not the case for Java orC, they are both strongly typed languages.He added thatDynamic languages are generally easier for beginners.“Python is a dynamic language, which means that
youcan Make mistakes in your code that are only caught at runtime, whereas statically typed languages will catcherrorsat compile time. Many people including myself generally prefer statically typed languages ,Especiallyfor morelargermore complex code bases. Python now has optional type annotations,Bringsmany benefits, but only ifyouuse additional static analysis tools.”He added
that Sonar provides astatic analysis tool that can Discovermismatchesof the types used, even in Python.Python can beused as amore complex code base(such as C
)'sfriendly front end.
He said: "YoucanusePython interfaceto wrap, and thenIt's easy to write Python code based on this. So this is what mostmachine learninglibraries do,Likethey're actually mostly written inC,handle thelow-level heavy lifting, and then be nice and relatively simple Python front-end. It is actually an excellentsecond language.If you want to learn another language,most developersIn the toolkitThere should be Python.”
Python is as it is on the machine Famous for its application in learning, it is also a popular language in the financial field,on the one hand due toNumPy and quantitativesubcalculations , whichapplymathematical and statistical methodsdeal withfinancial and risk management problems.
He said: "Quantum computingdevelopersused to use C# almost exclusively##Process the work, maybe use MATLAB to sketch, and then they will convert the code intoCIn order toimprove performance. ButWithPython and NumPy, they found that they could actually do it in onesoftwareget everything in the package. Their code looks likewritten inMATLABbutThe bottom layer ofexecutes likeC.”Developers Things you need to know about PythonW
backends for eb developmentMain Python framework:Django and Flask. Nash uses Flaskfor Webdevelopment.
He said: "Django is more like the traditionalWeb framework,you have toDoingthe Django way. Nowyouare basicallyDjango developer. Flaskborrows many aspects fromDjango, but is less self-contained.You can actuallyintroduce other dependencies to dothe way youwant, I When programmingI like this.”
himmeans, and there arecountlesstutorials and resources on the Internet for learning these frameworks orknowledge related to Python. Python has alsoappeared #with#operating systemsbased on Unix(such as MacOS or Linux)##On the machine. Windowssystems can add it,only requires a simple installation. Then justtype Pythonto access it from the command line.Thenit enters an interactiveshell(shell)and the developer can immediately Start entering the code. Itcan alsobe accessed via an IDE, such as PyCharm(forPython IDE), or throughcombined with theplug-in of VS Code.Pythonis not a high-performance language likeCor Java, but it isCan also play a role in theseprogrammingprojects.He said: "In application areas where performance is not important,
Pythonis usually ideal.Alternativelyyoucan combine it with high performance Languages are used in combination;#Thus achieving the best of both worlds”##Original title:Veteran C Developer Says Python Is Best Starter Language, Author: Loraine Lawson
The above is the detailed content of Senior C++ developer says: Python is the best entry-level programming language. For more information, please follow other related articles on the PHP Chinese website!