14
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 07 Dec 2024
14 points (100.0% liked)
Rust
6137 readers
15 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 2 years ago
MODERATORS
Please read the book fully before starting any real project. It will save you headaches later
I would love to! But with the time I have at hand I won't be starting a project in the next 2 years if I try to finish the book first. I started coding with Java, then did a lot of Python & TypeScript and now I'm here. I'm mostly building CRUD apps nothing fancy, any idea which chapters of the book I could prioritize to make sure I'm not missing anything that would lead me to making really bad, hard to refactor decisions?
I don't agree with the previous poster. There's nothing wrong with diving in and figuring things out as you go, especially if that's a way that you commonly like to learn. Everyone has different learning styles, and Rust can fit all those styles.
The main thing to understand is you shouldn't let compilation errors discourage you. You will get a lot of compilation errors. And I mean A LOT. That's okay, it's normal, and it doesn't mean you're dumb or that Rust is an excessively difficult language. It generally just means that there's some new piece of the language for you to learn before you can take your next step.
When you run into compilation errors, just read the error message carefully and see if you can understand what the problem is. Often the error itself will tell you how to fix it, but you should take the opportunity to understand why the fix is necessary. In every case there's a reason that the language is putting limitations on what you're doing. It's to protect you from bad habits that other languages used to let you get away with. So understand what's bad about what you were doing and you'll rapidly grow as a developer.
If you can't figure out what's wrong from the compilation error alone, that's when it makes sense to turn to the book. The error messages will generally include a reference code which you can use to get more details on the nature of the error. Googling that will lead you to online discussions and maybe entries in the Rust book. Otherwise there isn't a real need to read through the book from front to back unless that's a way you like to learn.
Yeah, maybe should be added that Rust front-loads errors. It tells you about them at compile-time, so that you run into less weird errors during runtime. This is a good thing, but certainly needs some getting-used-to when coming from Python.
Thanks a lot! Yeah I’ve been doing that and the compile messages are honestly awesome, sometimes I’m not sure if I should react to every warning because it’s a lot of extra work during development, but it helps me understand what’s going on. I’m still puzzled about some of the details of the language but the community seems very nice and there seem to be a lot of resources. Thanks for the encouragement!
If you like hands on learning, check out rustlings. It's an interactive tutorial.
Thanks! This seems exactly what I'm looking for
Reminds me to actually finish the thing. Also, it actually has references to book chapters included, so it's easy to dive in and take in more in-depth knowledge.