程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python is so popular. Do you want to learn it? Listen to Huawei Engineers

編輯:Python

Programming languages are developing very fast , A rising star Python Obviously the most dazzling . Concise and elegant 、 Easy to develop ,“ Life is too short , I use Python” It's not a joke ,Python Become the heart of many engineers “ The most beautiful language ” That makes sense . however , There are people, there are rivers and lakes , So is the world of programming . The rapid rise of Python, It is inevitable to be compared with other languages , and “Python So hot , Do I need to learn ?” It has also become a puzzle for many people …

Recently, there has been a discussion about Python The discussion of the :“ Why use Python”? We talked about , The flexibility of dynamic language is a double-edged sword ,Python Three party Library , The efficiency problem , wait .

The engineer A:

Recently, with Python The more you use this dynamically typed variable language, the more irritated you become , Every time I click the stop sign, I want to break the computer , It's inconvenient , There is no method prompt . This obviously reduces the writing efficiency , Those who have no effective tips say that it is suitable for novices . Of course, there are many supported class libraries around , Any one can write an automatic image recognition point to confirm the game hang up . If dynamic types are trends ,GOOGLE new (09 Released in )go Language Xuancheng combines all the advantages , Don't you still use static types . Planned abandonment Python But the company blows every day Python.

The engineer B:

Python and java Comparison , In fact, Jin Yong's eight heavenly dragons make it very clear ,Python A small nonphasic skill similar to jiumozhi , Rely on the internal force of small reactive power to urge , Can easily handle Shaolin Temple 72 stunt , But when implementing complex, large projects , If you don't understand the underlying things , Will be backfired .java It is similar to the northern hell magic skill , It's powerful , Go out with small reactive power , But the scope of application is not as large as that of small reactive power , Only the martial arts of Tianshan sect can exert its power . You can see it here , In Huawei, which gives priority to efficiency , Of course, it is to encourage everyone to learn Python, Even if you can't win 72 stunt , You can also teach yourself one or two moves to wander the Jianghu .

The engineer C:

Python Write some small tools, light and convenient , Operation and maintenance tools , Prompt association to find a good one IDE It has nothing to do with language .go Cross compilation is easy , Simple deployment , It is suitable for the server to do high concurrency .Java Suitable for business or large projects , The main reason is that the ecology is good , There are many tools , There are many people who can maintain it easily , image go Dependency management is very inconvenient ,Python The performance is still not good . Of course, as long as you awesome actually use any high-level programming language, you can complete the project , Just proficiency , Language maturity , Whether development is convenient or not . Just like the people at the front js, To get a nodejs Play out the back end .

The engineer D:

Yes Python It's really speechless . Although there are many third-party libraries , However, it is extremely difficult to use ,API Whether it is a variable function handle or a class that is returned ? Have no idea . Unless it is often used in fixed fields Python, Be able to be domain specific API Familiar with the heart , Otherwise no help No documents , I can only guess through the source code. I'll go ! It's not suitable for novices at all ? It's not language at all, okay ? Once a reference is made to a third-party library, various dependencies and versions do not match ,2.x and 3.x All call Python They look totally different ! If you need flowers 1 Days to write the core code , Then you need to 2 God, get ready. Are you ready !
The engineer E:
As Python and Go People who know a little , Simply express your point of view :

  1. Language selection mainly depends on the scene , Leaving this aside is all empty talk ;

  2. Python For what scene : Single person or small project development , Because of the blessing of Ecology , Fast ( such as AI、 Data processing ), If you don't use the library , This advantage is not reflected ;

  3. Go For what scene : Large project development , Because of the problem of static compilation , Problems solved by static compilation , One is performance , In addition, problems are found during compilation , Plus strong typing , It is more suitable for multi person cooperation ; then Go Add a lot of engineering optimization and tools , They are all facing the perennial pain points of software engineering , This is not available in academic languages ;

  4. Go Is it so good ? No, it isn't , If for a master , Write Go It's very awkward ( I feel a little bit , But there are many advantages , So I am not an expert ), Because it is different from Python Write any code well enough ,Go There is only one way to write code ( Don't write ), And it's more boring;

  5. In a word :Python Happy writing ,Go Write with confidence , I prefer Python A little more .

author : Coca Cola is not happy

Game programming , A game development favorite ~

If the picture is not displayed for a long time , Please use Chrome Kernel browser .


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved