Answer the question
In order to leave comments, you need to log in
Do you use Dependency Injection in your work?
DI allows you to use loose coupling, but at the same time complicates the code. Do you use DI in your work or prefer to keep it simple, or did someone else (team, past developer) make this decision for you? And why do you or don't you use it?
Answer the question
In order to leave comments, you need to log in
При проектировании применяю в разумных пределах, когда есть возможность.
Главное - замедляет разработку, как и прочие меры, направленные на повышение гибкости.
What is the advantage of Dependency Injection over using the new operator?
Do you use DI in your work or prefer to keep it simple, or did someone else (team, past developer) make this decision for you?
but it complicates the code
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question