Scala for Java Developers: A Practical Primer
- Length: 245 pages
- Edition: 1st ed.
- Language: English
- Publisher: Apress
- Publication Date: 2018-01-17
- ISBN-10: 1484231074
- ISBN-13: 9781484231074
- Sales Rank: #2896679 (See Top 100 Books)
Master the fundamentals of Scala and understand its emphasis on functional programming that sets it apart from Java. This book will help you translate what you already know in Java to Scala to start your functional programming journey. Learn Scala is split into four parts: a tour of Scala, a comparison between Java and Scala, Scala-specific features and functional programming idioms, and finally a discussion about adopting Scala in existing Java teams and legacy projects.
After reading and using this tutorial, you’ll come away with the skills in Scala to kick-start your productivity with this growing popular language.
What You’ll Learn
- Tour Scala and learn the basic syntax, constructs, and how to use the REPL
- Translate Java syntax that you already know into Scala
- Learn what Scala offers over and above Java
- Become familiar with functional programming concepts and idioms
- Gain tips and advice useful when transitioning existing Java projects to Scala
Who This Book Is For
Java developers looking to transition to Scala. No prior experience necessary in Scala.
Table of Contents
Part I: Scala Tour
Chapter 1: The Scala Language
Chapter 2: Installing Scala
Chapter 3: Some Basic Syntax
Chapter 4: Scala’s Class Hierarchy
Chapter 5: ScalaDoc
Chapter 6: Language Features
Chapter 7: Summary
Part II: Key Syntactical Differences
Chapter 8: Classes and Fields
Chapter 9: Classes and Objects
Chapter 10: Classes and Functions
Chapter 11: Inheritance
Chapter 12: Control Structures
Chapter 13: Generics
Part III: Beyond Java to Scala
Chapter 14: Faking Function Calls
Chapter 15: Faking Language Constructs
Chapter 16: Pattern Matching
Chapter 17: Map and FlatMap
Chapter 18: Monads
Chapter 19: For Comprehensions
Part IV: Adopting Scala in Java Teams
Chapter 20: Adopting Scala
Chapter 21: What to Expect
Chapter 22: Tips
Chapter 23: Convert Your Codebase
Chapter 24: Manage Your Codebase
Appendix A: Code Listings
Appendix B: Syntax Cheat Sheet