Skip to main content

The Common Closure Principle

  • Chapter
  • First Online:
Principles of Package Design
  • 1881 Accesses

Abstract

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Robert C. Martin, Engineering Notebook, C++ Report, Nov-Dec, 1996 (PDF available on http://butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod ).

  2. 2.

    https://www.phptherightway.com/#databases

  3. 3.

    https://packagist.org/packages/kriswallsmith/assetic

  4. 4.

    https://github.com/kriswallsmith/assetic

  5. 5.

    https://matthiasnoback.nl/2017/08/layers-ports-and-adapters-part-2-layers/

  6. 6.

    https://packagist.org/packages/friendsofsymfony/user-bundle

  7. 7.

    https://github.com/FriendsOfSymfony/FOSUserBundle/

  8. 8.

    https://sylius.com/

  9. 9.

    https://packagist.org/packages/sylius/sylius

  10. 10.

    Eric Evans, Domain-Driven Design, Addison-Wesley Professional (2003)

  11. 11.

    https://cleancoders.com/episode/clean-code-episode-16/show

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Matthias Noback

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Noback, M. (2018). The Common Closure Principle. In: Principles of Package Design. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4119-6_8

Download citation

Publish with us

Policies and ethics