Home  >  Article  >  What are the guidelines that should be followed for module division in software design?

What are the guidelines that should be followed for module division in software design?

王林
王林Original
2021-04-23 14:44:1919860browse

The principle that should be followed in module division in software design is high cohesion and low coupling. Software design starts from the software requirements specification, designs the overall structure of the software system based on the functions determined in the requirements analysis stage, divides the functional modules, determines the implementation algorithm of each module, and writes specific codes to form a specific design plan for the software.

What are the guidelines that should be followed for module division in software design?

#The operating environment of this article: windows10 system, thinkpad t480 computer.

The principle that should be followed in module division in software design is high cohesion and low coupling.

The criteria that should be followed for module division include coupling and cohesion between modules. Generally speaking, the coupling between modules is required to be as low as possible, that is, the modules are as independent as possible; the cohesion of the modules is as high as possible, that is, the principle of high cohesion and low coupling.

Software design starts from the software requirements specification, designs the overall structure of the software system based on the functions determined in the requirements analysis stage, divides the functional modules, determines the implementation algorithm of each module, and writes specific codes to form the software Specific design plan.

Software design is to abstract many things and problems, and abstract them at different levels and angles. Decomposing and modularizing problems or things makes it easier to solve problems. The more detailed the decomposition, the greater the number of modules. Its side effect is that it allows designers to consider more coupling between modules.

Free learning video sharing: php tutorial

The above is the detailed content of What are the guidelines that should be followed for module division in software design?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn