Functional Programming in Scala, 2/e (Paperback)

Pilquist, Michael, Chiusano, Paul, Bjarnasson, Rúnar

  • 出版商: Manning
  • 出版日期: 2023-06-06
  • 定價: $2,150
  • 售價: 9.5$2,043
  • 語言: 英文
  • 頁數: 488
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1617299588
  • ISBN-13: 9781617299582
  • 相關分類: JVM 語言
  • 立即出貨 (庫存 < 4)

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

相關主題

商品描述

This international bestseller has been revised with new exercises, annotations, and full coverage of Scala 3.

In Functional Programming in Scala, Second Edition you will learn how to:

 

  • Recognize and write purely functional code
  • Work with errors without using exceptions
  • Work with state and concurrency
  • Interact with functional structures that define common behaviors
  • Write code that performs I/O without sacrificing functional programming


Functional Programming in Scala has helped over 30,000 developers discover the power of functional programming. You'll soon see why reviewers have called it "mindblowing"! The book smooths the complexity curve of functional programming, making it simple to understand the basics and intuitive to progress to more advanced topics. Concrete examples and exercises show you FP in the real world and reveal how it can improve your everyday coding practices. This second edition comes packed with the latest standards of FP, as well as full code updates to Scala 3, and its new language features.

Foreword by Daniel Spiewak.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About the Technology

Functional code is easy to test, reuse, and parallelize, and it's practically immune to whole categories of state-related bugs. With its strong functional features, familiar syntax, and seamless interoperability with Java, there's no better place to start learning functional programming than the flexible Scala language.

About the Book

In Functional Programming with Scala, Second Edition you'll learn functional programming from first principles. Hands-on exercises and examples make it easy to start thinking and coding functionally. This revised edition contains extensive exercise annotations to help you explore FP in depth, along with steps to build your own functional libraries in Scala. Once the functional lightbulb goes on, you'll never look at coding the same way again.

What's Inside

 

  • Recognize and write purely functional code
  • Work with errors without using exceptions
  • Work with state and concurrency
  • Interact with functional structures that define common behaviors


About the Reader

For Java or Scala programmers. No knowledge of functional programming required.

About the Author

Michael Pilquist is the lead maintainer of FS2, a functional streaming library, and contributes to the Typelevel ecosystem. Paul Chiusano and Rúnar Bjarnason are recognized experts in functional programming and authors of the first edition of Functional Programming with Scala.

Table of Contents:

PART 1 - INTRODUCTION TO FUNCTIONAL PROGRAMMING
1 What is functional programming?
2 Getting started with functional programming in Scala
3 Functional data structures
4 Handling errors without exceptions
5 Strictness and laziness
6 Purely functional state
PART 2 - FUNCTIONAL DESIGN AND COMBINATOR LIBRARIES
7 Purely functional parallelism
8 Property-based testing
9 Parser combinators
PART 3 - COMMON STRUCTURES IN FUNCTIONAL DESIGN
10 Monoids
11 Monads
12 Applicative and traversable functors
PART 4 - EFFECTS AND I/O
13 External effects and I/O
14 Local effects and mutable state
15 Stream processing and incremental I/O

商品描述(中文翻譯)

這本國際暢銷書已經進行了修訂,新增了練習題、註解,並全面涵蓋了Scala 3。

在《Functional Programming in Scala, Second Edition》中,您將學習以下內容:

- 辨識並撰寫純函數程式碼
- 在不使用例外的情況下處理錯誤
- 處理狀態和並行性
- 與定義常見行為的函數結構互動
- 撰寫在不犧牲函數式編程的情況下執行I/O的程式碼

《Functional Programming in Scala》已幫助超過30,000名開發人員發現函數式編程的威力。您很快就會明白為什麼評論家稱其為「令人震撼」!這本書使函數式編程的複雜度降低,讓基礎知識易於理解,並且進一步進展到更高級的主題也變得直觀。具體的例子和練習向您展示了函數式編程在現實世界中的應用,並揭示了它如何改進您的日常編碼實踐。這本第二版包含了最新的函數式編程標準,以及對Scala 3的完整代碼更新和新的語言功能。

前言由Daniel Spiewak撰寫。

購買印刷版書籍將包含Manning Publications提供的PDF、Kindle和ePub格式的免費電子書。

關於技術:

函數式程式碼易於測試、重複使用和並行化,並且幾乎不會出現與狀態相關的錯誤。Scala語言具有強大的函數式特性、熟悉的語法,並且與Java無縫互操作,是學習函數式編程的最佳起點。

關於本書:

在《Functional Programming with Scala, Second Edition》中,您將從基本原理開始學習函數式編程。實踐性的練習和例子使您能夠輕鬆地開始思考和編寫函數式程式碼。這本修訂版包含了詳細的練習註解,幫助您深入探索函數式編程,並提供了在Scala中構建自己的函數式庫的步驟。一旦您理解了函數式編程的精髓,您將永遠不會再以相同的方式看待編碼。

內容大綱:

第1部分 - 函數式編程入門
1 什麼是函數式編程?
2 開始使用Scala進行函數式編程
3 函數式數據結構
4 不使用例外處理錯誤
5 嚴格性和惰性
6 純函數式狀態

第2部分 - 函數式設計和組合庫
7 純函數式並行處理
8 基於屬性的測試
9 解析器組合器

第3部分 - 函數式設計中的常見結構
10 單子
11 閂
12 Applicative和可遍歷函子

第4部分 - 效果和I/O
13 外部效果和I/O
14 本地效果和可變狀態
15 流處理和增量I/O

關於讀者:

適合Java或Scala程序員,無需函數式編程知識。

關於作者:

Michael Pilquist是FS2(一個函數式流庫)的主要維護者,並為Typelevel生態系統做出貢獻。Paul Chiusano和Rúnar Bjarnason是函數式編程的專家,也是《Functional Programming with Scala》第一版的作者。

作者簡介

Michael Pilquist has been using Scala since 2009, when he was convinced to give it a try by listening to Dick Wall and the Java Posse. He introduced Scala at Comcast and has written a number of open source functional programming libraries, including scodec, simulacrum, and ip4s. He is also the lead maintainer of FS2, a functional streaming library, and contributes heavily to the Typelevel ecosystem.

Paul Chiusano has been writing and shipping functional code in Scala since 2008 and is responsible for the introduction and growth of Scala usage at his company, Capital IQ. As part of this effort he co-designed a functional programming curriculum and taught an internal course for coworkers interested in learning FP. Paul is also a regular blogger and speaker on functional programming and Scala.

Rúnar Bjarnason and Paul Chiusano are recognized experts in functional programming and authors of the first edition of Functional Programming with Scala.

作者簡介(中文翻譯)

Michael Pilquist自2009年開始使用Scala,當時他被Dick Wall和Java Posse的演講說服,決定試試看。他在Comcast引入了Scala,並撰寫了一些開源的函數式編程庫,包括scodec、simulacrum和ip4s。他還是FS2的主要維護者,FS2是一個函數式流庫,並且積極貢獻於Typelevel生態系統。

Paul Chiusano自2008年以來一直在Scala中編寫和發布函數式代碼,並在他的公司Capital IQ推動了Scala的使用。作為這一努力的一部分,他共同設計了一個函數式編程課程,並為有興趣學習FP的同事教授了內部課程。Paul還是一位經常在函數式編程和Scala方面發表博客和演講的人。

Rúnar Bjarnason和Paul Chiusano是函數式編程的認可專家,也是《Functional Programming with Scala》第一版的作者。