DEV Community

Discussion on: Code Smell 135 - Interfaces With just One Realization

Collapse
 
jessica_veit profile image
Jessica Veit

Additionally - Dependency Injection in general. If you do add a second realization later, you have the first realizations reference everywhere (testability) and must rewrite everything.

Collapse
 
mcsee profile image
Maxi Contieri

Exactly. That is a valid counterexample. I'll add it

Thread Thread
 
mcsee profile image
Maxi Contieri

Done!

Thread Thread
 
jessica_veit profile image
Jessica Veit

Thank you for being that open! 😁