The Principle of Least Knowledge says that you should talk only to your immediate friends. Or: any class should have only a limited number of connections to other classes.
The point in this is that more relations we have among classe more difficult would be to maintain and change the system.
For instance, a pattern like Façade help us in simplify the relations among classes, and this is making our system simpler and more flexible.
No comments:
Post a Comment