Re:What's New in Jakarta EE 10?
by jackee10 on Wednesday September 14, 2022 @09:40PM
(#32845964)
After writing this comment and reading some others, I was reminded of CDI - the dependency injection blackbox. It was advertised as the next best thing to allowing developers to focus only on their business logic and let the CDI runtime inject the dependencies. That turned out to be giant mess. Couldn't understand what a piece of code was doing statically and you had to run the code, attach a debugger to find out what dependency got injected and what its implementation looks like. And of course, things behaved differently because some other dependency implementation got picked up and injected instead of the one that you had debugged in dev environment.
Simple code turned into a complete dependency injection spagetti just beacuse CDI was a specification and advertised as the next best thing to come from the Java EE ecosystem.
Simple code turned into a complete dependency injection spagetti just beacuse CDI was a specification and advertised as the next best thing to come from the Java EE ecosystem.
I am really glad we moved away from that area.