this post was submitted on 27 Jun 2023
16 points (100.0% liked)
Programming
13383 readers
1 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
There are a few resources out there, but a good starting place is the book. There's also Rust by example which has example snippets for doing various tasks.
Also, keep in mind that Rust is a very different language from C, C++, and Python. It's going to be hard to learn it if you try to treat the higher level concepts (structs, enums, traits, etc) like how other languages you know work. Take your time, it takes most people a lot longer to learn Rust than to learn most other traditional languages.
Thank you! And thank you for the tip I had a feeling it looked just similar enough to be deceiving.
I think there's a few places where this is true in Rust especially. For example, coming from a C-style language (and Python) the
enum
keyword throws a lot of people off. In Rust, while you can use anenum
to represent a set of "constant" values, it's more common to use it to represent a tagged union, making it more liketype
from F#:You might find that some concepts look and feel similar to what you might see in traditional OOP languages, but often end up working more like something out of a functional language.
I recommend The Rust book too. Great for beginners. If you are more advanced developer the Tokio runtime documentation has a tutorial on how to create a mini redis clone https://tokio.rs/tokio/tutorial