top | item 33100902

(no title)

jak6jak | 3 years ago

What would you recommend for ground up learning?

discuss

order

gary17the|3 years ago

Read the official, free Rust Book[1].

Rust is easy to learn by reading (in order to understand programming concepts unique to the language, such as the borrow checker and lifetimes), but Rust is hard to learn by experimentation alone (trying 100 different syntax variations to see what compiles).

If you want to understand what Rust is mostly about, perhaps watch the "Firehose of Rust, for busy people who know some C++" video[2].

[1] https://doc.rust-lang.org/book/

[2] https://www.youtube.com/watch?v=FSyfZVuD32Y

vonseel|3 years ago

I'm mostly a Python programmer (10 years), and spent a night last week reading the first ~8 chapters of the Rust book, and working slowly through the rest.

I confirm that it's a great book, easy to read, even if reading isn't usually your style of learning. Or you can jump in and look at the Rust by Example book.

I wanted to read through at least the bits that would be totally new and confusing to me in Rust - ownership, variable lifetime, references, etc.

I'm finishing up Chapter 10 and probably getting to the point where I'll need to start actually using the language to learn it, knowing there will be gaps to fill in later. I think Rust is such a broad language that it's probably better to start coding and cementing the basics instead of trying to learn everything all at once.

krageon|3 years ago

The book is really good, but unless you absolutely love reading technical material I contend you should not read it cover to cover. Read what you might need to solve your current issue and keep doing that until you no longer need it, sure. Anything more just kept sending me to sleep until I said "fuck it" and just started writing things that are useful.

nu11ptr|3 years ago

I like "the book", but I felt more prepared for the real world after reading the O'reilly book, 2nd edition. That was sufficient for me to write any code I needed. If you want a deeper understanding, "Rust for Rustaceans" is a great book (disclaimer: I only read about half of it - too busy coding :-)

First: https://www.oreilly.com/library/view/programming-rust-2nd/97...

If you want to go deeper after that: https://nostarch.com/rust-rustaceans

tmpz22|3 years ago

Ditto - I have both sitting beside me as I learn Rust and they are excellant. Short review of the former:

https://www.oreilly.com/library/view/programming-rust-2nd/97...

Its a very comprehensive book but takes some dedicated effort to get through. It goes through most (all?) important concepts from barrowing to iterator traits to some async. Give yourself a fair amount of time to read this and find small projects to do along the way to reinforce your knowledge.

andrepd|3 years ago

I don't dislike the faster than lime intro blogpost.