Throw Out Your Dependency Injection Container
Dependency injection containers (aka inversion of control containers) seem to be common in most modern applications. There is no argument against the value dependency injection, but I do have a couple arguments against using a dependency injection container. Like many other design patterns and practices, over time the development community seems to forget the original problem the pattern or practice was solving. Constructor & Setter Injection Passing your dependencies via the constructor is generally a better way of injecting dependencies instead of setters. Constructor injection gives you a much clearer definition of what dependencies are needed in order to construct the object into a valid… Read More »Throw Out Your Dependency Injection Container