Introducing Functional Programming Using C#: Leveraging a New Perspective for Oop Developers
暫譯: 使用 C# 介紹函數式程式設計:為物件導向開發者提供新視角

Sarcar, Vaskaran

  • 出版商: Apress
  • 出版日期: 2023-09-10
  • 售價: $1,900
  • 貴賓價: 9.5$1,805
  • 語言: 英文
  • 頁數: 305
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484296966
  • ISBN-13: 9781484296967
  • 相關分類: C#
  • 海外代購書籍(需單獨結帳)

商品描述

Understand the power of C#, a multi-paradigm language. This book will help you learn, analyze, and harness the functional aspects of C# so you can create a better program.

The book is divided into two parts. Part I starts with an overview of functional programming (FP). It covers the building blocks for FP: functions and immutability. You will learn about the built-in supports for FP, first- and higher-order functions (HOF), functional purity and side effects, different forms of immutability, and much more. Part II includes discussions on functional composition using pipelining and currying. It also explains how to handle temporal coupling and discusses partial functions and useful functional patterns (such as Map, Bind, Filter, and Fold). Author Vaskaran Sarcar takes you through functional exception-handling mechanisms and provides additional tips to make your programs more efficient.

After reading the book, you will understand and be able to implement key aspects of FP. You will be able to produce better code (and refactor existing code) by combining the best techniques from both FP and object-oriented programming (OOP) paradigms.


What Will You Learn

  • Understand how the concepts of functional programming (FP) can be implemented using C#
  • Refactor existing code (following the FP paradigm) to make it more readable, maintainable, and predictive
  • Know how advanced features (such as delegates, lambdas, generics) can be used differently
  • Understand how to efficiently use features such as lambda expressions and type inference as C# includes explicit language extensions to support functional programming


Who This Book Is For

C# developers familiar with object-oriented programming (OOP) who want to harness the power of functional programming (FP)


商品描述(中文翻譯)

了解 C# 的強大,這是一種多範式語言。本書將幫助您學習、分析並利用 C# 的函數式特性,以便創建更好的程式。

本書分為兩個部分。第一部分以函數式程式設計(FP)的概述開始。它涵蓋了 FP 的基本構建塊:函數和不可變性。您將了解 FP 的內建支援、第一級和高階函數(HOF)、函數純度與副作用、不同形式的不可變性等更多內容。第二部分包括使用管道化和柯里化進行函數組合的討論。它還解釋了如何處理時間耦合,並討論了部分函數和有用的函數模式(如 Map、Bind、Filter 和 Fold)。作者 Vaskaran Sarcar 將帶您了解函數異常處理機制,並提供額外的提示以提高程式的效率。

閱讀本書後,您將理解並能夠實現 FP 的關鍵方面。您將能夠通過結合 FP 和物件導向程式設計(OOP)範式中的最佳技術來產生更好的程式碼(並重構現有程式碼)。

您將學到什麼
- 了解如何使用 C# 實現函數式程式設計(FP)的概念
- 重構現有程式碼(遵循 FP 範式),使其更具可讀性、可維護性和可預測性
- 知道如何以不同的方式使用高級特性(如委派、Lambda 表達式、泛型)
- 了解如何有效使用特性,如 Lambda 表達式和類型推斷,因為 C# 包含明確的語言擴展以支援函數式程式設計

本書適合誰
熟悉物件導向程式設計(OOP)的 C# 開發人員,想要利用函數式程式設計(FP)的力量。

作者簡介

Vaskaran Sarcar obtained his Master of Engineering degree in Software Engineering from Jadavpur University, Kolkata (India), and an MCA from Vidyasagar University, Midnapore (India). He was a National Gate Scholar (2007-2009) and has over 12 years of experience in education and the IT industry. He devoted his early years (2005-2007) to the teaching profession at various engineering colleges, and later he joined HP India PPS R&D Hub in Bangalore. He worked there until August of 2019. At the time of his retirement from HP, he was a Senior Software Engineer and Team Lead at HP. Vaskaran is following his dream and passion and is now a full-time author. You can see all of his books on Amazon's website.

作者簡介(中文翻譯)

Vaskaran Sarcar 取得了印度加爾各答的賈達夫普大學(Jadavpur University)軟體工程碩士學位,以及印度米德納普爾的維迪亞薩加大學(Vidyasagar University)碩士學位(MCA)。他曾是國家門檻獎學金得主(2007-2009),並在教育和資訊科技產業擁有超過12年的經驗。他在早期的職業生涯中(2005-2007)於多所工程學院從事教學工作,之後加入了位於班加羅爾的HP印度PPS研發中心。他在那裡工作直到2019年8月。退休時,他是HP的資深軟體工程師及團隊領導。Vaskaran 現在追隨他的夢想和熱情,成為全職作家。您可以在亞馬遜網站上查看他的所有書籍。