About the Book
Scala from Scratch: Understanding is the second in a series of two books that teach you the Scala programming language. Readers that have read Scala from Scratch: Exploration or have learned some Scala through other means will get a deeper understanding of the language features and underlying functional programming concepts that have been explored in the first book. You will also learn about important advanced language features that play a crucial role in many real-life Scala projects. While doing so, you'll get to know best practices that have been established over the years. By the end of the book, you will have a grasp of the language, its idioms, and common tools and techniques, allowing you to be a productive member in commercial or open-source Scala projects.
In this book you will learn more about algebraic data types and about pattern matching, and you will get insights into functional ways of error handling. You will learn about essential ideas of functional programming like currying and partial functional application. You will also explore advanced aspects of the Scala type system like covariance and contravariance, and how to employ the type class pattern when abstracting over concrete types. You will learn about the design of Scala's collections API and how to work with Scala collections effectively. You will get a good grasp of property-based testing, an alternative to example-based testing, and you will dive deeper into sbt, the standard build tool in the Scala ecosystem. You will also learn how to interact with the outside world in a purely functional way, and about different approaches at concurrent programming in Scala.
Some of the content in this book is based on The Neophyte's Guide to Scala. However, it has been heavily revised, and amended with a lot of new content. In some ways, you can think of it as a second, extended edition of that book — structured and written so that it builds on what readers have learned in Scala from Scratch: Exploration.
If you're a member of a marginalised community and/or can't afford to buy this book, feel free to claim one of the free community copies. Copies are limited, but I will add more whenever someone donates one.
There are currently 2 community copies available. Use this link to claim your free community copy of the book. If the coupon doesn't work, all copies have been claimed, and I haven't been able to update this page yet. There is no way for me to automate the process, unfortunately.
Donating a copy
If you would like to support members of a marginalised community who can't afford the book, please consider donating a community copy by choosing the Donate a Community copy package.
If you like the book, I would be very grateful if you could post a review on your blog or on the book's Goodreads page.
About the Author
Daniel Westheide is a software engineer living in Berlin, Germany. He is a senior consultant at INNOQ and co-organizer of ScalaBridge Berlin, the Berlin chapter of the ScalaBridge organization. He cares about empathy and inclusivity, and about the ethical, social, and ecological consequences of his work.
On his website, he discusses functional programming, architecture, as well as anything related to the software development process. He is not only interested in programming languages, but also a human language enthusiast. Moreover, he is passionate about specialty coffee, social science fiction, and tabletop roleplaying games.