Hands-On Functional Programming in RUST: Create modular, reusable, and testable applications
暫譯: 實作式函數式程式設計於 RUST:創建模組化、可重用及可測試的應用程式

Andrew Johnson

  • 出版商: Packt Publishing
  • 出版日期: 2018-05-31
  • 售價: $2,010
  • 貴賓價: 9.5$1,910
  • 語言: 英文
  • 頁數: 292
  • 裝訂: Paperback
  • ISBN: 1788839358
  • ISBN-13: 9781788839358
  • 相關分類: Rust 語言程式語言
  • 海外代購書籍(需單獨結帳)

商品描述

Explore the support Rust offers for creating Functional Applications in Rust, learn about various design patterns, implementing concurrency, metaprogramming etc. in the process.

Key Features

  • Learn current state-of-the-art Functional techniques in Rust.
  • Modularize your applications and make them highly reusable and testable using functional design patterns.
  • Get familiar with complex concepts such as metaprogramming, concurrency, and immutability

Book Description

Functional programming allows developers to divide programs into smaller, reusable components that ease the creation, testing, and maintenance of software as a whole. Combined with the power of RUST, you can develop robust and scalable applications that fulfill modern day software requirements. This book will help you discover all the RUST features that can be applied to build software in a functional way.

We begin with a brief comparison of functional and object-oriented approach to different problems and patterns. We then quickly look at patterns of control flow, data the abstractions of these unique to functional programming. The next part covers how to create functional apps in Rust; mutability and ownership which are exclusive to Rust are also discussed. Pure functions are examined next and we understand closures, the various types of closures and currying. We also look at implementing concurrency through functional design principles and metaprogramming using macros. Before wrapping up we look at best practices for debugging and optimization.

By the end of the book, you will be familiar with the functional approach of programming and will be able to use these techniques on a daily basis.

What you will learn

  • Support offered by Rust for the use of basic Functional Programming principles.
  • Use Functional Programming to handle concurrency with safety and elegance. 
  • Read and interpret complex type signatures for types and functions.
  • Implement powerful abstractions using meta programming in Rust.
  • Create quality code formulaically using functional design patterns of Rust.
  • Familiarize with Rust's complex ownership mechanisms, particularly in regards to mutability.

Who This Book Is For

The reader should be fairly proficient in Rust already, showing an ability to read and understand Rust code. The reader has an interest in further improving their coding abilities in Rust. "Functional Programming in RUST" will now inform these readers of slightly more advanced techniques to improve their skillset.

商品描述(中文翻譯)

**探索 Rust 在創建函數式應用程式方面的支援,了解各種設計模式、實現並發、元編程等過程中的知識。**

#### 主要特點

- 學習 Rust 中當前最先進的函數式技術。
- 將應用程式模組化,使其高度可重用和可測試,使用函數式設計模式。
- 熟悉複雜概念,如元編程、並發和不可變性。

#### 書籍描述

函數式編程允許開發者將程式劃分為更小的可重用組件,從而簡化整體軟體的創建、測試和維護。結合 Rust 的強大功能,您可以開發出滿足現代軟體需求的穩健且可擴展的應用程式。本書將幫助您發現所有可以應用於以函數式方式構建軟體的 Rust 特性。

我們首先簡要比較函數式和物件導向方法在不同問題和模式上的差異。接著,我們快速查看控制流模式和數據抽象,這些是函數式編程所特有的。接下來的部分涵蓋如何在 Rust 中創建函數式應用程式;同時也會討論 Rust 特有的可變性和所有權。接著我們將探討純函數,理解閉包、各種閉包類型和柯里化。我們還將通過函數式設計原則實現並發,並使用宏進行元編程。在結束之前,我們將探討調試和優化的最佳實踐。

到書籍結束時,您將熟悉函數式編程的方法,並能夠在日常工作中使用這些技術。

#### 您將學到的內容

- Rust 提供的基本函數式編程原則的支援。
- 使用函數式編程安全且優雅地處理並發。
- 閱讀和解釋複雜的類型簽名,包括類型和函數。
- 在 Rust 中使用元編程實現強大的抽象。
- 使用 Rust 的函數式設計模式以公式化方式創建高品質代碼。
- 熟悉 Rust 複雜的所有權機制,特別是在可變性方面。

#### 本書適合誰

讀者應該對 Rust 有相當的熟練度,能夠閱讀和理解 Rust 代碼。讀者對進一步提高其 Rust 編程能力感興趣。《Functional Programming in RUST》將向這些讀者介紹稍微進階的技術,以提升他們的技能組合。