Scala Cookbook: Recipes for Object-Oriented and Functional Programming

Alexander, Alvin

  • 出版商: O'Reilly
  • 出版日期: 2021-08-31
  • 定價: $2,270
  • 售價: 9.5$2,157
  • 貴賓價: 9.0$2,043
  • 語言: 英文
  • 頁數: 789
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1492051543
  • ISBN-13: 9781492051541
  • 相關分類: JVM 語言Object-oriented 物件導向
  • 立即出貨



Save time and trouble building object-oriented, functional, and concurrent applications with Scala 3. The latest edition of this comprehensive cookbook is packed with more than 250 ready-to-use recipes and 700 code examples to help you solve the most common problems when working with Scala and its popular libraries.

Whether you're working on web, big data, or distributed applications, this cookbook provides recipes based on real-world scenarios for experienced Scala developers and for programmers just learning to use this JVM language. Author Alvin Alexander includes practical solutions from his experience using Scala for highly scalable applications that support concurrency and distribution.

Recipes cover:

  • Strings, numbers, and control structures
  • Classes, methods, objects, traits, packaging, and imports
  • Functional programming in a variety of situations
  • Building Scala applications with sbt
  • Collections covering Scala's wealth of classes and methods
  • Actors and concurrency
  • List, array, map, set, and more
  • Files, processes, and command-line tasks
  • Web services and interacting with Java
  • Databases and persistence, data types and idioms


Alvin Alexander took the circuitous route to software development. He managed to get a degree in Aerospace Engineering from Texas A&M University while all he wanted to do was play baseball. Once he became a practicing engineer he was volunteered to maintain the company's software applications, and quickly realized he liked it. As a result he ended up teaching himself Fortran, C, Unix and network administration, Perl, Java, Python, Ruby, Scala, and Kotlin. During this process he started a software consulting firm, grew it to fifteen people, sold it, and moved to Alaska. After returning to the "Lower 48" he self-published two books, How I Sold My Business: A Personal Diary, and A Survival Guide for New Consultants. Since then he has written three more books: Scala Cookbook; Functional Programming, Simplified; and Hello, Scala.