Source code learning (how to learn)

zhaozj2021-02-08  256

Source code learning

1. Draw the flowchart of the entire program to understand the thoughts of the entire program process. The way of painting flow charts is more direct understanding of the overall process of the program without being disturbed by code, allowing programmers to grasp the entire program.

2. Understand the process of each node (function or process) of the process. Each node of the process is an indispensable part of the entire process.

3. Take the process and process nodes to understand the entire program, and it is possible to write the reading notes.

4. If you want to learn from the essence of the source code, please write a similar program to exercise. When you understand this app, you don't show you that you have mastered this program, you only know how much you have understood, how much you have understood.

In fact, the learning of the source code is a process from the overall to the continuous refinement, an extremely cumbersome process is also a process of constantly recognizing the original.

.

Many programmers (including myself) In a quite long time, pay attention to the details of the program code, and ignore the organic whole of the program, which can't be said to be a sorrow.

In particular, the software industry is now, due to the huge project, the entire project is artificially divided into several independent small pieces of seventeen eight falls (this is also necessary to have the leadership of the entire project), programmers in these The small pieces are each battle, falling their own thinking, restricting their own fun in a narrow space. Whole frog in the whole well.

But we also have to see that there are more and more programmers understand this defect, which is constantly improving.

In fact, I really want to say that the big world is complicated, but the truth is the same, this is the understanding of the Wanfa.

转载请注明原文地址:https://www.9cbs.com/read-2035.html

New Post(0)