Reply to post: Re:.. Spring framework!

Java 17 arrives with long-term support: What's new, and is it falling behind Kotlin?

teknopaul

Re:.. Spring framework!

Spring beans is great, dead simple. I have written xml based springalike in one short class, and ditto an annotations based version so I don't have dependency issues. Any service code that doesn't have dependency injection ends up being hard to unit test, and code that is hard to test ends up being hard to change.

I really cant see the objection to dependency Injection? What's the alternative? We had some contractors write a ton of code without the structure dependency injection gives you and its a bloody nightmare to test or to make it do anything other than what it was first designed for. None of it is reusable.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon