One of my friends (he, like me, a .NET / C ++ developer) asked me:
Enabling addiction: should we all know this? Why?
Could you tell:
Thank you very much.
PS I understand that I ask a lot ... but I can not find a good link myself ...
Good comments are posted here, but there is no clear answer to the question "Your opinion: do we really need to know this template and how to implement it?"
, "", :
"?" .
.
- . , , . DI , Injection Dependency .NET. , . - #, .
Dependency Injection - , , , . , , , , , . , unit test .
IoC ( ) , SO. , Injection Dependency, IoC DI.
- , IOC?
Also, here are some good links explaining DI in more detail:
Here is a really good reference, why dependency injection is crucial for writing (a unit) of test code:
http://www.youtube.com/watch#!v=wEhu57pih5w&feature=related
("Clean Codes" - "Testing Modules")
Source: https://habr.com/ru/post/1754547/More articles:Is this the “bundle” of my web service right? Is it possible to improve? - c #jquery: open doubleclick link? - jqueryUsing getenv on Linux - c ++Is PHP serialization a good choice for storing data from a small website modified by one person - phpСкрытая переменная Vs Server, доступная на стороне клиента в javascript - javascriptВопрос в С++ - c++how much programming programming should i know before indulging in sdl programming - cundefined variables in php - phpIs there a virtual machine for javascript? - javascriptКак написать именованную область для фильтрации по всему массиву, переданному, а не только путем сопоставления одного элемента (с использованием IN) - sqlAll Articles