TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to live better without Dependency Injection

3 pointsby kentoralmost 4 years ago

2 comments

aliasElialmost 4 years ago
Dependency injection is an idea that looks nice in theory, but it soon becomes pretty messy in practice. Without DI it is in general not too difficult to debug how an object is created. With DI you will also have to debug through the DI code. Fixing problems with DI configurations is one of my least favorite activities.
al2o3cralmost 4 years ago
Say what you will about global variables, they're at least an ethos. :P