For Programmers: Free Programming Magazines  


Home > Archive > Functional > June 2007 > Disadvantages of Dependency Inversion?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Disadvantages of Dependency Inversion?
sweetchuck74@gmail.com

2007-06-08, 7:10 pm

Nowadays, DI (Dependency Inversion) is one of the widely used design
pattern.
It provides several benefits, such as (1) loose coupling between
component (2) effective and easy testing (component testing or unit
testing)

What are the drawbacks or divantages of using DI?

Thank you very much for your answer in advance.

rossberg@ps.uni-sb.de

2007-06-08, 7:10 pm

On 8 Jun., 21:01, sweetchuc...@gmail.com wrote:
> Nowadays, DI (Dependency Inversion) is one of the widely used design
> pattern.
> It provides several benefits, such as (1) loose coupling between
> component (2) effective and easy testing (component testing or unit
> testing)
>
> What are the drawbacks or divantages of using DI?


The "divantage" is that it is merely a tedious workaround for an
appearent weakness in mainstream OOPLs, namely the confusion and
muddling of subclassing and subtyping. In particular, languages with
structural type systems provide the benefits you cite more or less for
free.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com