Hands-On Functional Programming in RUST: Create modular, reusable, and testable applications

Andrew Johnson

  • 出版商: Packt Publishing
  • 出版日期: 2018-05-31
  • 售價: $1,980
  • 貴賓價: 9.5$1,881
  • 語言: 英文
  • 頁數: 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》將向這些讀者介紹稍微更高級的技術,以提高他們的技能水平。