Dependency Composition

Developers commonly ask “what framework should we use for dependency
injection”. Daniel Somerfield explains why this is the wrong question,
instead we should focus how to have clearly separated modules with a simple
composition mechanism between them. He illustrates how he approaches this
in TypeScript, with a minimalist “function-first” approach, on a simple
example application separating application logic from persistence.

more…

Source: martinfowler

Tags: