Replace dependency injection and mocking with algebraic effects
Development blog
The main idea is, instead of injecting what you need, you ask for it using an effect. If you don’t know what an algeabraic effect is, you can read about it on StackOverflow or Wikipedia. To quote the Stackoverflow answer: In short, algebraic effects are an exception mechanism which lets the...