←back to thread

257 points pmig | 2 comments | | HN request time: 0.481s | source
1. wiseowise ◴[] No.43099879[source]
I wish this “DI black magic” meme would die. If you’re afraid of runtime DI, then use Dagger 2.
replies(1): >>43100338 #
2. KronisLV ◴[] No.43100338[source]
Never really heard of Dagger before, but I love what I'm seeing: https://dagger.dev/

On the other hand, using DI with Spring is both powerful and really annoying when things blow up due to unsatisfied dependencies, I'd much rather see that at compile time, so Dagger seems right up my alley! Thanks for mentioning it!