Python's past and present

Figure |  Pexels

Date |  2021.1.15

 

Life is short, I learn Python.

 

A very classic sentence, I don’t know if you have heard it. Maybe some friends just came here and don’t even know what Python is. As for why you want to learn it, the reasons are nothing more than the following:

 

Do reptiles , construction sites , office automation , data analysis , so as to solve specific problems on some efficiency .

 

It does have such a function, and because of its wide applicability and easy to use and learn, it has become the first choice for most people to get started in programming.

 

Many educational institutions sensed this business opportunity and began to vigorously promote Python, creating a craze that everyone can learn Python. It can be learned by people up to 80 years old and children as young as three to five years old, regardless of whether this approach is correct. ,but.

 

You might have come into contact with Python by such a coincidence and became curious about it.

 

Today, we will uncover its mystery step by step, and interpret it from the past and present time dimensions to help everyone better understand Python and learn Python.

 

past

 

Can you believe that Python was designed to pass the time?

 

In 1989, Python author Guido von Rossum (Uncle Turtle) wanted to design a language that was between C and shell, comprehensive, easy to learn, easy to use, and expandable.

 

 

What is the reason that Uncle Turtle wants to design such a natural language?

 

We must know that at that time, Apple and IBM had already set off a wave of personal computers, but these computers were terribly low in configuration. The early Macintosh (Apple's Mac) only had a CPU frequency of 8Mhz and a running memory of 128KB. Compared with today’s 2Ghz CPU at every turn The frequency, 16GB of running memory, is really insignificant.

 

In desperation, programmers at the time had to think like computers in order to write programs that were more in line with computer tastes.

 

This way of thinking makes Uncle Turtle very helpless. He knows how to write a function in C language, but the writing process is too complicated and takes a lot of time.

 

More often, he chooses to use Shell, hundreds of lines of programs in the C language can be solved with just a few lines in Shell. Unfortunately, Shell is not a real programming language, it is essentially called a command, there is no numerical type Data types, even addition, subtraction, multiplication and division are difficult to achieve.

 

Uncle Turtle hopes that there is a language that can fully call the computer's functional interface like C language, and it can be like Shell, which can easily realize programming with a few lines of code.

 

At that time, he was fortunate to participate in the development of the ABC language, which gave him hope, because the goal of the ABC language is to stimulate people's interest in learning programming, making the programming language easy to read , easy to use , easy to remember , and easy to learn .

 

Let's take a look at an ABC program from Wikipedia, this program is used to count the total number of words (Word) appearing in the text:

 

HOW TO RETURN words document:    PUT {} IN collection    FOR line IN document:        FORword IN split line:           IF word not.in collection:               INSERT word IN collection    RETURN collection

 

It can be clearly seen that the ABC language is very close to natural text, just like we usually speak English.

 

It’s easy for a programmer to understand this program, and it’s okay for Xiaobai, I’ll take you with you.

 

HOW TO is used to define a function. The colon: and indentation in this function indicate a program block, which constitutes a part of the program. There is no () in the structure of for and if. If you replace HOW TO with def, Change the PUT line to collection=[], and change the INSERT line to collection.append(word). This is almost a standard Python function.

 

Unfortunately, this kind of language close to natural text still failed to become popular at the time, because its requirements were too high and required a computer with a higher configuration to run.

 

The users of these computers are usually proficient in computers. What they need to think about is not the difficulty of language learning, but the efficiency of the program.

 

In addition, the ABC language still has some fatal problems, such as poor scalability , difficulty in spreading , inability to directly manipulate the file system , and most programmers are not able to accept this new way of writing , making it in its infancy Just cut it in half.

 

Based on the previous experience in designing the ABC language, although it was not very successful, Uncle Turtle still made an attempt. This time, it was also a common hacking behavior.

 

During the Christmas holidays, he began to write a compiler/interpreter for the Python language. The reason why he chose Python as the name of the programming language was taken from Guido’s favorite TV comedy "Monty Parson’s Flight" "The Circus" (Monty Python's Flying Circus).

 

The effort paid off. After two years, Python was officially born in 1991. It is implemented in C language and can call library files in C language.

 

 

After the birth of the Python language, the situation is still quite awkward, and it has been in a state of sullenness. There was a C language brother before and Java, a popular master.

 

1990 was still the era of personal computers, but at that time, most programmers and experienced computer users were already using the Internet frequently to communicate (including email and newsgroup), and a new software development model quietly became popular: open source . Programmers can use their spare time for software development and open source code.

 

As long as the hardware performance is not limited, Python has its place.

 

Subsequently, Uncle Turtle maintained a maillist, and Python users can use emails to communicate. Python users have different backgrounds and different needs. Python itself is open and easy to expand. This time, Python has become popular.

 

right now

 

Python's popularity in the programming world has hit a record high. It not only won the annual TIOBE programming language award, but also was awarded the "most popular programming language" this year.

 

 

Let's take a look at the index trend of TOP10 programming languages ​​in the past ten years (2002-2020)

 

 

Today, it has become the most popular language in fields such as data science and machine learning, but it is also used for web development and back-end programming, and gradually developed into the field of mobile applications, even in larger embedded systems in this way.

 

The main reason for the massive adoption of this language is the ease of learning the language and its high productivity. In a world that aspires to have more developers in various fields, these two qualities are essential.

 

According to statistics, the daily demand for Python talents is as high as 5000+, but at present, there are very few programmers who know Python in the market, and the competition is small, and it is easy to get fast and high-paying employment.

 

From the perspective of the change trend of Python developer salary, Python is currently in the early stage of the industry's outbreak.

 

Engaged in Python development, there are many job opportunities and job positions and job content to choose from. You can work in big data, data analysts, artificial intelligence engineers, etc., and there is a lot of room for future development.

 

Python has great potential in data analysis, data mining, artificial intelligence, web development, etc. In addition, artificial intelligence relies heavily on data and the scarcity of talents in data-related positions. Python's current positions can be described as hot.

 

According to the "Artificial Intelligence Job Market Supply, Demand and Development Report" released by Zhaopin in 2017, the demand for artificial intelligence talents has doubled, and nearly 70% of AI talents have a monthly salary of more than 10,000, and about 1% of the talents are paid monthly. Above 50,000 yuan.

 

The high salary of Python engineers is not just because they know Python as simple as possible, but because they have the ability to work. In the flow of Internet talent, programmers with strong self-learning ability and technical acumen will basically have good development and get rich Return.

 

Finally, I would like to say a few words, no matter what the future destiny of Python, its history itself is extremely interesting. With the current development momentum, it is worth learning, and it is worth understanding its design philosophy in order to better walk into it. The world of Python.

 

The above is the past and present of Python shared today. If the content I wrote is helpful to everyone, please take a second to watch it, let more people know that you are doing your best for your future.

 

-END-

 

Princess [Python Little White Camp], daily dry goods sharing, and exciting activities waiting for you

Reply to "Learning Map": Receive a Python learning map

Reply to "Receive Award": Participate in the recent lucky draw, the mysterious gift package is ready to be sent

Reply to "Big Gift Package": Receive a self-study tutorial for getting started with the Python system

 

 

 

Guess you like

Origin blog.csdn.net/minzhisocute/article/details/112683119