Interest in the Scala programming language continues to grow for many reasons. Scala embraces the functional programming style without abandoning the object-oriented paradigm, and it allows you to write programs more concisely than in Java. Because Scala runs on the JVM, it can access any Java library and is interoperable with familiar Java frameworks. Scala also makes it easier to leverage the full power of concurrency.

Written for experienced Java, C++, or C# programmers who are new to Scala or functional programming, Scala for the Impatient, Second Edition, introduces the key Scala concepts and techniques you need in order to be productive quickly. It is the perfect introduction to the language, particularly for impatient readers who want to learn the fundamentals of Scala so they can start coding quickly. It doesn’t attempt to exhaustively list all the features of the language or make you suffer through long and contrived examples. Instead, carefully crafted examples and hands-on activities guide you through well-defined stages of competency, from basic to expert.

This revised edition has been thoroughly updated for Scala 2.12 and reflects current Scala usage. It includes added coverage of recent Scala features, including string interpolation, dynamic invocation, implicit classes, and futures. Scala is a big language, but you can use it effectively without knowing all of its details intimately. This title provides precisely the information that you need to get started in compact, easy-to-understand chunks.

  • Get started quickly with Scala’s interpreter, syntax, tools, and unique idioms

  • Master core language features: functions, arrays, maps, tuples, packages, imports, exception handling, and more

  • Become familiar with object-oriented programming in Scala: classes, inheritance, and traits

  • Use Scala for real-world programming tasks: working with files, regular expressions, and XML

  • Work with higher-order functions and the powerful Scala collections library

  • Leverage Scala’s powerful pattern matching and case classes

  • Create concurrent programs with Scala futures

  • Implement domain-specific languages

  • Understand the Scala type system

  • Apply advanced “power tools,” such as annotations, implicits, and type classes

Register your product at for convenient access to downloads, updates, and corrections as they become available.

Table of Contents

Chapter 1 The Basics
Chapter 2 Control Structures And Functions
Chapter 3 Working With Arrays
Chapter 4 Maps And Tuples
Chapter 5 Classes
Chapter 6 Objects
Chapter 7 Packages And Imports
Chapter 8 Inheritance
Chapter 9 Files And Regular Expressions
Chapter 10 Traits
Chapter 11 Operators
Chapter 12 Higher-Order Functions
Chapter 13 Collections
Chapter 14 Pattern Matching And Case Classes
Chapter 15 Annotations
Chapter 16 Xml Processing
Chapter 17 Futures
Chapter 18 Type Parameters
Chapter 19 Advanced Types
Chapter 20 Parsing
Chapter 21 Implicits

Book Details

Title: Scala for the Impatient, 2nd Edition
Author: Cay S. Horstmann
Length: 384 pages
Edition: 2
Language: English
Publisher: Addison-Wesley Professional
Publication Date: 2016-12-25
ISBN-10: 0134540565
ISBN-13: 9780134540566