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.