Professional Scala
暫譯: 專業 Scala

Mads Hartmann, Ruslan Shevchenko

  • 出版商: Packt Publishing
  • 出版日期: 2018-07-30
  • 售價: $1,830
  • 貴賓價: 9.5$1,739
  • 語言: 英文
  • 頁數: 186
  • 裝訂: Paperback
  • ISBN: 178953383X
  • ISBN-13: 9781789533835
  • 相關分類: JVM 語言
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

If your application source code is overly verbose, it can be a nightmare to maintain. Write concise and expressive, type-safe code in an environment that lets you build for the JVM, browser, and more.

Key Features

  • Expert guidance that shows you to efficiently use both object-oriented and functional programming techniques
  • Understand functional programming libraries, such as Cats and Scalaz, and use them to augment your Scala development
  • Perfectly balances theory and hands-on exercises, assessments, and activities

Book Description

This book teaches you how to build and contribute to Scala programs, recognizing common patterns and techniques used with the language. You’ll learn how to write concise, functional code with Scala. After an introduction to core concepts, syntax, and writing example applications with scalac, you’ll learn about the Scala Collections API and how the language handles type safety via static types out-of-the-box. You’ll then learn about advanced functional programming patterns, and how you can write your own Domain Specific Languages (DSLs). By the end of the book, you’ll be equipped with the skills you need to successfully build smart, efficient applications in Scala that can be compiled to the JVM.

What you will learn

  • Understand the key language syntax and core concepts for application development
  • Master the type system to create scalable type-safe applications while cutting down your time spent debugging
  • Understand how you can work with advanced data structures via built-in features such as the Collections library
  • Use classes, objects, and traits to transform a trivial chatbot program into a useful assistant
  • Understand what are pure functions, immutability, and higher-order functions
  • Recognize and implement popular functional programming design patterns

Who this book is for

This is an ideal book for developers who are looking to learn Scala, and is particularly well suited for Java developers looking to migrate across to Scala for application development on the JVM.

Table of Contents

  1. Setting up the Development Environment
  2. Basic Language Features
  3. Functions
  4. Scala Collections
  5. Scala Type System
  6. Implicits
  7. Functional Idioms
  8. Domain Specific Languages

商品描述(中文翻譯)

如果您的應用程式源代碼過於冗長,維護起來可能會變得非常困難。在一個能讓您為 JVM、瀏覽器等構建的環境中,編寫簡潔且表達力強、類型安全的代碼。

主要特點
- 專家的指導,教您如何有效地使用面向對象和函數式編程技術
- 理解函數式編程庫,如 Cats 和 Scalaz,並利用它們增強您的 Scala 開發
- 理論與實踐練習、評估和活動之間的完美平衡

書籍描述
本書教您如何構建和貢獻於 Scala 程式,認識與該語言相關的常見模式和技術。您將學會如何用 Scala 編寫簡潔的函數式代碼。在介紹核心概念、語法以及使用 scalac 編寫示例應用程式後,您將了解 Scala Collections API 以及該語言如何通過靜態類型自動處理類型安全。接著,您將學習高級函數式編程模式,以及如何編寫自己的領域特定語言(DSL)。到書籍結束時,您將具備成功構建智能、高效的 Scala 應用程式所需的技能,這些應用程式可以編譯到 JVM。

您將學到的內容
- 理解應用程式開發的關鍵語言語法和核心概念
- 精通類型系統,以創建可擴展的類型安全應用程式,同時減少調試所花的時間
- 理解如何通過內建功能(如 Collections 庫)使用高級數據結構
- 使用類、對象和特徵將一個簡單的聊天機器人程式轉變為有用的助手
- 理解什麼是純函數、不變性和高階函數
- 辨識並實現流行的函數式編程設計模式

本書適合誰
這是一本理想的書籍,適合希望學習 Scala 的開發者,特別適合希望轉向 Scala 進行 JVM 應用程式開發的 Java 開發者。

目錄
1. 設置開發環境
2. 基本語言特性
3. 函數
4. Scala 集合
5. Scala 類型系統
6. 隱式
7. 函數式慣用法
8. 領域特定語言