←back to thread

257 points pmig | 1 comments | | HN request time: 0.206s | source
Show context
jayd16 ◴[] No.43099487[source]
Is it wrong that I judge anyone that calls DI "black magic"? Clearly it's just computers all the way down and even spring DI isn't that hard to follow.

It's one thing to call it bloated or annoying or tedious but why are we proud to announce we didn't do the work to figure it out?

replies(2): >>43099537 #>>43100863 #
kebsup ◴[] No.43100863[source]
I'd consider a lot of spring annotations "black magic" , because you can't simply go to definition and see how/what they do.
replies(2): >>43100926 #>>43102492 #
1. marginalia_nu ◴[] No.43102492[source]
Spring's annotations arguably are black magic, but while Spring offers DI, DI is not Spring, and honestly something like Guice is a lot easier to follow since it only does annotation-based DI and not a bunch of other stuff.