Scala Cookbook: Recipes for Object-Oriented and Functional Programming
內容描述
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.