VoterFrog@lemmy.worldtoProgramming@programming.dev•What even is “Dependency Injection”? (a practical example using Go)
3·
8 months agoIt does and they’re kinda weird (if you’re used to more like Java-style interfaces). It flips the dependency between the interface and implementor on its head. Worth looking it up, it’s interesting.
Eh, not really then. If you have some behavior in those 50 copy/pastes that needs to be deleted, you’ve got to delete it 50 times. That’s not easier at all.