Scala and the JVM · Part 10
Scala's Cake Pattern, One Dependency at a Time
I rebuilt Scala's Cake Pattern as a small checkout application, then traced its component traits, self-type requirements and test wiring from a Java and Spring perspective.
Tag
Scala and the JVM · Part 10
I rebuilt Scala's Cake Pattern as a small checkout application, then traced its component traits, self-type requirements and test wiring from a Java and Spring perspective.
Scala and the JVM · Part 9
A familiar Java interface idea becomes a Scala trait: define a policy repository, implement find, and inherit an exists method that calls the concrete lookup.
Scala and the JVM · Part 8
I knew how to run sbt, but not how its build model worked. I built a small Scala 2.13 project and traced settings, tasks, scopes, Zinc, dependencies, Coursier and local publication back to the Maven concepts I already knew.
Scala and the JVM · Part 7
From one generator and an if guard to two lists and six combinations: I trace Scala for-comprehensions back to map, withFilter and flatMap, with runnable policy examples.
Scala and the JVM · Part 6
Three familiar operations, three different results. I explore Scala List with fictional insurance policies, compare it with Java streams, and reconnect find with Option.
Scala and the JVM · Part 5
Find a policy, find its email, and build a label. Understanding Scala 2 for-comprehensions by translating them into familiar flatMap and map calls, with all three optional outcomes made explicit.
Scala and the JVM · Part 4
Transform a value inside Option, then choose a fallback where it belongs. A walkthrough for Java developers of Scala 2 map, lambdas and getOrElse, derived from match and verified in a runnable lab.
One button turns my open Scala file into a focused lesson. How I built a native IntelliJ panel with Codex, connected DeepSeek, and used an unfinished class as the first real example.
A real IntelliJ development instance, a Scala-focused plugin, and my own graphite theme and hoodie mascot. The architecture, desktop screenshots, and tests behind the first working milestone.
Scala and the JVM · Part 3
From Java Optional to Scala Option: represent presence with Some, absence with None, and handle both outcomes with a match expression using our runnable policy lookup.