P&P Day One: Dependency Injection Architecture

The second talk of the day was on Dependency Injection by Brad Wilson. Brad is a developer for CodePlex.

Brad talked about how ObjectBuilder was a framework for creating your own Dependency Injection Containers. For Enterprise Library the Configuration application code was the container. For the CAB it’s the work item. He showed a simplistic container that he promised to have the code up for soon.

The talk was a type of overview of what Object Builder is and what it’s extensibility points are. He showed several examples of using his simple container.

A couple of take-aways:

  • Object Builder has it’s own place on CodePlex now.
  • Soon documentation on Object Builder will be on the CodePlex site.
  • To Brad’s admission, he’s lazy and he’s been saying for months he would post his simple container code on the CodePlex site. Seems he was at least honest about being lazy because it’s still not posted yet.
  • Dependency Injection is a good tool and is very powerful; however, that power comes with the draw back of being somewhat tricky to debug and trace. (nothing new here)

His talk seemed somewhat unrehearsed, which was both good and bad. He came across really relaxed, which was good; but it seemed he didn’t have much really in depth to talk about, just some samples to show, which was bad.