Disadvantages of Dependency Inversion?

S

sweetchuck74

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 disadvantages of using DI?

Thank you very much for your answer in advance.
 
?

=?EUC-KR?B?QXJuZSBWYWpoqapq?=

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 disadvantages of using DI?

You mean Dependency Injection (DI) or Inversion Of Control (IOC) ?

The only disadvantages I can think of are:
- the risk of ending up with huge badly structured config files
- a code that is hard to read because you can not see in the code
what actually gets called

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top