DeepRead
Cover of Dependency Injection Principles, Practices, and Patterns

Dependency Injection Principles, Practices, and Patterns

Mark Seemann, Steven van Deursen · 2019

Programming and computer science › Web architecture and microservices

#14,599 most recommended

About the book

Dependency injection, a set of techniques for supplying an object's collaborators from outside the object so that code stays loosely coupled and testable. The examples are in C# and .NET, and the scope covers object-oriented design more broadly as well as the mechanics of wiring object graphs. The central claim is that dependency injection is mainly a matter of design principles, such as the Dependency Inversion Principle and explicit constructor-based dependencies, rather than of any particular container or framework. It presents pure DI, where a composition root assembles the object graph by hand, as a sound default, and treats DI containers as optional tools. It also argues against patterns such as Service Locator and ambient context, which hide dependencies and make code harder to maintain.

Written by Claude from what it knows of this book.

What Hacker News says 100% recommend · 0% critical

012202020212022202320242020 peak · 1
This bookAverage book in Web architecture and microservices

In the commenters’ own words

What Open Library readers say

No Open Library reader has rated it yet.

  • 6 want to read
  • 1 reading
  • 0 have read

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

Details

First published
2019
ISBN
9781638357100
Editions known
4 at Open Library
Open Library
OL19541817W

Object-oriented programming (computer science)

Explore in the mosaic

Read next: its neighbours on the mosaic