Comparison of Context/Services and Plain Functions for Dependency Injection and Testing
I'm trying to get my head around Context/Services. Currently, I'm solving dependencies with pipes and flatMaps, passing them to regular functions that return new effects.
It feels context is slightly more verbose and complicated to understand, and with plain functions & dependencies I can still get the benefits of dependency injection and isolation for testing, no?
I've attached the full happy-path of my program, but here's a quick comparison as I'm seeing it:
What am I missing? What's a better way to use context for sequential data increments?
It feels context is slightly more verbose and complicated to understand, and with plain functions & dependencies I can still get the benefits of dependency injection and isolation for testing, no?
I've attached the full happy-path of my program, but here's a quick comparison as I'm seeing it:
What am I missing? What's a better way to use context for sequential data increments?
