Book description
Why learn Scala? You don’t need to be a data scientist or distributed computing expert to appreciate this object-oriented functional programming language. This practical book provides a comprehensive yet approachable introduction to the language, complete with syntax diagrams, examples, and exercises. You’ll start with Scala's core types and syntax before diving into higher-order functions and immutable data structures.
Author Jason Swartz demonstrates why Scala’s concise and expressive syntax make it an ideal language for Ruby or Python developers who want to improve their craft, while its type safety and performance ensures that it’s stable and fast enough for any application.
- Learn about the core data types, literals, values, and variables
- Discover how to think and write in expressions, the foundation for Scala's syntax
- Write higher-order functions that accept or return other functions
- Become familiar with immutable data structures and easily transform them with type-safe and declarative operations
- Create custom infix operators to simplify existing operations or even to start your own domain-specific language
- Build classes that compose one or more traits for full reusability, or create new functionality by mixing them in at instantiation
Publisher resources
Table of contents
- Dedication
- Preface
-
I. Core Scala
- 1. Getting Started with the Scalable Language
- 2. Working with Data: Literals, Values, Variables, and Types
- 3. Expressions and Conditionals
-
4. Functions
- Procedures
- Functions with Empty Parentheses
- Function Invocation with Expression Blocks
- Recursive Functions
- Nested Functions
- Calling Functions with Named Parameters
- Parameters with Default Values
- Vararg Parameters
- Parameter Groups
- Type Parameters
- Methods and Operators
- Writing Readable Functions
- Summary
- Exercises
- 5. First-Class Functions
- 6. Common Collections
- 7. More Collections
- II. Object-Oriented Scala
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: Learning Scala
- Author(s):
- Release date: December 2014
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449368838
You might also like
book
Learning Scala Programming
Learn how to write scalable and concurrent programs in Scala, a language that grows with you. …
book
Learn Scala Programming
" A step-by-step guide in building high-performance scalable applications with the latest features of Scala. Key …
book
Get Programming with Scala
The perfect starting point for your journey into Scala and functional programming. In Get Programming in …
video
Scala for the Impatient
4+ Hours of Video Instruction Overview In Scala for the Impatient LiveLessons best-selling author and professor …