Functional Programming in C# : How to Write Better C# Code

Enrico Buonanno

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

相關主題

商品描述

Summary

Functional Programming in C# teaches you to apply functional thinking to real-world problems using the C# language. The book, with its many practical examples, is written for proficient C# programmers with no prior FP experience. It will give you an awesome new perspective.

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

About the Technology

Functional programming changes the way you think about code. For C# developers, FP techniques can greatly improve state management, concurrency, event handling, and long-term code maintenance. And C# offers the flexibility that allows you to benefit fully from the application of functional techniques. This book gives you the awesome power of a new perspective.

About the Book

Functional Programming in C# teaches you to apply functional thinking to real-world problems using the C# language. You'll start by learning the principles of functional programming and the language features that allow you to program functionally. As you explore the many practical examples, you'll learn the power of function composition, data flow programming, immutable data structures, and monadic composition with LINQ.

What's Inside

 

  • Write readable, team-friendly code
  • Master async and data streams
  • Radically improve error handling
  • Event sourcing and other FP patterns

About the Reader

Written for proficient C# programmers with no prior FP experience.

About the Author

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

Table of Contents

 

PART 1 - CORE CONCEPTS

PART 2 - BECOMING FUNCTIONAL

PART 3 - ADVANCED TECHNIQUES

  1. Introducing functional programming
  2. Why function purity matters
  3. Designing function signatures and types
  4. Patterns in functional programming
  5. Designing programs with function composition
  6. Functional error handling
  7. Structuring an application with functions
  8. Working effectively with multi-argument functions
  9. Thinking about data functionally
  10. Event sourcing: a functional approach to persistence
  11. Lazy computations, continuations, and the beauty of monadic composition
  12. Stateful programs and stateful computations
  13. Working with asynchronous computations
  14. Data streams and the Reactive Extensions
  15. An introduction to message-passing concurrency

商品描述(中文翻譯)


摘要

在C#中的函數式編程教你如何使用C#語言將函數式思維應用於現實世界的問題。這本書以許多實際例子為基礎,針對有經驗的C#程式設計師撰寫,並不需要先前的函數式編程經驗。它將給你一個令人驚艷的新視角。

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

關於技術

函數式編程改變了你對代碼的思考方式。對於C#開發人員來說,函數式編程技術可以大大改善狀態管理、並發性、事件處理和長期代碼維護。而C#提供了靈活性,使你能夠充分受益於函數式技術的應用。這本書將給你一個令人驚艷的新視角。

關於本書

在C#中的函數式編程教你如何使用C#語言將函數式思維應用於現實世界的問題。你將從學習函數式編程的原則和允許你以函數式方式編程的語言特性開始。通過探索許多實際例子,你將學習函數組合、數據流程編程、不可變數據結構以及使用LINQ進行單子組合的強大功能。

內容簡介

 


  • 編寫可讀性高、團隊友好的代碼

  • 掌握異步和數據流

  • 徹底改進錯誤處理

  • 事件源和其他函數式模式

讀者對象

本書針對有經驗的C#程式設計師,不需要先前的函數式編程經驗。

作者簡介

Enrico Buonanno在哥倫比亞大學學習計算機科學,擁有15年的開發、架構和培訓經驗。

目錄

 

第1部分 - 核心概念

第2部分 - 成為函數式編程者

第3部分 - 高級技巧


  1. 介紹函數式編程

  2. 為什麼函數純度很重要

  3. 設計函數簽名和類型

  4. 函數式編程中的模式

  5. 使用函數組合設計程序

  6. 函數式錯誤處理

  7. 使用函數結構化應用程序

  8. 有效地使用多參數函數

  9. 從函數式角度思考數據

  10. 事件源:一種函數式的持久化方法

  11. 延遲計算、繼續和單子組合的美妙之處

  12. 有狀態的程序和有狀態的計算

  13. 處理異步計算

  14. 數據流和反應式擴展

  15. 消息傳遞並發簡介