Fresh Blurbs

The Problem with the Dependency Injection

Sony Mathew has described the best my concern with the Dependency Injection (e.g. in Spring Framework). I like it so much, that I think it is well worth quoting here:

"... externalizing an entire object graph seems over ambitious and counter productive. This type of glue work is considered core functionality and may be subject to business requirements and testing procedures and exposing it as an untyped descriptor file can make the application very brittle. Finally, this core functionality type glue work should be reusable and extensible just like any other part of the application that represents the business domain."

comments powered by Disqus