This step-by-step guide is full of easy-to-follow code taken from real-world examples explaining the migration and integration of Scala in a Java project. If you are a Java developer or a Java architect, working in Java EE-based solutions and want to start using Scala in your daily programming, this book is ideal for you. This book will get you up and running quickly by adopting a pragmatic approach with real-world code samples. No prior knowledge of Scala is required.
I have been putting off my journey into Scala for a long time now. Being a long time Java Developer, I wanted something to ease my introduction to Scala from a Java perspective. The strengths of Scala are well documented over the years and I finally took the plunge to learn more about this JVM language.
The book from PacktPub has eased my introduction to the language to a great extent. It starts off with the Scala REPL that allows you to test out the basic Scala syntax and judge for yourself the feel of the syntax and quickly it dawns how your code could be smaller and more expressive, compared to Java. It then goes into common architectures and tools that you would expect coming from a Java world. It takes off on Web Services and how you can utilize Scala for testing the services.
No discussion on Scala is complete without going into the highly regarded Play Framework and Akka. The book tackles both of these topics in depth and with just about enough examples for you to get going in both these frameworks. Akka is also available for Java so if you are familiar with Akka, its reactive principles – the move to Scala Akka should be straight forward. There are dedicated chapters in the book on both principles/concepts and building reactive web applications.
The book ends with a chapter titled “Scala Goodies” , which covers MongoDB integration and DSLs in Java.
Overall, this is a good book to get introduced to Scala if you are an experienced Java developer. The balance of theory and sample code is good and it would form the basis for your next project in Scala.
Previously, I had taken part of a popular MOOC class on Scala. But I have found this book to be a more pleasant and useful way to learn the language. I especially like Thomas Alexandre's calm approach of blending Scala and Java together in code examples and demonstrating how compact and concise Scala programs can be.
As a dotnethead turned to the duke side of the force I really liked the chapters on Slick and Async/Await. The book also provides an intro to the Play webframework and Akka actor framework. Just enough to get you going. I had prior exposure to both Java and Scala but a refresher was required. Speed read this book and other books but will certainly go back to solve problems If I get stuck. As a pure language learning book other books may be better.
I really enjoyed reading this book as a java programmer and I really found it very useful whoever, more or less experienced in java, wants to switch to scala. I highly recommend this book to those interested in scala programming language, but, IMO, they need to read another book (or by other means) to learn the scala programming language before digging into this one.
Not what I was looking for, really. Flies over topics at (for me) too high a level. Downloaded sample project contained stuff I couldn't get to work (again, it's probably me). May come back to this book later, but for now, not helping me.