Daniel Cazzulino's Blog : Funq: screencast series on how to building a DI container using TDD

Subscriptions

News

Source code published in this blog is public domain unless otherwise specified.

 

kzu in LinkedIn

  Microsoft MVP Profile

 Contact

Post Categories

Funq: screencast series on how to building a DI container using TDD

Over the past few days, I spent some time recording the experience of building a dependency injection container using test driven development. It was a cool experience for me, and I hope you find the screencasts useful.

Here are all the episode links:

  1. Part I: selecting a high performance approach and building the basics with few lines of code. View | Download
  2. Part II: adding support for passing constructor arguments to resolved instances. View | Download
  3. Part III: adding named services and refactoring to improve code. View | Download
  4. Part IV: add support for instance reuse. View | Download
  5. Part V: adding support for container hierarchies. View | Download
  6. Part VI: adding deterministic disposal of container hierarchies and instances created by them. View | Download
  7. Part VII: polishing a fluent API. View | Download
  8. Part VIII: adding support for initializer functions. View | Download
  9. Part IX: how well does it perform really? View | Download

 

Funq is by no means a revolutionary concept to DI, I'm well aware of that. But it's one that takes a minimalistic approach to keep the performance impact of DI to a bare minimum. One of the project core requirements was to perform very well on the Compact Framework, as part of its inclusion in the upcoming Mobile Client Software Factory v2 from patterns & practices.

I hope this series serves to understand the inner workings of this fully functional yet extremely simple DI container.

posted on Monday, February 02, 2009 12:49 PM by kzu

# Daniel Cazzulino's Blog : Funq: screencast series on how to building a DI container using TDD @ Tuesday, February 03, 2009 1:36 PM

Thank you for submitting this cool story - Trackback from DotNetShoutout

Anonymous

# New and Notable 287 @ Wednesday, February 04, 2009 7:22 AM

<p>Finally got enough snow to delay school for a couple of hours. Oslo/CSD/Queing/Azure/WCF Charles Young takes a closer look at the new CTP of Oslo that I reported the other day He also references this post for what's new and changed in the Oslo CTP Brian Prince has an extensive post on Queues in Azure...</p>

Anonymous

# Watching the Funq @ Monday, February 09, 2009 4:43 AM

<p><a href="http://simpable.com/code/iofc-on-azure/">Speaking of IofC’s</a>, I have been enjoying watching <a href="http://www.clariusconsulting.net/blogs/kzu/">Daniel Cazzulino’s</a> <a href="http://www.clariusconsulting.net/blogs/kzu/archive/2009/02/02/116399.aspx">video series</a> on <a href="http://code.google.com/p/funq/">Funq</a>.</p> <blockquote> <p><em>I'm planning to record a series of screencasts which will serve as walk-throughs on how to apply TDD on a practical project consisting in building a full-featured and high-performance DI container which has two very explicit goal: minimalistic design and small footprint.</em></p> </blockquote>

Anonymous

# 30 Articulos, 40 Screencast y Agenda de Marzo @ Wednesday, March 11, 2009 1:08 PM

Hola estas son algunas de las contribucion de los MVPs durante Febrero y algunas actividades para Marzo

Anonymous

# 30 Articulos, 40 Screencast y Agenda de Marzo de los MVPs @ Wednesday, March 11, 2009 1:09 PM

Hola estas son algunas de las contribucion de los MVPs durante Febrero y algunas actividades para Marzo

Anonymous

# Mobile Application Blocks ContainerModel / Funq: an introduction @ Friday, April 17, 2009 5:59 AM

If you follow my blog, you probably heard about Funq , and maybe you even watched the screencasts I did

Anonymous

# Daily Reading List @ Monday, April 27, 2009 5:28 AM

Daily Reading List

Anonymous

# Learn by Reading #1 - Funq @ Sunday, June 21, 2009 6:08 AM

Learn by Reading #1 - Funq

Anonymous

# DI/IoC контейнеры - как это делается... @ Saturday, July 04, 2009 5:38 AM

Написание собственного DI-контейнера, не такая сложная задача, как может казатьс

Anonymous

# DI/IoC контейнеры - как это делается... @ Monday, July 06, 2009 9:16 AM

Написание собственного DI-контейнера, не такая сложная задача, как может казатьс

Anonymous

# Social comments and analytics for this post @ Monday, November 02, 2009 11:03 AM

This post was mentioned on Twitter by ajlopez: Funq: screencast series on how to building a DI container using TDD http://bit.ly/gZHeS

Anonymous

# Windows Phone 7 Developer Guide Drop 2 is now out! @ Thursday, September 02, 2010 10:28 PM

Windows Phone 7 Developer Guide Drop 2 is now out!

Anonymous