Book Image

Professional Scala

By : Mads Hartmann, Ruslan Shevchenko
Book Image

Professional Scala

By: Mads Hartmann, Ruslan Shevchenko

Overview of this book

This book teaches you how to build and contribute to Scala programs, recognizing common patterns and techniques used with the language. You’ll learn how to write concise, functional code with Scala. After an introduction to core concepts, syntax, and writing example applications with scalac, you’ll learn about the Scala Collections API and how the language handles type safety via static types out-of-the-box. You’ll then learn about advanced functional programming patterns, and how you can write your own Domain Specific Languages (DSLs). By the end of the book, you’ll be equipped with the skills you need to successfully build smart, efficient applications in Scala that can be compiled to the JVM.
Table of Contents (12 chapters)

Popular Libraries

By this point, you should have a good understanding of the main concepts behind functional programming such as pure functions, immutability, and higher-order functions. In addition to that, you should be familiar with some of the most popular abstractions used when writing functional programs. With all of this knowledge, you are well equipped to start looking into some of the popular functional programming libraries in Scala.

In this section, we'll look at some of the popular functional programming libraries from the Scala ecosystem. After this section, you should be able to:

  • Use the Cats Validated type class to validate your data

  • Use Doobie to talk to databases

Validating Data Using Cats

In this section, we'll get a quick overview of the Cats library and look at one of the data types it provides to Validate data.


For more information on Cats, refer to

By the end of this section, you should understand how Cats fits into the...