3 ms·
You're slightly off on your definitions - what you show in that example is dependency injection. You are injecting dependencies into `some_func` by passing the
by nilliams 12y ago
You're slightly off on your definitions - what you show in that example is dependency injection.
You are injecting dependencies into `some_func` by passing them in. See my response to kyllo below.
I think what you are arguing against is using further patterns to facilitate dependency injection, e.g. IOC containers, or what Angular uses (service locators).