Found in 3 comments on Hacker News
Dkuku · 2024-02-04 · Original thread
For me it clicked with this book. Lots of hands on examples where you build clones of basic unix tools. https://www.oreilly.com/library/view/command-line-rust/97810...
azemetre · 2023-01-17 · Original thread
While not for beginners, if you'd like to learn rust I recently finished "Command line Rust" [1].

It was my first introduction to rust and the book was quite enjoyable. It starts off with teaching you the very basics of a command line (what it means to exit, true, or false, etc) and each chapter has you recreate a popular command line tool (like grep, cal, tail, wc) while introducing a new rust concept.

The book also does TDD, test driven design, by first teaching you how to create these tests then in subsequent chapters having the tests prewritten for you.

It's definitely worth a look, the author has a great writing style as well that isn't as monotonous as most programming books I've read.

[1] https://www.oreilly.com/library/view/command-line-rust/97810...

averagedev · 2022-02-14 · Original thread
I've been reading Command-Line Rust[1], and I think it's nice. Each chapter has a challenge where you build a common command-line tool, like echo, cat, head, wc, etc.

Just like you, I do prefer the "learn while you build" approach. My personal experience has been that the book is a nice addition to reference-style books, such as the one you mentioned.

1: https://www.oreilly.com/library/view/command-line-rust/97810...