Throughout my time developing in Scala I have been introduced to numerous amounts of books. Some of these books were not really relevant to me at the time I was introduced to them. As I went on with learning Scala some of these books that were previously irrelevant became really crucial to my understanding of Scala, which is why I call them my best Scala books.
As I read more and more of these books I could see myself improving my code quality and overall performance as a Scala developer. I believe the best Scala books are the ones that you do not want to stop reading once you start. Also the books that are rich in exercises as they allow you to put into practice the knowledge you just learnt.
I have narrowed down all these books to the best 5 I believe are crucial in becoming a proficient Scala developer, I hope that you can learn just as much as I did from these books.
The best 5 books in 2020
This is a very important book to me as it was the first Scala book I fully read. The method used to explain Scala in this book is very clever as the author breaks down the problem and then shows you how to solve it.
I was given the 3rd edition of this book by my manager when I first began developing in Scala. It is written by the creator of Scala and contains everything you need to know to become a productive Scala developer.
This book is usually called the red book in most Scala teams. This book contains concrete examples & tutorials from beginner level to advanced. This book assumes no prior experience with functional programming.
This book is fundamental as it will teach you how to write efficient, clean, and reusable code with Scala. As the author says “By the end of this book, you’ll have enough knowledge and understanding to quickly assess problems and come up with elegant solutions”.
Written by the same author as #1 on the list but is more comprehensive and contains 250 ready-to-use recipes and 700 code examples. The solutions in this book come from the authors own experience which for me made it easier to understand.
1. Alvin Alexander is a name you may have heard of before when researching Scala examples online, he is the writer of this book. The reason why I put this book on the top of my list is because it explains everything in a way which make you think about the concept more then the other books do, this may just be me but the explanations are very easy to understand.
2. As mentioned previously this book was written by the creators of Scala and who best to teach you Scala then the creators themselves. I read the 3rd edition of this book in my first month coding in Scala and it taught me a lot at the time.
3. The red book in particular is very key as I to this day still go through the exercises with my team members as it builds a good relationship and helps share your knowledge on solving Scala/functional programming problems.
4. Scala design patterns is a book which many developers tend not to read, I am not sure why this is, but if you are just starting out as a Scala developer with 0 industry experience this book should allow you to form an understanding of where things should go when developing in Scala and how to quickly assess problems and come up with elegant solutions.
5. The Scala cookbook is a comprehensive cookbook that covers the most common problems you’ll encounter when using the Scala language, libraries, and tools. It is written by Alvin Alexander as #1 on my list is. This book goes into more technical detail then #1 so I would recommend reading the beginners book first if you are just starting out.
In summary no matter your level of Scala knowledge, these books should help you even if you have been developing for many years.