Rust Brain Teasers: Exercise Your Mind
暫譯: Rust 腦力激盪:鍛鍊你的思維

Wolverson, Herbert

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2022-04-05
  • 售價: $900
  • 貴賓價: 9.5$855
  • 語言: 英文
  • 頁數: 140
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1680509179
  • ISBN-13: 9781680509175
  • 相關分類: Rust 語言程式語言
  • 立即出貨 (庫存 < 3)

買這商品的人也買了...

商品描述

The Rust programming language is consistent and does its best to avoid surprising the programmer. Like all languages, though, Rust still has its quirks. But these quirks present a teaching opportunity. In this book, you'll work through a series of brain teasers that will challenge your understanding of Rust. By understanding the gaps in your knowledge, you can become better at what you do and avoid mistakes. Many of the teasers in this book come from the author's own experience creating software. Others derive from commonly asked questions in the Rust community. Regardless of their origin, these brain teasers are fun, and let's face it: who doesn't love a good puzzle, right?

What better way to exercise your brain and increase your Rust programming knowledge than with a collection of dynamic brain teasers? As you read through each of these puzzles and try to work out the answers, you'll not only learn about Rust's unique quirks and peculiarities, you'll also have loads of fun along the way.

Dive right in and get started with example code and sample problems that cover numbers and text, shadowing and memory, and everything in between. Try to figure out why a particular program won't compile, why it produces unexpected output, or why it panics and terminates with an error message. Once you've run the code and read the answer, it's time to get to the heart of the matter with a detailed explanation. Learn why a program produced the result it did, and discover how similar issues might affect the code you write in your own programs, even in production. Sourced from engaging discussions within the Rust community, real-world problems, and even reader feedback, these challenges will certainly surprise, enlighten, and entertain you.

Are you ready to experience Rust like never before? Then sharpen your brain and get ready for a challenge!

What You Need:

This book assumes you have some knowledge of the Rust programming language. To work through the brain teasers in this book, you'll need a working Rust environment on any platform. You can install Rust by visiting https: //rustup.rs/. You'll also need a text editor or Rust-friendly IDE.

商品描述(中文翻譯)

Rust 程式語言是一致的,並且盡力避免讓程式設計師感到驚訝。不過,像所有語言一樣,Rust 仍然有其特性。但這些特性提供了教學的機會。在這本書中,您將通過一系列的腦筋急轉彎來挑戰您對 Rust 的理解。通過了解您知識中的空白,您可以在自己的工作中變得更好,並避免錯誤。本書中的許多謎題來自作者自己創建軟體的經驗。其他則源自 Rust 社群中常見的問題。無論它們的來源如何,這些腦筋急轉彎都很有趣,讓我們面對現實:誰不喜歡一個好的謎題呢?

還有什麼比一系列動態腦筋急轉彎更能鍛鍊您的大腦並增加您對 Rust 程式設計知識的方式呢?當您閱讀這些謎題並嘗試解答時,您不僅會學到 Rust 的獨特特性和怪癖,還會在過程中獲得大量的樂趣。

立即開始,並使用涵蓋數字和文本、遮蔽和記憶以及所有介於兩者之間的範例程式碼和範例問題。試著找出為什麼特定的程式無法編譯,為什麼它會產生意外的輸出,或為什麼它會出現錯誤訊息而崩潰並終止。一旦您運行了程式碼並閱讀了答案,就該深入了解問題的核心,並進行詳細的解釋。了解為什麼一個程式會產生它的結果,並發現類似的問題可能如何影響您在自己程式中編寫的程式碼,即使是在生產環境中。這些挑戰來自於 Rust 社群中的引人入勝的討論、現實世界的問題,甚至是讀者的反饋,肯定會讓您感到驚訝、啟發和娛樂。

您準備好以全新的方式體驗 Rust 嗎?那麼,磨利您的大腦,準備迎接挑戰吧!

您需要的:

本書假設您對 Rust 程式語言有一定的了解。要解決本書中的腦筋急轉彎,您需要在任何平台上擁有一個可運行的 Rust 環境。您可以訪問 https://rustup.rs/ 來安裝 Rust。您還需要一個文本編輯器或支持 Rust 的 IDE。