News for hackers. Stuff that matters.
Re:Rating 26 years of Java changes by __float on Saturday October 11, 2025 @07:25PM (#45553648)
My experience using Dagger (2) was so unpleasant that it really soured me on the possible uses of this feature.

I understand the benefits of dependency injection, but to be totally honest I'm more likely to take the Go-style approach of wiring it all up manually, even if it's a bit of extra boilerplate. The indirection and abstractions built up in DI frameworks is rarely worth it IMO.

Re:Rating 26 years of Java changes by malfist on Saturday October 11, 2025 @07:31PM (#45553694)
Dagger is an absolutely pain in the ass. Its also damn good. Once you understand the archane syntax of their error messages its a lot easier (but still not easy) to use.

Harder than spring, but less magic than spring

Re:Rating 26 years of Java changes by vips7L on Sunday October 12, 2025 @09:07AM (#45557988)
Dagger is by far the worst UX experience for a DI framework. Really you should try anything else. For compile time DI like dagger you can try Avaje Inject:

https://avaje.io/inject/