News for hackers. Stuff that matters.
Re:Java Doesn't Need to Be So Bad by boyter on Thursday December 08, 2011 @04:22PM (#3331194)
Totally agree with the death to injection frameworks. Where I work a lot of the devs love to talk about "dependency injection" and ways to have some abstracted thing in .NET handle it for you.

My preference has always been have a constructor which takes in the interfaces required. Its very explicit, makes testing a breeze and with no magic is much easier to read.

Re:Java Doesn't Need to Be So Bad by nigelsampson on Thursday December 08, 2011 @06:59PM (#3331808)
Agreed, constructor injection is pretty much the only type of "dependency injection" that makes sense to me.

The less magic the better.