Cats Core
·
Part 3
Cats Core, Part 3: From Empty Batches to Checkout Totals
I knew how to combine two error reports. Monoid gives an empty batch a useful result, and foldMap takes the same idea to a shopping cart: turn each line into a contribution, then combine the totals.
8 Oct 2026
·
6 min read
·78 views
Cats Core
·
Part 2
Cats Core, Part 2: Teaching Cats How to Combine Our Validation Errors
I could see Validated collecting errors, but I wanted to see the method call behind it. I made its Semigroup argument explicit, then supplied a combination rule for my own structured errors.
5 Oct 2026
·
5 min read
·91 views
Scala and the JVM
·
Part 17
Scala: Part 16: Asynchronous Scala Without Blocking
I connect Future composition and recovery to the map/flatMap pattern, reproduce one-worker starvation safely, and finish with the distinction between a business Left and a failed Future.
3 Oct 2026
·
6 min read
·83 views
Scala and the JVM
·
Part 16
Scala: Part 15: From String Errors to Typed Scala Results
I replace String failures with a sealed family of domain errors, keep Either composition unchanged, and choose human-readable messages only at the display boundary.
30 Sep 2026
·
5 min read
·102 views
Scala and the JVM
·
Part 15
Scala: Part 14: Testing Scala Results - Values, Errors and Exceptions
I unpack AnyFunSuite from a Java developer’s perspective, test returned Right and Left values, check thrown exceptions with intercept, and verify that independent expectations catch real mistakes.
29 Sep 2026
·
6 min read
·105 views
Cats Core
·
Part 1
Cats Core, Part 1: From Optional Fields to Useful Validation Errors
I started learning Cats Core with a small policy form. The same mapN operation first combines optional fields, then collects useful validation errors with Validated.
26 Sep 2026
·
5 min read
·105 views
Scala and the JVM
·
Part 14
Scala: Part 13: Scala Try for Java Developers - Capture, Compose and Recover
From Java-style exception handling to composable Scala results: capture a throwing conversion, understand map versus flatMap, write the same chain with for, and recover only from a specific failure.
24 Sep 2026
·
6 min read
·104 views
Scala and the JVM
·
Part 13
Scala: Part 12: Scala Either for Java Developers - A Result or a Reason
From a Java/Spring perspective, I build Scala Either from explicit Left/Right cases to map, flatMap and a for-comprehension, with three verified lookup outcomes and failure reasons that survive the chain.
22 Sep 2026
·
6 min read
·97 views
Scala and the JVM
·
Part 12
Scala: Part 11: Scala 2 Implicit Classes - Where Did That Method Come From?
Coming from Java, a String with a lookup method looks wild. I unpack Scala 2 implicit classes into an ordinary wrapper, then show how the compiler can supply its repository argument too.
21 Sep 2026
·
5 min read
·102 views
Scala and the JVM
·
Part 11
Scala: Part 10: Scala 2 Implicit Parameters - What the Compiler Supplies, and Why It Refuses
From multiple parameter lists to compiler-supplied repository arguments: real missing and ambiguous implicit errors, explicit fixes, and the difference between a missing dependency and a missing policy.
21 Sep 2026
·
5 min read
·103 views