
Module design considerations
8 A summary of cohesion levels
When designing a program's structure the programmer should try to
form modules which have a single problem-related function. If
functional cohesion is achieved, then the modules will be more
independent; easier to read and understand; and more maintainable
than modules with lesser cohesion.
In some cases, it is not always easy to construct a program where
every module has functional cohesion. Some modules may contain
lower levels of cohesion, or even a combination of types of cohesion.
This may not be a problem. However, it is important that the
programmer is able to recognize the