DEV Community

Discussion on: Effective Java Tuesday! Prefer Dependency Injection!

Collapse
 
jmfayard profile image
Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard • Edited

Nice post, thanks!

I like the Dependency Injection pattern.

When I was doing Android, I didn't like so much the Dependency Injection frameworks, namely Google Dagger which in my opinion brings a lot of complexity and is poorly documented. As a consequence you see people investing weeks and months before they get to the point "ah ah, now I really understand dagger". Not worth it I would say.

I ended up writing how you don't need a framework to implement the pattern

Those days though I would recommend using insert-koin.io