2 ms·
Sometimes state is an actual desirable thing and strategy can be a dependency. Heck, higher order functions (functions taking functions as argument) are depend
by AstralStorm 9y ago
Sometimes state is an actual desirable thing and strategy can be a dependency.
Heck, higher order functions (functions taking functions as argument) are dependency injection personified.
- eropple 9y agoState is a desirable thing in the code that wraps your business logic, for sure! Otherwise you're not actually doing anything. That's distinct from state in your business logic, though.