In the previous chapter, we discussed the Common Reuse principle. It was the second principle of package cohesion and it told us that we should put classes in a package that will be used together with the other classes in the package. If a user wants to use a class or a group of classes separately, this calls for a package split.
8. The Common Closure Principle
Get Principles of Package Design: Creating Reusable Software Components now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.