About

Welcome to Allan's Ramblings!

Blogging about Technology and more.

Who am I?

Tag cloud

Archives

01 Mar - 31 Mar 2008
01 Apr - 30 Apr 2008
01 May - 31 May 2008
01 Jun - 30 Jun 2008
01 Aug - 31 Aug 2008
01 Sep - 30 Sep 2008
01 Oct - 31 Oct 2008
01 Nov - 30 Nov 2008
01 Feb - 28 Feb 2009
01 Mar - 31 Mar 2011
01 Jan - 31 Jan 2012

Calendar

« February 2012
S M T W T F S
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

Links

The Active Network
Partners For Haiti
One Mile Clinic PNG

Search!

Last Comments

Allan Nienhuis (Cisco VPN for Win…): The Shrew.net client supp…
Allan Nienhuis (Cisco VPN for Win…): I updated the article wit…
Allan Nienhuis (Cisco VPN for Win…): I tried installing the sh…
allan (Javascript intell…): when MS ships Jquery with…

Stuff

Powered by Pivot - 1.40.5: 'Dreadwind' 
XML: RSS Feed 
XML: Atom Feed 

« Who has time to blog?… | Home | WPF experiment »

Dependency Injection

04 06 08 - 07:12

Dependency injection isn't something junkies do to themselves. It's something you can do to your code. :)

There are a bunch of resources on the 'net on this design pattern and the tools that support it, so I won't try to explain it in detail.  For me one of the main things is that it takes the loose coupling theme and puts it on steroids, but gives you a way to manage it.  The tools provide out of the box extra functionality once you've done this just by setting some configuration options, like scope control (Singleton, anyone?), caching (thread, httpcontext, others), etc.

I don't pretend to be an expert on this by any means.  But of the material I've seen so far, Rob Connery's latest screencast in the MVC Storefront series is by far the best learning tool for anyone trying to figure this out:

MVC Storefront: Dependency Injection

This is a long one! I sat with Jeremy Miller (of StructureMap /CodeBetter fame) for over 2 hours, talking about DI, Singletons, kids, and other things and what came of it is, in my opinion, the best webcast in this series.

I have to agree with him on the 'best webcast' comment.  It's a looong screencast, but full of geeky goodness.  Well worth the time.  Go get a coffee and watch it now.  Right now. :) Used tags: , ,
No comments

  
Remember personal info?

Emoticons / Textile


 

  (Register your username / Log in)

Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.