Hacker News new | past | comments | ask | show | jobs | submit login

Would anyone have any recommendations on material for learning Rust? Is The Rust Programming Language still the best way to start?



Intro/conceptual: "A Firehose of Rust, for busy people who know some C++"[1]. Beginner's: "Rhymu's Videos"[2] and/or "Doug Milford" videos[3], advanced: "Jon Gjengset" videos[4]. Finally, "The Little Book of Rust Books"[5].

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

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

[2] https://www.youtube.com/c/rhymu8354/videos

[3] https://www.youtube.com/channel/UCmBgC0JN41HjyjAXfkdkp-Q/vid...

[4] https://www.youtube.com/c/JonGjengset/videos

[5] https://lborb.github.io/book/


The best way to start is probably Rust By Example https://doc.rust-lang.org/stable/rust-by-example/ and/or Rustlings https://github.com/rust-lang/rustlings/ . The key is to do those exercises "the hard way" and get some familiarity with the mechanics of coding in Rust. Once you've done that, reading TRPL will make a lot more sense.


I'm not a Rust expert by any means, but know enough to be mildly dangerous.

The Rust Programming Language is, to my mind, one of the reasons for Rust's popularity. Every language would go far by having a book of that quality freely available and accessible to such a wide audience. It's, truly, a feat.


My favorite as an old-timer who is comfortable in most things from assembler to Mathematica has been "Programming Rust" from O'Reilly [0]

The book does a really good job at explaining the thinking behind the abstractions available in the standard library. To me, this was the book that made everything click, so that I did not feel I was fighting against the language.

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


There are plenty of resources out there to get started, the one you mention is a very good one and can get you pretty far. My personal recommendation would be to decide on a small hobby project, simple in scope and complexity, to get started and figure out how to solve that using Rust. Just like with any other tool, the only way to learn how to use it is to use it. This takes some time but for me it's the best way to learn. So far there is no challenge Rust presented I couldn't solve using the tools at my disposal: Stackoverflow, Google and YouTube. For example, "a tool that takes some data from an API, does some stuff and stores the result in a database" or "an application that gets the latest 10 closing prices for a stock and sends a telegram message with a prediction". The most important part though (at least to me) is to write about it and share your experience, it helps cement the knowledge and might help others who want to start out too.


I have a bunch of links here https://michal.io/docs/dev/rust




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

Search: