Why use IoC and Containers?

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

A question came up on the Alt.Net mailing list asking why would you use IoC and Containers.


I think Ayende summed it up real good:

“Is is a pattern that is useful when you are already doing the right things, then you begin to feel the pain of managing all the moving pieces, at which point the container comes in and manages that for you.
I’m going to have a post about it soon…”


Enough to say that I’ve felt the pain… and used the pain killer :)


It’s a great idea, and when I’ve implemented Windsor on the project I am working on currently, it has helped me a great deal.

My next step is to replace XML configuration with Ayende’s great Binsor.

 

Cheers!


Filed under: Best practices, C#
Written on: 08 Dec 2007 ·

kick it on DotNetKicks.com

Leave a Reply