- Decrease Coupling - Aspire to design loosely coupled classes or class which are not dependent on one another.
- Eliminate Inappropriate Intimacy - Careful with business logic class which needs too much information regarding data access.
- Increase Cohesion - Make the code inside a class directly related.
Observation of decrease coupling/increase cohesion creates these positive benefits:
- Keep things that have to change together as close together in the code as possible.
- Allow unrelated things in the code to change independently.
- Minimize duplication in the code.
No comments:
Post a Comment