Learning Scala: Practical Functional Programming for the JVM (Paperback)

Jason Swartz

  • 出版商: O'Reilly
  • 出版日期: 2015-01-27
  • 定價: $1,380
  • 售價: 9.0$1,242
  • 語言: 英文
  • 頁數: 256
  • 裝訂: Paperback
  • ISBN: 1449367933
  • ISBN-13: 9781449367930
  • 相關分類: JVM 語言
  • 相關翻譯: Scala 學習手冊 (簡中版)
  • 立即出貨 (庫存 < 3)

買這商品的人也買了...

商品描述

Why learn Scala? You don’t need to be a data scientist or distributed computing expert to appreciate this object-oriented functional programming language. This practical book provides a comprehensive yet approachable introduction to the language, complete with syntax diagrams, examples, and exercises. You’ll start with Scala's core types and syntax before diving into higher-order functions and immutable data structures.

Author Jason Swartz demonstrates why Scala’s concise and expressive syntax make it an ideal language for Ruby or Python developers who want to improve their craft, while its type safety and performance ensures that it’s stable and fast enough for any application.

  • Learn about the core data types, literals, values, and variables
  • Discover how to think and write in expressions, the foundation for Scala's syntax
  • Write higher-order functions that accept or return other functions
  • Become familiar with immutable data structures and easily transform them with type-safe and declarative operations
  • Create custom infix operators to simplify existing operations or even to start your own domain-specific language
  • Build classes that compose one or more traits for full reusability, or create new functionality by mixing them in at instantiation

商品描述(中文翻譯)

為什麼要學習Scala?即使不是資料科學家或分散式計算專家,你也能欣賞這個面向對象的函數式編程語言。這本實用的書提供了一個全面而易於理解的介紹,包括語法圖表、示例和練習。你將從Scala的核心類型和語法開始,然後深入研究高階函數和不可變數據結構。

作者Jason Swartz展示了為什麼Scala簡潔而表達豐富的語法使其成為Ruby或Python開發人員提升技能的理想語言,同時其類型安全性和性能確保了它對於任何應用程序都是穩定且快速的。

本書內容包括:
- 了解核心數據類型、字面值、值和變量
- 發現如何以表達式思考和編寫,這是Scala語法的基礎
- 編寫接受或返回其他函數的高階函數
- 熟悉不可變數據結構,並使用類型安全和聲明式操作輕鬆轉換它們
- 創建自定義中綴運算符,以簡化現有操作,甚至開始自己的領域特定語言
- 構建組合一個或多個特徵以實現完全可重用性的類,或在實例化時混入它們以創建新功能