fuck_u_spez@lemmy.fmhy.ml to Programmer Humor@programming.dev · 2 years agoEveryone should have a tool-building factory factory factoryi.ibb.coimagemessage-square23fedilinkarrow-up162arrow-down12
arrow-up160arrow-down1imageEveryone should have a tool-building factory factory factoryi.ibb.cofuck_u_spez@lemmy.fmhy.ml to Programmer Humor@programming.dev · 2 years agomessage-square23fedilink
minus-squaretatterdemalion@programming.devlinkfedilinkarrow-up0·2 years agoDo you write unit tests with objects mocked via interfaces? Or polymorphism via interfaces? Those are the main reasons to use DI.
minus-squarefuck_u_spez@lemmy.fmhy.mlOPlinkfedilinkarrow-up1·2 years agoI guess I have to start calling function invocation with generic parameters, fancy names (like “dependency injection” ^^)
Do you write unit tests with objects mocked via interfaces? Or polymorphism via interfaces? Those are the main reasons to use DI.
I guess I have to start calling function invocation with generic parameters, fancy names (like “dependency injection” ^^)