The “dependency injection” (DI) technique is a way to improve testability and maintainability of object-oriented code. Typically adoption of dependency injection is coupled with adoption of a dependency injection framework, such as Guice or Spring. These materials show how dependency injection can be accomplished without any framework. The same benefits provided by frameworks can be realized using “do-it-yourself” (DIY) handcrafted code. This model is named DIY-DI, pronounced die-die.

Update (May 29, 2010): I added a comparison with Guice and more polished code snippets to the DIY-DI manual.

53 thoughts on “DIY-DI

  1. Reynaldo Kindle

    Greetings from Florida! I’m bored at work, so I decided to navigate your site on my iPhone during lunch break. I love the information that you provide here and can’t wait to have a look once I get home. I’m surprised by how quickly your site loaded on my cell phone . . I am not using WIFI, only 3G. Anyways, awesome blog! {

  2. Genevie Sites

    Hello there! This is my very first remark, so I just wanted to give a quick shout out and say that I genuinely enjoy reading your articles. Can you recommend any other blogs/websites/forums that deal with the same subjects? Thanks.

Leave a Reply

Your email address will not be published.