Functional C#

Wisnu Anggoro

  • 出版商: Packt Publishing
  • 出版日期: 2017-01-04
  • 售價: $2,060
  • 貴賓價: 9.5$1,957
  • 語言: 英文
  • 頁數: 423
  • 裝訂: Paperback
  • ISBN: 1785282220
  • ISBN-13: 9781785282225
  • 相關分類: C#
  • 下單後立即進貨 (約3~4週)

商品描述

Key Features

  • This book focuses on the functional paradigm of C#, which will give you a whole new angle on coding with C#
  • It illustrates the advantages that functional programming brings to the table and the associated coding benefits
  • This practical guide covers all the aspects of functional programming and provides solutions that can be applied in business scenarios

Book Description

Functional programming makes your application faster, improves performance, and increases your productivity. C# code is written at a higher level of abstraction, so that code will be closer to business requirements, abstracting away many low-level implementation details.

This book bridges the language gap for C# developers by showing you how to create and consume functional constructs in C#. We also bridge the domain gap by showing how functional constructs can be applied in business scenarios. We’ll take you through lambda expressions and extension methods, and help you develop a deep understanding of the concepts and practices of LINQ and recursion in C#.

By the end of the book, you will be able to write code using the best approach and will be able to perform unit testing in functional programming, changing how you write your applications and revolutionizing your projects.

What you will learn

  • Develop an application using the functional approach
  • Implement unit testing to functionally program code
  • Create efficient code using functional programming
  • Work through a LINQ query so you can work with data
  • Compose asynchronous programs to create a responsive application
  • Use recursion in function programming in order to simplify code
  • Optimize the program code using Laziness and Caching Techniques

About the Author

Wisnu Anggoro is a Microsoft Certified Professional in C# programming and an experienced C/C++ developer. He has also authored Boost.Asio C++ Network Programming - Second Edition, published by Packt. He has been programming since he was in junior high school (about 20 years ago) and started developing computer applications using the BASIC programming language in the MS-DOS environment. He has a solid experience of smart card programming as well as desktop and web application programming, such as designing, developing, and supporting live use applications for SIM Card Operating System Porting, personalization, PC/SC communication, and other smart card applications that require the use of C# and C/C++. He is currently a senior smart card software engineer at CIPTA, an Indonesian company that specializes in the innovation and technology of smart cards. You can write to him at wisnu@anggoro.net.

Table of Contents

  1. Tasting Functional Style in C#
  2. Walkthrough Delegates
  3. Expressing Anonymous Methods with Lambda Expressions
  4. Extending Object Functionality with Extension Methods
  5. Querying Any Collection Easily with LINQ
  6. Enhancing the Responsiveness of the Functional Program with Asynchronous Programming
  7. Learning Recursion
  8. Optimizing the Code using Laziness and Caching Techniques
  9. Working with Pattern
  10. Taking an Action in C# Functional Programming
  11. Coding Best Practice and Testing the Functional Code

商品描述(中文翻譯)

主要特點


  • 本書專注於C#的函數式範式,將為您在使用C#進行編碼時提供全新的角度

  • 它展示了函數式編程帶來的優勢以及相關的編碼好處

  • 這本實用指南涵蓋了函數式編程的所有方面,並提供了可應用於業務場景的解決方案

書籍描述

函數式編程使您的應用程序更快,提高性能,並增加生產力。C#代碼以更高的抽象層次編寫,使代碼更接近業務需求,抽象了許多低級實現細節。

本書通過向您展示如何在C#中創建和使用函數式結構,填補了C#開發人員的語言差距。我們還通過展示如何在業務場景中應用函數式結構來填補領域差距。我們將帶您深入了解C#中的Lambda表達式和擴展方法的概念和實踐,並幫助您開發對LINQ和遞歸的概念和實踐有深入理解的能力。

通過閱讀本書,您將能夠使用最佳方法編寫代碼,並能夠在函數式編程中進行單元測試,從而改變您編寫應用程序的方式,徹底改變您的項目。

您將學到什麼


  • 使用函數式方法開發應用程序

  • 對函數式編程代碼進行單元測試

  • 使用函數式編程創建高效的代碼

  • 通過LINQ查詢處理數據

  • 組合異步程序以創建響應式應用程序

  • 使用函數式編程中的遞歸來簡化代碼

  • 使用惰性和緩存技術優化程序代碼

關於作者

Wisnu Anggoro是C#編程的微軟認證專業人員,也是一位經驗豐富的C/C++開發人員。他還是Packt出版的《Boost.Asio C++ Network Programming - Second Edition》的作者。他從初中開始就開始編程(大約20年前),並開始使用BASIC編程語言在MS-DOS環境中開發計算機應用程序。他在智能卡編程以及桌面和Web應用程序編程方面擁有豐富的經驗,例如設計、開發和支持用於SIM卡操作系統移植、個性化、PC/SC通信和其他需要使用C#和C/C++的智能卡應用程序。他目前是印尼CIPTA公司的高級智能卡軟件工程師,該公司專注於智能卡的創新和技術。您可以通過電子郵件與他聯繫,郵箱為wisnu@anggoro.net。

目錄


  1. 品嚐C#中的函數式風格

  2. 深入理解委派

  3. 使用Lambda表達式表示匿名方法

  4. 使用擴展方法擴展對象功能

  5. 使用LINQ輕鬆查詢任何集合

  6. 通過異步編程增強函數式程序的響應能力

  7. 學習遞歸

  8. 使用惰性和緩存技術優化代碼

  9. 使用模式

  10. 在C#函數式編程中執行操作

  11. 編碼最佳實踐和測試函數式代碼