Book description
Learn the latest version of Scala through simple, practical examples. This book introduces you to the Scala programming language, its object-oriented and functional programming characteristics, and then guides you through Scala constructs and libraries that allow you to assemble small components into high-performance, scalable systems.
Beginning Scala 3 explores new Scala 3 language features such as Top-level declarations, Creator applications, Extension methods to add extra functionality to existing types, and Enums. You will also learn new ways to manipulate types via Union types, intersection, literal, and opaque type aliases. Additionally, you’ll see how Implicits are replaced by given and using clauses.
After reading this book, you will understand why Scala is judiciously used for critical business applications by leading companies such as Twitter, LinkedIn, Foursquare, the Guardian, Morgan Stanley, Credit Suisse, UBS, and HSBC – and you will be able to use it in your own projects.
What You Will Learn
- Get started with Scala 3 or Scala language programming in general
- Understand how to utilitze OOP in Scala
- Perform functional programming in Scala
- Master the use of Scala collections, traits and implicits
- Leverage Java and Scala interopability
- Employ Scala for DSL programming
- Use patterns and best practices in Scala
Who This Book Is For
Those with a background in Java and/or Kotlin who are new to Scala. This book is also for those with some prior Scala experience who want to learn Scala version 3.
Table of contents
- Cover
- Front Matter
- 1. Getting Started with Scala
- 2. Basics of Scala
- 3. Object-Oriented Modeling
- 4. Functional Programming
- 5. Pattern Matching
- 6. Scala Collections
- 7. Traits and Enums
- 8. Scala Type System
- 9. Scala and Java Interoperability
- 10. DSL and Parser Combinator
- 11. Simple Build Tool
- 12. Creating Web Applications
- 13. Testing Your Code
- 14. Scala Best Practices
- Back Matter
Product information
- Title: Beginning Scala 3: A Functional and Object-Oriented Java Language
- Author(s):
- Release date: January 2022
- Publisher(s): Apress
- ISBN: 9781484274224
You might also like
book
Get Programming with Scala
The perfect starting point for your journey into Scala and functional programming. In Get Programming in …
book
Functional Programming Patterns in Scala and Clojure
Solve real-life programming problems with a fraction of the code that pure object-oriented programming requires. Use …
book
Functional Programming in Scala
Functional Programming in Scala is a serious tutorial for programmers looking to learn FP and apply …
video
Practical Scala for Java Developers
This video's accompanying source code can be found on GitHub. You're a Java developer who has …