News for hackers. Stuff that matters.
Re:Better Java – Resources for Writing Modern Java by benjiweber on Sunday September 20, 2015 @02:38AM (#10246758)
By using a DI framework to wire up constructors you tend to use the compile-time checking that your app is wired correctly. Which is unfortunate. You only find out when you try to run it.

Perhaps things being too big to wire together manually is a smell that the application is getting rather large.

There are also other patterns that can be used to make manual dependency injection less of a pain. I wrote about some of them here

http://benjiweber.co.uk/blog/2014/09/13/frameworkless-depend...

There are no comments on this comment yet.