You may encounter the following two situations when maintaining your code. One is to know the functions to be implemented by the code, but the logic exists in multiple classes, and a large number of event delegation and distribution are used. You need to understand how the functions are implemented. The other is that even if the code is one piece, the execution goes from top to bottom, and the maintenance code encounters the following two situations: Which of the following makes you crazy.
One is to know the functions to be implemented by the code, but the logic exists in multiple classes, and a large number of event delegation and distribution are used. You need to understand how the functions are implemented.
The other is that the code is executed from top to bottom, but there is no comment. You need to understand the functions that the Code wants to implement.
This issue has been closed. Cause: non-technical questions are discussed.
Reply content:
You may encounter the following two situations when maintaining your code.
One is to know the functions to be implemented by the code, but the logic exists in multiple classes, and a large number of event delegation and distribution are used. You need to understand how the functions are implemented.
The other is that the code is executed from top to bottom, but there is no comment. You need to understand the functions that the Code wants to implement.
First, nausea.
Second, if the code can be annotated, It is very comfortable.