Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

An aside question I have is what’s the best beginner Rust book out there that is up to date?

I been learning Rust off and on and I have a more serious need to get up to speed with it but I’m unsure where it’s best to start in this way



In this order:

1. The Rust Book (Free) - https://doc.rust-lang.org/book/

2. Rust by Example (Free) - https://doc.rust-lang.org/rust-by-example/

3. Rust Atomics and Locks - https://marabos.nl/atomics/

4. Rust in Action - https://www.rustinaction.com/

5. Rust for Rustaceans - https://rust-for-rustaceans.com/

Also Jon Gjengset's channel is immensely valuable: https://www.youtube.com/c/JonGjengset


What do you think about Rust for Rustaceans? I read it and there are very niche and useful information there about Rust that I didn't see anywhere. It's a solid book but for a book about programming there are so few real code examples that it can come off dry. I just bought Rust atomic and locks and it seems exercise based, so I'm excited to finish it. The first chapter seems promising


As title implies, Rust for Rustaceans is not for those that are just starting with the language.


My gripe is not about it being not beginner friendly, but it not having many code examples for a programming Book. One doesn't preclude the other imo


You are right about it not being a beginner friendly book. Hence why I placed it lower in the order of books to study.

Yeah Rust atomics and locks is essential if you truly want to understand low-level concurrency. But you might have to also refer to the C++ std::atomics reference [1] to get a complete idea. It took me a while to grasp those concepts.

[1]: https://en.cppreference.com/w/cpp/atomic/atomic


I have a hard copy of Programming Rust by Jim Blandy et al would that slot in nicely anywhere here?


"Programming Rust" by Jim Blandy et al was the book that really helped me to understand why many of the design decisions behind the implementation of Rust were made.

I found it more approachable than some of the other Rust books and highly recommend it as a first Rust book.


Programming Rust is the best beginner Rust programming book in my opinion, followed by the official book. It has more detail and better examples.


Unfortunately, I haven't read Programming Rust. The list includes just the books I used to learn Rust. But will definitely give Blandy's book a read. Thanks for the recommendation!


The Rust Programming Language does a great job imho. It got me up to speed by reading it before bed for a month. I’d never written C/C++ before, just a lot of Python. It starts out really simply by explaining the type system and the borrow checker. Take it from there and do a couple of side projects, I’d say.


Write an `iced` app, is my suggestion. You'll learn some of the best of what Rust has to offer




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: