Learning Rust

Anyone have tutorial recommendations,

9 points · 19 comments · view on lemmy.world

19 Comments

Solemarc@lemmy.world · 10 pts · 2y (2 replies)

Aside from the usual recommendations of: The Rust Book and Rustlings.

I'd also recommend you try porting things you've made previously into rust. The amount of times I've ported something over and realised I could've done it better originally is too damn high.

SpeakinTelnet@programming.dev · 1 pts · 2y

+1

You have to learn by using it, build your train of taught around the language you're learning. I learned COBOL and forgot it even faster as soon as my head wasn't in the books, never practiced it, probably wouldn't even recognize it now.

Walnut356@programming.dev · 1 pts · 2y

Counterpoint, i didnt like the rust book at all (as an inexperienced self taught ~6 months to a year into learning python at the time). Programming Rust and Rust In Action were far better.

dinckelman@lemmy.world · 8 pts · 2y (8 replies)
[ removed ]
autokludge@programming.dev · 4 pts · 2y (1 reply)

I couldn't find what you meant by 3 options, care to elaborate?

dinckelman@lemmy.world · 6 pts · 2y
[ removed ]
mossy_capivara@midwest.social · 2 pts · 2y (5 replies)

Yeah, probably easy to get lost in the weeds with a lower level language like Rust

spicyemu@programming.dev · 2 pts · 2y (4 replies)

How "low level" is Rust?

mossy_capivara@midwest.social · 2 pts · 2y (2 replies)

Lower level than Python and lua

spicyemu@programming.dev · 1 pts · 2y (1 reply)

How about in relation to C?
Is there a good place to get an overview of different languages or what applications for which a language is suitable?

mossy_capivara@midwest.social · 1 pts · 2y

I'm just starting out so I have no clue

mossy_capivara@midwest.social · 1 pts · 2y

🤷

Anders429@programming.dev · 8 pts · 2y (1 reply)

Have you tried the Book?

mossy_capivara@midwest.social · 2 pts · 2y

Coolio, much appreciated thank you

dwraf_of_ignorance@programming.dev · 6 pts · 2y (1 reply)

I suggest you watch this. TLDR is Use

  • "The Book"
  • Rustling
  • Rust by Example Most important get started.
mossy_capivara@midwest.social · 1 pts · 2y

Thank you

KillTheMule@programming.dev · 3 pts · 2y (2 replies)

Non-tutorial suggestion: I've you're stuck, put a demonstration of your problem on the rust playground, post it here with the question. People in rustland are generally very willing to help out, and the playground is a very helpfull tool for that.

mossy_capivara@midwest.social · 1 pts · 2y

That's good to know, thank you kindly

Anders429@programming.dev · 1 pts · 2y

This is a great point. Sharing a playground link means your problem is immediately reproducible. You'll be much more likely to receive assistance this way.

uhN0id@programming.dev · 2 pts · 2y (1 reply)

I recommend the official rust book (aka the documentation. It's truly fantastic) followed by this actual book https://www.zero2prod.com/

That combo not only taught me Rust concepts and the Rust "way" but also got me applying the knowledge in a way that gave me a lot of context. You don't need the zero2prod but I liked it more than any other paid books I've tried.

mossy_capivara@midwest.social · 1 pts · 2y

Thank you kindly