What's IoC good for, Really?

Oren has one of the best one liners about the benefits of Inversion Of Control Containers in a project in this post:

 

"Other people on my team keep adding components, and they aren't even aware that they have IoC there. They just know that if they put the IFooService in the ctor, they will get it when the code is running. And if they add IBarService and BarServiceImpl, they will be available to any component that uses them."

Here's a quick "Getting Started" if you've never seen this before, using the Castle Windsor Container Framework for .NET.

Published Thursday, October 25, 2007 7:12 AM by RoyOsherove

Comments

Thursday, October 25, 2007 8:06 AM by Sergio Pereira

# re: What's IoC good for, Really?

Here's a link with some good Windsor howto's.

wiki.bittercoder.com/Default.aspx

Thursday, October 25, 2007 8:53 AM by Chris Patterson

# re: What's IoC good for, Really?

Good points. Another one I found useful as well was:

dotnetslackers.com/.../InversionOfControlAndDependencyInjectionWithCastleWindsorContainerPart1.aspx

It's a 4-part on Windsor with essentially the same format.

Thursday, October 25, 2007 11:05 AM by Brad Mead

# re: What's IoC good for, Really?

Thanks Roy.

I assume IoC is just as useful for webapps as it is for winapps?

Saturday, October 27, 2007 10:56 AM by Christopher Steen

# Link Listing - October 27, 2007

Link Listing - October 27, 2007

Saturday, October 27, 2007 11:27 AM by Christopher Steen

# Link Listing - October 27, 2007

Silverlight and Astoria sample site from Shawn Wildermuth [Via: glengordon ] Designer Dinner (Nov....