bugsmith@programming.devM to Programming@programming.dev · 2 years agoWhat even is “Dependency Injection”? (a practical example using Go)medium.comexternal-linkmessage-square4linkfedilinkarrow-up118arrow-down13cross-posted to: golang@programming.dev
arrow-up115arrow-down1external-linkWhat even is “Dependency Injection”? (a practical example using Go)medium.combugsmith@programming.devM to Programming@programming.dev · 2 years agomessage-square4linkfedilinkcross-posted to: golang@programming.dev
minus-squareVoterFrog@lemmy.worldlinkfedilinkarrow-up3·2 years 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.
It 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.