33.8. Reduce InterdependenciesReducing the interdependence of domain objects makes it easier to test them. At the same time, we get other benefits, because the modularity will make it easier to make changes, reuse code, and find bugs. However, it is more difficult to reduce these dependencies, because many of them are inherent in the associations that arise from the business rules. Others result from the architecture and are difficult to avoid. Nevertheless, some surprisingly powerful techniques make use of suitable abstractions. For specific details of managing and reducing such dependencies, see [Mar02], [Fow97], and [Fow02a]. |