Skip Navigation

How to learn Rust?

I want to learn Rust. There are so many resources available and I am unsure which one to go for, and if there are any tips on getting started?

I am a software developer by trade

Edit: Thanks for all the great replies!

35 comments
    • Cheers for the shout out! Yea the idea of that community is to be a kind of study group.

      Whenever I've posted a thought or idea, that's part question part experiment part pondering, I've gotten great replies from others.

      Also two people have been running twitch streams of running through the book. Sorrybook is nearly done I think (they've been going for half a year now which is quite impressive).

      The community is at a point now I suspect where some of us have learnt rust well enough to spread out into projects etc, so it'd be nice to work out how we can do that together at all.

      Part of my initial idea with the community was to then have a study group for working through the lemmy codebase, treating it as a helpfully relevant learning opportunity ... as we're all using it, we all probably have features we'd like to add, and the devs and users of it are all right here for feedback.

      Additionally, an idea I've been mulling over, one which I'd be interested in feedback on ... is running further "learning rust" sessions where some of us, including those of us who've just "learned" it, actually try to help teach it to new comers.

      Having a foundation of material such as "The Book" would make a lot of sense. Where "local teachers" could contribute I think is in posting their own thoughts and perspectives on what is important to take away, what additional ideas, structures or broader connections are worth remembering, and even coming up with little exercises that "learners" could go through and then get feedback on from the "teachers".

  • A big part is kinda just doing it. I am trying to learn and it is kinda wild. I am currently working a warehouse job so it is hard to find the time. Try and go back and implement some of your favorite homework assignments in Rust.

    I think a hard part of Rust is the mind shift. It just feels very different from anything else I have tired. I am doing some encapsulation for my learning, but it is not clear where to read about it and there are few examples out there.

  • People already suggested it, but rustlings is awesome.

    One thing I like to do is think of something I often do in another language, then Google how to do it in rust, i.e. dynamic dispatch. The way rust does it with traits is really interesting.

35 comments