News for hackers. Stuff that matters.
Re:Dependency Injection in C++ Using Variadic Templates by MetallicCloud on Saturday September 12, 2015 @11:09PM (#10210218)
I agree. I recently had to do some java work and had to come up to speed with Springs dependency injection. When it worked it was fine, but when something went wrong there were so many layers of abstraction and vague error messages it was a nightmare to try and solve problems.

I don't see what is wrong with the 'boring' way of dependency injection. If a class relies on another class, pass it in the constructor explicitly. It's simple and easy to follow the stack back to find problems.

There are no comments on this comment yet.