You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- This also avoids the need for intermediate filtering between steps, coz all the failures contained in `Either.`left`are auto-skipped from processing downstream. This is possible due to the **Monad** property of`Either`.
188
+
- This also avoids the need for intermediate filtering between steps, coz all the failures contained in `Either.left`are auto-skipped from processing downstream. This is possible due to the **Monad** property of`Either`.
Monad is out of scope to be covered here, but I have an entire 1 hour talk about this, which can help you fill in this missing piece:
202
+
Monad is out of scope to be covered here, but I have a blog post [Monads for Drunken Coders](/posts/monads-for-drunken-coders-pint-1/) and an entire 1 hour talk about this, which can help you fill in this missing piece:
- Now, We can focus on testing just the signal part.
370
+
- Now, we can focus on testing just the signal part.
371
371
- This [BiConsumer](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/function/BiConsumer.html) is agnostic of what's passed, so we can cleverly use a `HashMap::put` to test this function.
372
372
- As our code turns testable, we don't need magical mocking frameworks or **over-granular testing** to achieve ~95% test coverage. We can easily write highly targeted tests.
373
373
@@ -382,7 +382,7 @@ public EggService(
382
382
@Qualifier(EGG_REPO) EggRepo eggRepo,
383
383
...
384
384
)
385
-
````
385
+
```
386
386
387
387
But if all you need is a function from a Dependency, resist injecting the entire object. Instead, inject only the function that you need.
0 commit comments