News for hackers. Stuff that matters.
Re:Challenges for Rust by mamcx on Saturday September 17, 2022 @03:30PM (#32880636)
> I'm a C programmer, I began in ~1995, and I mostly wrote C

You are so lucky. I used around +12 langs, professionally, and learning Rust was the biggest slap on the face I ever faced.

The major breakthrough on my learning was understand that Rust make A LOT of things easier, but start doing a fully formed system/app was not the way.

ie: Get to know the real small stuff.

Rust is: structs, enums, traits, iterators.

Then learn the idioms:

https://rust-lang.github.io/api-guidelines/

The most key thing about Rust is that everything revolves around trait and trait composition. For example. if you look at:

https://doc.rust-lang.org/src/alloc/string.rs.html#366-368

You will wonder "where is all the functionality to deal with Strings???".

And the answer is that that is not on Strings, but around several traits. Then you start seeing that traits everywhere, and suddenly, you see that learn X here means you already know how do Y there.

Then, you start doing apps/systems, and now it will fly!

There are no comments on this comment yet.