Part 1
Scala/Play, Part 1: From Java to Scala with a Runnable sbt Project
Starting Scala 2 from Java and Spring: val and var, expressions, a first method, and a small sbt project you can run. The first step in the Scala/Play series.
Series
Learning Scala 2 and Play from a Java and Spring background, step by step: language fundamentals, sbt workflows, domain modelling, asynchronous services, and Akka, with runnable examples and practical comparisons.
Part 1
Starting Scala 2 from Java and Spring: val and var, expressions, a first method, and a small sbt project you can run. The first step in the Scala/Play series.
Part 2
From a Java-style policy class to Scala 2 case classes: constructor properties, value equality versus identity, and copying data without changing the original.
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.
Next in this series: Classes and constructors: modelling an insurance policy — coming soon.