Foundations of Professional Scala
Contents
It’s best to take the chapters in order, because each one builds on the code from the one before.
Start reading
Also as ePub, mobi and PDF, or one chapter at a time. Download the code for every chapter.
Part I: Scala for Java developers
These chapters stay close to Java and cover values, case classes, collections, Option and testing.
Part II: Getting the compiler to do the work
This part adds functions as values, types that model the problem and errors as ordinary values, then generics and givens.
Part III: Effects
Programs that do input and output and run concurrently, written with Cats Effect and fs2. The last chapter does the same work in direct style.
Part IV: A real service
The project gets an sbt build, an HTTP API, a Postgres database, more tests and a Docker image. The last chapter is about Play.
Appendices
Short guides to Scala 2 code and to the libraries the book doesn’t use.