Purpose:
The reason for each component must be clear and concise. When a component needs to be updated or is no longer needed, the separation of that component from the other components is straight-forward.
When a component has only a single purpose, performing tests and finding flaws is much easier because interim component results can be checked against expected results.
Loosely coupled components with high cohesion is the goal. Limiting the dependencies of one component on other components (loose coupling) is key to providing each component a single purpose. Whenever possible, keeping similar components together (high cohesion) helps to identify issues when they occur.
Copyright © 2020 Lionel Rogers, All rights reserved.