4 ms·
I'm not sure I buy the assertion that doing your own DI makes your code more cohesive and self documenting. If you carefully consider your classes and dependen
by scotch_drinker 16y ago
I'm not sure I buy the assertion that doing your own DI makes your code more cohesive and self documenting. If you carefully consider your classes and dependencies as you create them as other commenters have mentioned, a IoC container seems to really make wiring things up easier.
I say all this as a relative newcomer to IoC containers but the work I have done on large applications with both Castle Windsor and Ninject has me currently in the camp that a container can make dependency management a great deal easier with the tradeoff of making it slightly harder for new developers (especially those with zero DI/IoC experience) to figure out what's going on. IoC containers make large, complex apps much more pleasant to work on, IMHO.