Rust Brain Teasers: Exercise Your Mind

Rust Brain Teasers: Exercise Your Mind

作者: Wolverson Herbert
出版社: Pragmatic Bookshelf
出版在: 2022-04-05
ISBN-13: 9781680509175
ISBN-10: 1680509179
裝訂格式: Quality Paper - also called trade paper
總頁數: 140 頁





內容描述


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.




相關書籍

C++高級編程(第4版)

作者 [美]馬克·葛瑞格爾(Marc Gregoire) 徐志超 曹瑜 譯

2022-04-05

Linux Fedora 系統網路教學

作者 吳佳諺

2022-04-05

1 天學會轉換 Windows 到 Linux

作者 斯其大科技

2022-04-05