bugsmith@programming.dev to Programming@programming.dev · 8 months agoWhat even is “Dependency Injection”? (a practical example using Go)medium.comexternal-linkmessage-square4fedilinkarrow-up13arrow-down10
arrow-up13arrow-down1external-linkWhat even is “Dependency Injection”? (a practical example using Go)medium.combugsmith@programming.dev to Programming@programming.dev · 8 months agomessage-square4fedilink
minus-squareKindaABigDyl@programming.devlinkfedilinkarrow-up0·8 months agoI didn’t know Go had interfaces. Neat
minus-squareVoterFrog@lemmy.worldlinkfedilinkarrow-up2·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.
I didn’t know Go had interfaces. Neat
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.