Hacker News new | ask | show | jobs
by _jordan 3228 days ago
I wish someone would have explained how to approach learning Rust; It's a really hard language to grasp - when struggling, I think it's important to really understand why whatever you're doing is hard - to learn where your misunderstanding and errors are fundamentally. This is non technical but might be worth mentioning.
3 comments

As a beginner who'd struggled with learning Rust over the last few months, here's my advice:

Ownership and Borrowing is front and centre in the intro texts to Rust and it's no coincidence. Understanding the concept(s), their relation to memory, references, memory management and lifetimes, is central to understanding Rust.

The String type, str (string slices), and slices in general, also gave my head a spin a few times, but getting over that hurdle made things a lot more clear as well.

Not that I have enough experience to tell the difference between languages, I still think Rust is a very intelligently designed language. I'm glad I learned (am learning) it and I hope it gets adopted by more developers.

I agree with this point. I do believe Rust contains some difficult concepts but there is a reason behind them. Understanding those reason is the key motivator behind learning the language.