Ask HN: When "not" to use Dependency Injection?

https://news.ycombinator.com/item?id=3781435
by rmord • 14 years ago
2 2 14 years ago

I have seen numerous articles endorsing dependency injection (DI) in software development. Frameworks such as Spring and Guice provide excellent support for dependency injection, and I am a fan of designing and writing code that minimizes any coupling and provides more flexibility.

What are some of the practices when we "do not" use dependency injection (DI)? What arguments exists for not using DI for these scenarios?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com