Views: 29.8K
Replies: 1
Archived
|
What are the benefits and dangers of IoC (Inversion of Control)?What I find is that the Inversion of Control pattern (also called DI - Depenency Injection) is hard to grasp.
I can see the mechanics, but what problems does it try to solve? IoC has is a lot of coding overhead, but I am not clear about the exact benefits. A follow up question. Do you take IoC to Production or is it only for Testing? I am asking because there is the risk of deploying incorrect xml configuration files. Does anyone ever talk abou this risk? Trey Henlon, Jun 30, 2010
|
|
Reply 1What problems does it try to solve?
Do you take IoC to Production or is it only for Testing? I certainly use it on production as well as for testing. Note that there are DI frameworks that doesn't use Xml (Ninject be one of them). Source: http://stackoverflow.com/questions/3058/what-is-inversion-of-control Robert Blixt, Jul 02, 2010
Do you have an example implementation for the same? Thanks in advance.
Jul 20, 2010
Thanks
Jun 07, 2010
|