
Module design
considerations
then the fact that the program has been well designed will minimize
the effects of tight coupling.
8.5 Chapter summary
This chapter covered a number of different topics which a programmer
should consider when designing modular programs. A program which
has been well designed has modules which are independent, easy to
read and easily maintained. Such modules are likely to exhibit high
cohesion and loose coupling.
Cohesion is a measure of the internal strength of a module. The
higher the cohesion, the better the module. Seven levels of cohesion
were given and each level was discussed, with a pseudocode example
provided ...