lobsters__puercopop@crustaceanson.theshelf.topM to Lobsters - all tags@crustaceanson.theshelf.topEnglish · 17 days ago[ruby] Why We Should Inject Dependencieslockgist.github.comexternal-linkmessage-square3linkfedilinkarrow-up11file-text
arrow-up11external-link[ruby] Why We Should Inject Dependencieslockgist.github.comlobsters__puercopop@crustaceanson.theshelf.topM to Lobsters - all tags@crustaceanson.theshelf.topEnglish · 17 days agomessage-square3linkfedilinkfile-text
minus-squarelobsters__noteflakes@crustaceanson.theshelf.topMlinkfedilinkarrow-up1·16 days agoA somewhat forgotten option for dependency injection in Ruby is closures. Personally I find this technique much more practical than declaring classes. But this does go with a more functional approach in general. score 1 · canonical
A somewhat forgotten option for dependency injection in Ruby is closures. Personally I find this technique much more practical than declaring classes. But this does go with a more functional approach in general.
score 1 · canonical