DIY-DI

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.

56 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.

  3. internet TV

    Austar, especially, has already established a biig dip in fortune since it faces increasing competition from cheaper Internet TV rivals like
    Fetch – TV, ii – Net and Internode – available
    from as little as $10 a month. Therefore it makes
    access to television in areas which has been previously
    unheard of. Imagine making preparations for work and having thee youngsters ready forr
    school inside morning.

  4. qr.garagebrewers.com

    While orthopedic surgical procedures are costly and needs a
    prolonged rehabilitation period, these surgeries could also dramatically
    enhance the length superiority your dog’s life. With many hospital plans, there are several medications which are also covered.
    So, friends, if you are feeling somewhat down right now then have a tip from me –
    no, have a dip from me: see that water, that wild wild water, and find that sea, that
    deep and bottomless sea and let yourself go.

Leave a Reply

Your email address will not be published.