One day, I suddenly found that there is an employee, his code quality and good, functional completion and fast, as long as his module with others, not only the code is not a problem, but also help others find a lot of problems. I am curious about this phenomenon, after a few weeks of continuous observation, in a technical conversation, I let him say that there are some magical martial arts skills can be shared. He said there is nothing else to hide the trick, just use the Python tool, this tool is absolutely more practical than the Sunflower Treasure book, because it does not have to self-palace, can be successful. I carefully collate the technical points he shared, and write this article to share with you. Learning Easy Python is a relatively easy language to learn, because it is a very high-level language, more than C and C + + language, but also advanced several levels, even a primary school just graduated students can learn. It does not need to manage memory allocations, it does not need to define the types of variables to use, there are many built-in data types to use directly, without having to consider how to create these types, such as lists, dictionaries, strings and other advanced features. In addition, the code written by it can be run directly without the need to compile the operation. Also, the code written with it is very short, the amount of typing can be much less, can really save a lot of keyboard damage, reduce the "keyboard hand" disease production, for developers, health is the biggest cost, if the hands are damaged, nothing can be done. High development efficiency Python is the most efficient language to develop, it is 6 times times more efficient than C, and simply speaking, if a C developer is working for 6 days, a developer using Python will only have to work one day, meaning that a python developer can only be on the day of the week. It is twice times more efficient than C + +, and it is 1.5 times times more efficient than Java and C #. There is such a high development efficiency, of course, the cost of performance, but from the current hardware technology progress, the current CPU computing capacity is generally excessive, and more and more hardware costs are reduced, but the cost of labor more expensive. In fact, from the perspective of social progress, but also tools more and more advanced, but the complexity of the brain management is not followed by improvement, obviously to improve it is more difficult. At present in the embedded system are slowly toward multicore CPU, in mobile phones, have entered the 64-bit 8 nuclear era. In the embedded system aspect, also has the Pyboard such open source project to carry on, such embedded python mainly applies to the robot control aspect. Commissioning is easy to develop and debug, both on the Windows platform and the Linux platform. Cross-platform operation is more convenient, if there is no platform differences in the API interface, just write the code once, you can run on the Windows platform or Linux platform. Open source free python, both commercially and in education, is free to use, meaning it can be entered at zero cost to learn it and use it. Python has a number of fully functional developmentLibraries can be used. Test field requirements testing is a considerable amount of work in software development, such as module testing, when the developer put a module function, need to test whether the module is correct, you need to build a bunch of test code, can be verified. At this point, if you use C + + or Java to write these features, obviously not using python come quickly, from the previous efficiency can be seen. As a result, this is usually the development pattern: The published software is developed using C + + or Java, but the code tested is developed using Python. For instance, the embedded system involves the network communication aspect, needs to send the network data and receives the network data unceasingly to the embedded system, may use the Python to build a test environment, so spends the very little time, can the embedded system verification, improves the code quality, Reduce commissioning time for embedded systems and other systems, as well as later maintenance times. In addition, by using the Python language to write a large number of scripts, you can improve the level of automated testing, each release of a version, you can put the previous test cases, fully automated testing, which will greatly improve the rapid release of software requirements. Like the test cases I've seen, there are tens of thousands of of them, which, if tested by hand, are very slow and not comprehensive. The current use of fully automated testing, 24 hours a day to run, a computer equivalent to 10 test staff workload, can be seen to bring much efficiency. In the foreseeable future, in the field of testing, Python's job requirements will continue to increase, requiring all testers to master this handy tool. Cai Junsheng qq:9073204 Shenzhen
Why use Python?