Why learn programming? What is the way to learn programming?

We learn programming, but we don't have to be programmers. Just like everyone should learn legal knowledge, but not all have to become lawyers; like everyone should learn economics, but they don’t have to become economists; it’s like everyone has to learn mathematics, but not everyone has to become Mathematician. Different subject knowledge gives people different ways of thinking. These ways of thinking run through every bit of our daily life. Programming itself is a process of cultivating a thinking process and can also help us master the ability of logical thinking. Let me share with you how to learn programming:

1. Give yourself a general idea. Where do you start? If you are not even familiar with Windows, it doesn't matter, let's be proficient in Windows operation first.

2. Choose a language. There are many popular programming languages. See the picture below, you can see the current rankings of various languages. Be careful not to follow suit, choose to study according to your own situation.

3. Focus on the basics. Now there are many corresponding IDEs for very high-level languages, making programming foolish, but please don’t rely on them when you are learning languages, because they do a lot for you, and we have to learn many of them. Have to know. To start from the basics, I personally recommend learning C language first. The description of data types in C language is comprehensive, clear and clear. 

3. C language is a process-oriented language. From data types, basic expressions, to conditional statements, loop statements, and then learn functions, plus some simple array knowledge, practice each knowledge point a few times. Do not be greedy at this time, but must understand thoroughly The principle of it.

4. For the above study, you need about 2 weeks to a month. Next, you can start to look at the compilation. It is difficult at the beginning of assembly. Those various registers and segmented memory addresses are difficult to understand, but after this knowledge is understood, the following content is simple. Learn the instructions of 8086, plus Some pseudo operations, as well as DOS and BIOS interrupt calls, can understand the assembler in the book. After reading the assembler, you will understand a lot of things deeply, so that you can understand the working principle of the computer more.

5. With the foundation of assembly, go back to the study of C language, I believe you will be very confident. At this time, you can probably recall the knowledge you have learned in the C language, or go to the website to find a few examples to do it, so that you have bamboo in your chest. Then it is difficult to start learning the essence of the C language-pointers. After learning this, you will have a solid foundation in programming.

6. Learn data structures and algorithms. Learn about sorting, graphs, trees, strings, queues, stacks, linked lists, heaps, etc. Learning in this area is very important. If you learn this well, it will be of great help to further study in the future.

7. After learning this, you will find that you can already achieve some simple applications, such as writing a calculator and so on. If you were to write a diary, would you? Of course you can. You can store all the diaries in text; but if the data gets bigger and bigger, how to manage it? At this time we have to think of starting to learn databases. At present, we use Oracle and Sql server more. As shown in the figure below, we can see many databases and their rankings.

8. If you have learned all the above knowledge, you will be considered a master. At this time, you can learn some object-oriented programming languages, such as C++, C#, Java, PHP and so on. At this time, I found that learning them is a piece of cake, because the grammar is basically the same. To be honest, programming is mainly about mastering ideas.

​Learning is a process, sometimes it can be very boring and lonely, but thoughts are controlled by yourself. If you think it is happy, then it will be happy, because when we become masters, we can have a lot Many Money, as shown below, you can also become "him".

Guess you like

Origin blog.csdn.net/xyx12321/article/details/112277190