bugsmith@programming.dev to Programming@programming.dev · 8 months agoWhat even is “Dependency Injection”? (a practical example using Go)medium.comexternal-linkmessage-square4fedilinkarrow-up118arrow-down13cross-posted to: golang@programming.dev
arrow-up115arrow-down1external-linkWhat even is “Dependency Injection”? (a practical example using Go)medium.combugsmith@programming.dev to Programming@programming.dev · 8 months agomessage-square4fedilinkcross-posted to: golang@programming.dev
minus-squareLmaydev@programming.devlinkfedilinkarrow-up3·8 months agoDependency injection is the actual act of allowing dependencies to be injected. Which this does. Creating a constructor that takes dependencies is DI. Using something to inject them automatically is more inversion of control.
Dependency injection is the actual act of allowing dependencies to be injected. Which this does.
Creating a constructor that takes dependencies is DI.
Using something to inject them automatically is more inversion of control.