0-learn the importance of accessing API materials and how to learn; 0-view api importance

Source: Internet
Author: User

0-learn the importance of accessing API materials and how to learn; 0-view api importance

I don't know how to feel about my programming experience. Until now, I have been using python3, supplemented by R, but I have not learned the following: vb, c ++ (mql4), java, matlab ...... each programming language has its own merits. I chose to learn something, and it was not a fly in the first place. But then I realized one sentence:

For a tom, it is important not to write programs that can run quickly, but to quickly write programs that can run.

Based on this theory, I finally chose python3. However, I was fooled by the "incomplete packages supported by python3" on the Internet, so I learned from python2 until I saw it.In 2020, the official website no longer targets python2.Supported.

In fact, the difference between python2 and python3 is not very big. The General Code adds brackets to print and replaces raw_input () with input. In addition, python3 provides powerful support for string UTF-8, allowing you to print () Chinese characters directly and no longer need to easily tangle character encoding issues like python2. Of course, I am very lucky to learn python now. You just need to select python 3.

I also remember that I used to be a programmer (and I have always been :)). At that time, I spent a lot of time focusing on financial transactions. After a long time, I found that it was very hard to use my personal abilities. Of course, financial transactions only rely on manpower rather than making money. But after I learned that smart transactions and procedural transactions are powerful, I began to find a way to learn programming, find the method for making programmatic transactions.

At first I thought programming was not very easy. Of course, after gradually learning and increasing the amount of code written by myself, it may be that it is perfect. After reading some introductory books and trying to solve some pitfalls, I felt that I was able to find some API programs, make changes, and then achieve my goal.

Soon, I found something like GitHub on the Internet with many projects. Each project has many files. When I first read this article, I will understand where the Getting Started programming book will talk about a complete project, and where will I tell you how to view the projects released on GitHub, how to use it?If a complete project file is as complex as this is, the API descriptions of other transaction software are even more incomprehensible ......

As a result, I realized my lack of programming. So I first tried to understand what each file of a project is, how to install it into my own programming software ......

After installing these packages, the most important thing is to learn how to use these packages,Then we must know how to obtain the API materials. It is self-evident to learn the importance of viewing API materials. Without these API documents or source code, we cannot fully understand the usage and principles of these codes.

There are basically two ways to view open-source API project materials on GitHub. One is to view its description files, mainly readme files or project documents. The other is to directly view the source code. It is best for everyone to learn these two types.If read-only readme or project documents are not detailed or are not provided with a proper example, it will still cause difficulties for users to understand. If you only read the source code, this allows you to fully understand the principles of the project, but if you can read readme or the project documentation to master a general framework, it will help you understand the source code.

Of course, the premise of understanding all of these is to have a basic understanding of programming software. In my personal circumstances, my articles here are based on Python 3. The exact version is python 3.6.4.

Next, let's start with a simple API project.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.