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 .
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.
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 .
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 .
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 :