Scala Cookbook

Save time and trouble when using Scala to build object-oriented, functional, and concurrent applications. With more than 250 ready-to-use recipes and 700 code examples, this comprehensive cookbook covers the most common problems you’ll encounter when using the Scala language, libraries, and tools. It’s ideal not only for experienced Scala developers, but also for programmers learning to use this JVM language.

Author Alvin Alexander (creator of provides solutions based on his experience using Scala for highly scalable, component-based applications that support concurrency and distribution. Packed with real-world scenarios, this book provides recipes for:

  • Strings, numeric types, and control structures
  • Classes, methods, objects, traits, and packaging
  • Functional programming in a variety of situations
  • Collections covering Scala’s wealth of classes and methods
  • Concurrency, using the Akka Actors library
  • Using the Scala REPL and the Simple Build Tool (SBT)
  • Web services on both the client and server sides
  • Interacting with SQL and NoSQL databases
  • Best practices in Scala development

Table of Contents
Chapter 1. Strings
Chapter 2. Numbers
Chapter 3. Control Structures
Chapter 4. Classes and Properties
Chapter 5. Methods
Chapter 6. Objects
Chapter 7. Packaging and Imports
Chapter 8. Traits
Chapter 9. Functional Programming
Chapter 10. Collections
Chapter 11. List, Array, Map, Set (and More)
Chapter 12. Files and Processes
Chapter 13. Actors and Concurrency
Chapter 14. Command-Line Tasks
Chapter 15. Web Services
Chapter 16. Databases and Persistence
Chapter 17. Interacting with Java
Chapter 18. The Simple Build Tool (SBT)
Chapter 19. Types
Chapter 20. Idioms

Book Details

  • Paperback: 722 pages
  • Publisher: O’Reilly Media (August 2013)
  • Language: English
  • ISBN-10: 1449339611
  • ISBN-13: 978-1449339616
Download [11.3 MiB]

You may also like...

Leave a Reply