Functional Programming in C#, 2/e (Paperback)
暫譯: C# 函數式程式設計(第二版)

Buonanno, Enrico

  • 出版商: Manning
  • 出版日期: 2022-02-01
  • 定價: $2,230
  • 售價: 9.5$2,119
  • 貴賓價: 9.0$2,007
  • 語言: 英文
  • 頁數: 448
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1617299820
  • ISBN-13: 9781617299827
  • 相關分類: C#
  • 相關翻譯: C# 函數式編程, 2/e (Functional Programming in C#, 2/e) (簡中版)
  • 立即出貨 (庫存 < 3)

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

相關主題

商品描述

Real world examples and practical techniques for functional programming in C# without the jargon and theory.

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

Use higher-order functions to reduce duplication and do more with less code
Use pure functions to write code that is easy to test and optimize
Write pleasant APIs that accurately describe your program's behavior
Use dedicated types to handle nullability, system errors, and validation rules predictably and elegantly
Write composable code without the overhead of an IoC container

Functional Programming in C# has helped thousands of developers apply functional thinking to C# code. Its practical examples and spot-on treatment of FP concepts makes it the perfect guide for proficient C# programmers. This second edition is fully revised to cover new functional-inspired features in the most recent releases of C#, including tuples, async streams, pattern matching, and records. Each chapter is packed with awesome perspectives and epiphany moments on how functional programming can change the way you code.

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

About the technology
Turbocharge your C# code. Good functional techniques will improve concurrency, state management, event handling, and maintainability of your software. This book gives you practical answers to why, how, and where to add functional programing into your C# coding practice.

About the book
Functional Programming in C#, Second Edition teaches functional thinking for real-world problems. It reviews the C# language features that allow you to program functionally and through many practical examples shows the power of function composition, data-driven programming, and immutable data structures. All code examples work with .NET 6 and C# 10.

What's inside

Higher-order functions reduce duplication and do more with less code
Code based on pure functions is easy to test and optimize
Write pleasant APIs that accurately describe your program's behavior
Write a Web API in a functional style
Monadic composition with LINQ

About the reader
For intermediate C# programmers.

About the author
Enrico Buonanno studied Computer Science at Columbia University and has over 15 years of experience as a developer, architect, and trainer.

Table of Contents
PART 1 GETTING STARTED
1 Introducing functional programming
2 Thinking in functions
3 Why function purity matters
PART 2 CORE TECHNIQUES
4 Designing function signatures and types
5 Modeling the possible absence of data
6 Patterns in functional programming
7 Designing programs with function composition
PART 3 FUNCTIONAL DESIGNS
8 Functional error handling
9 Structuring an application with functions
10 Working effectively with multi-argument functions
11 Representing state and change
12 A short introduction to functional data structures
13 Event sourcing: A functional approach to persistence
PART 4 ADVANCED TECHNIQUES
14 Lazy computations, continuations, and the beauty of monadic composition
15 Stateful programs and stateful computations
16 Working with asynchronous computations
17 Traversable and stacked monads
18 Data streams and the Reactive Extensions
19 An introduction to message-passing concurrency

商品描述(中文翻譯)

**實際案例和實用技術,無需術語和理論,讓您在 C# 中進行函數式編程。**

在 *Functional Programming in C#, Second Edition* 中,您將學習如何:

使用高階函數來減少重複,並用更少的代碼做更多的事情
使用純函數來編寫易於測試和優化的代碼
編寫愉悅的 API,準確描述您程序的行為
使用專用類型來預測性和優雅地處理可空性、系統錯誤和驗證規則
編寫可組合的代碼,而無需 IoC 容器的開銷

*Functional Programming in C#* 幫助了成千上萬的開發者將函數式思維應用於 C# 代碼。其實用的範例和對 FP 概念的準確處理,使其成為熟練 C# 程式設計師的完美指南。這一版已全面修訂,以涵蓋 C# 最新版本中的新函數式靈感特性,包括元組、異步流、模式匹配和記錄。每一章都充滿了精彩的觀點和頓悟時刻,展示了函數式編程如何改變您的編碼方式。

購買印刷書籍可獲得 Manning Publications 提供的免費 PDF、Kindle 和 ePub 格式電子書。

**關於技術**
加速您的 C# 代碼。良好的函數式技術將改善您的軟體的併發性、狀態管理、事件處理和可維護性。本書為您提供了為什麼、如何以及在哪裡將函數式編程添加到您的 C# 編碼實踐中的實用答案。

**關於本書**
*Functional Programming in C#, Second Edition* 教授針對現實世界問題的函數式思維。它回顧了 C# 語言特性,讓您能夠以函數式方式編程,並通過許多實用範例展示函數組合、數據驅動編程和不可變數據結構的力量。所有代碼範例均適用於 .NET 6 和 C# 10。

**內容概覽**

高階函數減少重複,並用更少的代碼做更多的事情
基於純函數的代碼易於測試和優化
編寫愉悅的 API,準確描述您程序的行為
以函數式風格編寫 Web API
使用 LINQ 進行單子組合

**關於讀者**
適合中級 C# 程式設計師。

**關於作者**
**Enrico Buonanno** 在哥倫比亞大學學習計算機科學,擁有超過 15 年的開發者、架構師和培訓師經驗。

**目錄**
第一部分 開始
1 介紹函數式編程
2 函數思維
3 為什麼函數純度很重要
第二部分 核心技術
4 設計函數簽名和類型
5 建模數據的可能缺失
6 函數式編程中的模式
7 使用函數組合設計程序
第三部分 函數式設計
8 函數式錯誤處理
9 使用函數結構化應用程序
10 有效處理多參數函數
11 表示狀態和變化
12 函數式數據結構簡介
13 事件來源:持久性的函數式方法
第四部分 進階技術
14 懶計算、延續和單子組合的美
15 有狀態程序和有狀態計算
16 處理異步計算
17 可遍歷和堆疊單子
18 數據流和反應式擴展
19 消息傳遞併發簡介

作者簡介

Enrico Buonanno studied computer science at Columbia University and has over 15 years of experience as a developer, architect, and trainer.

作者簡介(中文翻譯)

恩里科·布奧南諾在哥倫比亞大學學習計算機科學,擁有超過15年的開發者、架構師和培訓師經驗。