Rust Brain Teasers: Exercise Your Mind (The Pragmatic Programmers) 🔍
Herbert Wolverson Pragmatic Bookshelf, converted, 2022
英语 [en] · PDF · 1.1MB · 2022 · 📘 非小说类图书 · 🚀/lgli/lgrs/nexusstc/upload/zlib · Save
描述
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.
备用文件名
nexusstc/Rust Brain Teasers: Exercise Your Mind/f17bf40d7eeaa8a4964dfb551f343682.pdf
备用文件名
lgli/H. Wolverson - Rust Brain Teasers. Exercise Your Mind (2022)[EN].pdf
备用文件名
lgrsnf/H. Wolverson - Rust Brain Teasers. Exercise Your Mind (2022)[EN].pdf
备用文件名
zlib/Computers/Programming/Herbert Wolverson/Rust Brain Teasers: Exercise Your Mind_21466657.pdf
备选标题
H. Wolverson - Rust Brain Teasers. Exercise Your Mind (2022)[EN]
备选作者
Wolverson, Herbert
备用出版商
Pragmatic Programmers, LLC, The
备用出版商
O'Reilly Media, Incorporated
备用出版商
Pragmatic Publisher
备用版本
Pragmatic programmers, Raleigh, North Carolina, 2022
备用版本
United States, United States of America
备用版本
O'Reilly Media, [N.p.], 2022
备用版本
1, PS, 2021
备用版本
1, 2022
元数据中的注释
producers:
Herbert Wolverson
元数据中的注释
{"edition":"1","isbns":["1680509179","9781680509175"],"last_page":140,"publisher":"Pragmatic Bookshelf"}
备用描述
"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"-- Amazon
备用描述
Acknowledgments 10
Preface 12
About the Author 14
About the Code 15
About You 16
Keep an Open Mind 17
Part I. Rust Brain Teasers 18
Puzzle 1. Three and a Bit 19
Puzzle 2. Non-standard Input 23
Puzzle 3. Type Conversion 27
Puzzle 4. Byte-Sized Chunks 32
Puzzle 5. How Long Is a String? 37
Puzzle 6. Please Reboot the Universe 42
Puzzle 7. There and Back Again 46
Puzzle 8. Walks Like a Duck, Quacks Like a Duck 50
Puzzle 9. Out of Order 55
Puzzle 10. X Marks the Spot 60
Puzzle 11. Stacking Boxes 64
Puzzle 12. Amnesia 72
Puzzle 13. Reverse the Polarity of the Neutron Flow 77
Puzzle 14. Structure Sizing 84
Puzzle 15. To Infinity 88
Puzzle 16. Double or Nothing 94
Puzzle 17. How Long Is a Vector? 99
Puzzle 18. Mutable Immutables 103
Puzzle 19. Sleepless in Tokio 107
Puzzle 20. Hello, Bonjour 118
Puzzle 21. Tying a Gordian Knot 124
Puzzle 22. Waiting for Godot 130
Puzzle 23. Constant Loops 134
Puzzle 24. Home on the Range 138
Bibliography 142
开源日期
2022-05-02
更多信息……
We strongly recommend that you support the author by buying or donating on their personal website, or borrowing in your local library.

🚀 快速下载

成为会员以支持书籍、论文等的长期保存。为了感谢您对我们的支持,您将获得高速下载权益。❤️
如果您在本月捐款,您将获得双倍的快速下载次数。

🐢 低速下载

由可信的合作方提供。 更多信息请参见常见问题解答。 (可能需要验证浏览器——无限次下载!)

所有选项下载的文件都相同,应该可以安全使用。即使这样,从互联网下载文件时始终要小心。例如,确保您的设备更新及时。
  • 对于大文件,我们建议使用下载管理器以防止中断。
    推荐的下载管理器:JDownloader
  • 您将需要一个电子书或 PDF 阅读器来打开文件,具体取决于文件格式。
    推荐的电子书阅读器:Anna的档案在线查看器ReadEraCalibre
  • 使用在线工具进行格式转换。
    推荐的转换工具:CloudConvertPrintFriendly
  • 您可以将 PDF 和 EPUB 文件发送到您的 Kindle 或 Kobo 电子阅读器。
    推荐的工具:亚马逊的“发送到 Kindle”djazz 的“发送到 Kobo/Kindle”
  • 支持作者和图书馆
    ✍️ 如果您喜欢这个并且能够负担得起,请考虑购买原版,或直接支持作者。
    📚 如果您当地的图书馆有这本书,请考虑在那里免费借阅。