How to read the summary of the code base group discussion

Source: Internet
Author: User

How to read large applicationsProgramCode base? We talked about it within the project team. To sum up the following:

1. Draw a UML class districh (umlassketch) and a higher-level abstract-level diagram to help you understand and summarize it. The principle is: Just do what makes things work! There is no need to consider the UML standard issue. It is enough to draw a picture to help you and others understand the problem. For example, it is difficult to draw a sequence chart. What's moreCodeThe level is relatively low. Therefore, generally, it is not easy to draw a picture. A graph can be used to express the thought you want to express.

2. The basic idea is: to understand the hierarchical architecture of the entire app + to understand more implementation details from top to bottom with a specific example and to deepen the understanding of the entire architecture.

3. to solve a problem, when you need to understand the code of a certain aspect, do not immediately start to look at the code. Instead, you should first think about it: If I implement it, what will my solution be? It may be the same as the author's idea, so it will be faster to understand. It is really a good idea.

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.