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…

https://martinfowler.com/articles/dependency-composition.html

Établi 2y | 23 mai 2023 à 18:20:22


Connectez-vous pour ajouter un commentaire

Autres messages de ce groupe

How is GenAI different from other code generators?

How is code generation with GenAI different from more "traditional" code generators? The newest memo in Birgitta Böckeler's explorations of GenAI talks abou

18 oct. 2023 à 20:10:05 | Martin Fowler
How is GenAI different from other code generators?

How is code generation with GenAI different from more "traditional" code generators? The newest memo in Birgitta Böckeler's explorations of GenAI talks abou

19 sept. 2023 à 10:10:06 | Martin Fowler
TDD with GitHub Copilot

At Thoughtworks, we are strong practitioners of Test Driven Development (TDD). Naturally this leads to the question of how generative AI can

17 août 2023 à 20:30:07 | Martin Fowler