Functional Programming with C#: Create More Supportable, Robust, and Testable Code (Paperback)

Painter, Simon

  • 出版商: O'Reilly
  • 出版日期: 2023-10-17
  • 售價: $2,740
  • 貴賓價: 9.5$2,603
  • 語言: 英文
  • 頁數: 325
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1492097071
  • ISBN-13: 9781492097075
  • 相關分類: C#
  • 立即出貨 (庫存 < 3)



After decades of relative obscurity, functional programming is finally coming into its own. With concise, easy-to-read code that supports asynchronous, concurrent processing, aspects of functional programming have begun to appear in several traditionally object-oriented languages such as C# and Java. This practical book shows C# programmers how to use functional programming features without having to navigate an entirely new language.

Because of the shared runtime environment common to C# and F# languages, it's possible to use most of F#'s functional features in C# as well. Author Simon J. Painter explains how you can write functional code in C# right away, without having to install dependencies or features newer than .NET 3. You'll learn why functional programming concepts can bring immediate benefit to your work.

  • Learn what functional programming is and how it originated
  • Discover features of the functional paradigm using a more familiar language
  • Start coding functionally in C# right away, without relying on third-party libraries
  • Write code that's more robust, less error prone, and easier to test
  • Examine less conventional ways to look at structures available in C#
  • Explore the practicalities of using functional C# in a business environment



由於C#和F#語言共享運行時環境,因此在C#中也可以使用大部分F#的函數式特性。作者Simon J. Painter解釋了如何立即在C#中編寫函數式程式碼,而無需安裝依賴項或比.NET 3更新的功能。您將了解為什麼函數式編程概念可以立即為您的工作帶來好處。

- 了解函數式編程及其起源
- 使用更為熟悉的語言探索函數式範式的特性
- 立即在C#中進行函數式編程,而無需依賴第三方庫
- 編寫更健壯、更少錯誤且更易於測試的程式碼
- 探索以非傳統方式看待C#中可用結構的實用方法
- 探討在商業環境中使用函數式C#的實際問題