Ask HN: When "not" to use Dependency Injection?
https://news.ycombinator.com/item?id=3781435I 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?