Stylish F# 6: Crafting Elegant Functional Code for Net 6
暫譯: 時尚的 F# 6:為 .NET 6 編寫優雅的函數式程式碼

Eason, Kit

  • 出版商: Apress
  • 出版日期: 2021-12-04
  • 售價: $2,370
  • 貴賓價: 9.5$2,252
  • 語言: 英文
  • 頁數: 380
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484272048
  • ISBN-13: 9781484272046
  • 相關分類: F#GAN 生成對抗網絡
  • 海外代購書籍(需單獨結帳)

商品描述

Why just get by in F# when you can program in style. This book goes beyond syntax and into design. It provides F# developers with best practices, guidance, and advice to write beautiful, maintainable, and correct code. This second edition, fully updated for .NET 6 and F# 6, includes all new coverage of anonymous records, the task {} computation expression, and the relationship between types and modules.

Stylish F# 6 covers every design decision that a developer makes in constructing F# programs, helping you make the most educated and valuable design choices at every stage of code development. You will learn about the design of types and function signatures, the benefits of immutability, and the uses of partial function application. You will understand best practices for writing APIs to be used by F#, C#, and other languages. Each carefully vetted design choice is supported with compelling examples, illustrations, and rationales.


What You Will Learn

  • Know why, when, and how to code in immutable style
  • Use collection functions, piping, and function composition to build working software quickly
  • Be aware of the techniques available to bring error handling into the mainstream of program logic
  • Optimize F# code for maximum performance
  • Identify and implement opportunities to use function injection to improve program design
  • Appreciate the methods available to handle unknown data values
  • Understand asynchronous and parallel programming in F#, and how it differs from C# asynchronous programming
  • Exploit records and anonymous records as low-overhead, easily comparable containers for structured data


Who This Book Is For

Any developer who writes F# code and wants to write it better

商品描述(中文翻譯)

為什麼在 F# 中只是勉強應付,而不可以優雅地編程呢?這本書超越了語法,深入設計。它為 F# 開發者提供最佳實踐、指導和建議,以編寫美觀、可維護且正確的代碼。這第二版已全面更新至 .NET 6 和 F# 6,包含了匿名記錄、task {} 計算表達式以及類型與模組之間關係的全新內容。

Stylish F# 6 涵蓋了開發者在構建 F# 程式時所做的每一個設計決策,幫助你在代碼開發的每個階段做出最具教育意義和價值的設計選擇。你將學習類型和函數簽名的設計、不可變性的好處以及部分函數應用的用途。你將了解為 F#、C# 和其他語言編寫 API 的最佳實踐。每一個經過仔細審核的設計選擇都配有引人注目的範例、插圖和理由。


你將學到什麼


  • 了解為什麼、何時以及如何以不可變風格編碼

  • 使用集合函數、管道和函數組合快速構建可運行的軟體

  • 了解將錯誤處理引入程式邏輯主流的可用技術


  • 優化 F# 代碼以達到最佳性能


  • 識別並實施使用函數注入改善程式設計的機會


  • 欣賞處理未知數據值的可用方法


  • 理解 F# 中的非同步和並行編程,以及它與 C# 非同步編程的不同之處

  • 利用記錄和匿名記錄作為低開銷、易於比較的結構化數據容器


本書適合誰

任何編寫 F# 代碼並希望提升編寫能力的開發者

作者簡介

Kit Eason is a software developer and educator with more than 20 years of experience. He has been programming in F# since 2011 and is employed at Perpetuum Ltd., working on an extensive network of energy-harvesting vibration sensors fitted to railway rolling stock and infrastructure. Kit is an avid F# user who is passionate about teaching others. He has contributed to several publications, including Apress books Beginning F# and F# Deep Dives. He often teaches on the topic of F# and his popular videos appear on Udemy and Pluralsight.

作者簡介(中文翻譯)

Kit Eason 是一位擁有超過 20 年經驗的軟體開發者和教育工作者。他自 2011 年以來一直在使用 F# 進行程式設計,目前在 Perpetuum Ltd. 工作,專注於一個廣泛的能量收集振動感測器網絡,這些感測器安裝在鐵路車輛和基礎設施上。Kit 是一位熱衷於 F# 的使用者,並對教學充滿熱情。他曾為多本出版物做出貢獻,包括 Apress 出版的 Beginning F#F# Deep Dives。他經常教授 F# 相關的主題,他的熱門影片出現在 Udemy 和 Pluralsight 上。