by brad
24. February 2010 13:40
For those that might be interested, here are the presentation materials from my talk at the St Louis .NET User’s group last night. We talked about the need for managing our code dependencies, how to apply the dependency inversion principle, how to use dependency injection, and finally, how to use StructureMap to wire up our dependency injection for us.
A few key definitions from the talk
What is a dependency? Any thing the code I’m working on needs to work that is not the code I’m working on. Remember that dependencies may very well be your OTHER code sitting in the same project that you’re working in.
The dependency inversion principle tells us that high-level modules should not depend on low-level modules. Rather, both should depend on abstractions.
One very effective way to pull this off is through the use of interfaces.

Materials