top | item 43100863

(no title)

kebsup | 1 year ago

I'd consider a lot of spring annotations "black magic" , because you can't simply go to definition and see how/what they do.

discuss

order

marginalia_nu|1 year ago

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.

gf000|1 year ago

You... literally can? Yeah, you may have to grep for the annotation's name, but it's not like it's hidden/closed source/whatever.

hu3|1 year ago

grep for annotations...

That mentality is how you get death by a thousand cuts.

Cognitive load matters.