Pragmatic Objects
CtrlK
  • Pragmatic Objects
  • About this book
  • Design
    • What's an Object ?
    • Thinking Object
    • Domain Modeling
    • Information Management
  • SOLID
  • Practices
    • The Pragmatic Practices
    • No Getters & Setters
    • Inherit Wisely
    • Wrap Null
    • Model the Domain
    • Wrap Collections
    • Expose Snapshots
    • Abandon Composed Names
    • Don't Check Types
    • Minimize Knowledge
    • Immutability
    • Separate Commands & Queries
    • Abandon Statics
    • Declare Dependencies
    • Separate Instantiation from Usage
  • Patterns
    • Always Valid
    • Wrapper
    • Command
    • Procedural Object
    • Compute Object
    • Snapshot
    • Value Object
    • Observability
  • Examples
    • Celsiuses / Fahrenheits
Powered by GitBook
On this page
  1. Practices

Declare Dependencies

Reveal your dependencies as part of your interfaces. Make them explicit to make it easier to reason about the code.

PreviousAbandon StaticsNextSeparate Instantiation from Usage