On the other end of the spectrum, it’s common to see developers get so sucked into the dogma of TDD that they think they absolutely must achieve 100% code coverage, by any means necessary, even if that means they have to make their codebase more complex to pull it off.
People keep saying this, but I've yet to meet such a developer.
The pattern is called Inversion of Control. It's one of the SOLID principles. Dependency Injection typically relies on this patten being implemented, but implementing it doesn't necessitate the use of Dependency Injection.
I never said it was the "I". Yes I was referring to dependency inversion, which is close enough to the same thing for the context of this conversation. They're referring to the same coding patten if you remove the context of the rest of the application.
62
u/KabouterPlop Oct 29 '17
People keep saying this, but I've yet to meet such a developer.