james mckay dot net

because there are few things that are less logical than business logic
10
May

Introductory videos on IOC containers

Dependency injection is one of those concepts in computer programming that looks weird and complex when you don’t understand it, but once you do, you wonder how you managed without it. A bit like distributed source control. Unfortunately, if you don’t understand it properly and implement it incorrectly, you can end up losing the benefits of it and end up wondering, “What was the point?”

For developers new to the concept, David Hayden has a series of video tutorials that provide what’s probably the best introduction to it that I’ve come across. He uses Microsoft’s Unity Container for most of his examples, but the concepts can easily be adapted for other libraries such as Ninject, Autofac, or Castle Windsor. He explains in some detail how to use them properly within both ASP.NET and WebForms, and demonstrates what kind of things they can achieve:

1 comment:

  • Great Post… Nicely explained… Thanks a lot.. :)

    # » Reply from Swapnil at 16:13 on 19 Dec 2011

RSS feed for comments on this entryAdd your comments



(Personal blogs only please: leave blank if you don't have one)

Your comments:

Comments will be closed on June 16, 2012.

Maximum 2 links per comment. Do not use BBCode.