Principles for writing Flowcharts

Source: Internet
Author: User

I,Embody the idea of sub-modules;

In the flowchart, We Need To embody the idea of sub-modules. Do not mix all the details together to distinguish the relationship between the trunk, branches, and leaves,

The general process mainly reflects the logic between trunks, and separate the logic of each branch with another flowchart. Therefore, a major function implementation point may be divided into multiple modules, each module corresponds to a different flowchart.

 

2. Identify major processes and bypass processes;

The flowchart mainly shows the main process. The so-called main process is the process with the highest execution probability. The main process is placed in the middle to describe the bypass process, that is, the execution probability is small, or the execution line with exceptions is placed on the left (right) to describe.

 

3. process the bypass process;

The bypass logic does not mean that it is not important. On the contrary, a good process or solution must handle various exceptions. Only in this way is a robust solution, and sometimes, this details may determine the project's success or failure. The bypass logic must be decoupled and focus on handling exceptions. We also need to focus on the danger of turning unnecessary Paths into necessary paths. For example, if the database is normal, the main flow runs one by one, the bypass process is another one. The premise of this assumption is that the normal probability of the DB is very high and the probability of exceptions is very low. However, the current situation is: Once the DB is abnormal or fails to die, to urge the system to run the bypass logic, in this case, the cost of the system to run the bypass logic must be fully considered, whether to say that once the DB exception trigger point is detonated, the system has been in the bypass process, or is it capable of Automatic Recovery and adjustment after the system runs a bypass process and switches to the normal process? Is there an automatic monitoring mechanism?

 

 

4. The judgment conditions are in the front. The entire main process is Y and the bypass process is N.

All judgment conditions are determined by positive wording. For example, if the DB result is executed, the judgment conditions are: execution is successful, the main process is Y, and the bypass process is N, instead of using the following judgment condition: execution fails. In this case, y indicates the bypass process, and N indicates the main process.

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.