Feel free to switch to go development

In 2020, I made several major decisions. One is to strictly implement the SCD diet, the other is to stick to running, and the third is to settle down and learn python. As of now, I am still satisfied with the three items.

For several months, I insisted on getting up to learn python for at least an hour every morning, and I almost wrote python scripts during work. Originally this year’s plan to the end of the lunar calendar was to take over the company’s Tiyunzong and CMDB platforms, which have been rejected by everyone. But now this juncture just has the opportunity to transfer to the project developed by the operation and maintenance platform. I joined the Go language development project with a 0-based foundation. The matter has reached this point. It has become impossible to take over the work of Tiyunzong and cmdb, but the previous few In the past month, I wrote a lot of python scripts. For example, I used the pexpct package to log in to the switch and then the show command formed a txt file. I used regular expressions to reorder more than 700 Qixinggang old core ACLs. There are many others. If I can think of it, I want to achieve it. Of course, the longest time is to use the Django framework to do a web display of network device configuration backup, which involves many technologies, such as HTML, MySQL, Nginx, Linux timing tasks, and python remote calls. MySQL table data, etc. This display system looks very rudimentary, but to me personally, it takes a long time.

I'm still more fortunate to have taken the initiative to learn python for so long. Although go and python are different types of languages, Python is a scripting object-oriented language, and go is a compiled language, but there are always some similarities between different languages.

I have been working on the network for so many years, from the earliest Cisco lecturer to the small system integrator, to the operator and Party A’s Internet, I have also worked part-time in the construction and maintenance of the office network. The contact area is quite comprehensive, so I put it down all at once. There is an unspeakable feeling. At this time, the language suddenly becomes pale and weak, but the transformation is imminent. It should happen three or four years ago, but it is not too late.

Guess you like

Origin blog.51cto.com/13253290/2542823