
Dependency injection in .NET
Mark Seemann · 2012
Programming and computer science › Web architecture and microservices
#4,333 most recommended
Hacker News
11
mentions by 9 people · top 27% of 15,732 books
Open Library
4.50★★★★★★★★★★
2 ratings · 8 want to read
Wikipedia
—
No article yet
About the book
Dependency injection in .NET covers how to structure C# applications so that components receive their collaborators from outside rather than creating them. It starts from object-oriented fundamentals and the reasons for loose coupling, then moves to the practical work of composing an application and managing object lifetimes in .NET. The central claim is that dependency injection is a design practice grounded in principles such as SOLID and the explicit declaration of dependencies, and that it matters more than any particular tool. The book argues for constructor injection and a single composition root where the object graph is wired, and it treats DI containers as optional helpers rather than requirements. It also argues against patterns such as the service locator that hide dependencies, and it presents decorators and related techniques as ways to extend behaviour without changing existing classes.
Written by Claude from what it knows of this book.
What Hacker News says 78% recommend · 11% critical
In the commenters’ own words
I've gathered all the book titles in this thread and created Amazon affiliate links (if you don't mind. Otherwise you still have all the titles together :-) )…
Dependency Injection in .NET by Mark Seemann was the trigger that started my transition from someone basically writing "script spaghetti" in an OO language to…
What Open Library readers say 4.50 from 2 ratings
- 51
- 41
- 30
- 20
- 10
- 8 want to read
- 1 reading
- 2 have read
Only 2 ratings: treat the average as a hint.
What critics say, via Wikipedia
No Wikipedia article about this book yet, so no critics to quote.
Reddit communities — coming later
The threads it came up in
Details
- First published
- 2012
- ISBN
- 9781935182504
- Editions known
- 2 at Open Library
- Open Library
- OL16506210W
Application softwareDevelopmentInternet programmingMicrosoft .NET FrameworkObject-oriented programming (computer science)
Read next: its neighbours on the mosaic
Dependency Injection Principles, Practices, and PatternsMark Seemann · 2019 · recommended by 2 people · similar by subject and what people say about it
Specification by exampleGojko Adzic · 2011 · recommended by 2 people · loosely similar by subject
The art of unit testingRoy Osherove · 2009 · recommended by 12 people · similar by subject and what people say about it
C# in DepthJon Skeet · 2008 · recommended by 29 people · similar by subject and what people say about it
Applying Domain-Driven Design and PatternsJimmy Nilsson · 2006 · recommended by 2 people · similar by subject and what people say about it
Domain-Driven DesignEric Evans · 2003 · recommended by 104 people · similar by subject and what people say about it
Advanced .NET debuggingMario Hewardt · 2009 · recommended by 3 people · similar by subject and what people say about it
Reliable software through composite designGlenford J. Myers · 1975 · recommended by 3 people · similar by subject and what people say about it
Composite/structured designGlenford J. Myers · 1978 · recommended by 2 people · similar by subject and what people say about it
Essential .NETDon Box · 2002 · recommended by 3 people · similar by subject and what people say about it
Patterns of Enterprise Application ArchitectureMartin Fowler · 2002 · recommended by 34 people · similar by subject and what people say about it
Expert F# 3.0Don Syme · 2012 · recommended by 6 people · loosely similar by subject
Software engineering for Internet applicationsEve Astrid Andersson · 2006 · recommended by 10 people · loosely similar by subject
Working effectively with legacy codeMichael C. Feathers · 2004 · recommended by 186 people · 2 people recommended both
Pattern-oriented software architectureFrank Buschmann · 1996 · recommended by 6 people · loosely similar by subject
Component softwareClemens Szyperski · 1997 · recommended by 3 people · loosely similar by subject
Data-oriented designMr Richard Fabian · 2018 · recommended by 12 people · loosely similar by subject
The little book of semaphoresAllen B. Downey · 2008 · recommended by 18 people · loosely similar by subject
F# Deep DivesTomas Petricek · 2014 · recommended by 1 person · loosely similar by subject
CLR via C#Jeffrey Richter · 2010 · recommended by 9 people · loosely similar by subject
Head First design patternsEric Freeman · 2004 · recommended by 65 people · loosely similar by subject
Design by ContractBertrand Meyer · 2020 · recommended by 4 people · loosely similar by subject
RefactoringMartin Fowler · 1999 · recommended by 94 people · loosely similar by subject
Microsoft .Net for programmersFergal Grimes · 2002 · recommended by 1 person · loosely similar by subject