Coming from JS and want to learn Rust? Some hot tips: - A lot of Rust feels is OOP. If you get a feel for OOP JS first, Rust will be easier. - Don't bother with async stuff for now. It's not ready. - There's less syntax to learn than you'd expect. - Rust Book is excellent.
-
-
Last tips for now: - if you can get clippy to run, it can be super helpful to learn from! - rustfmt can save a lot of time typing (and can be configured to not use 4 spaces) - if you're into WASM, check out wasm-pack
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I would slightly rephrase the second point: Don’t be afraid of threads / parallelism. Rust makes it easier and safe to go from single-threaded to multi-threaded and helps to do the right thing.
-
Fair! I think what I meant to say is that you don't have to learn everything in one go. Concurrency means learning about smart pointers, move and other things. Meant more like: don't worry about learning everything in one go :D
- 2 more replies
New conversation -
-
-
Multi-threading is one task at our workshop for the precise reason that Rust can do that safely and people are often amazed how easy it is. Concurrency without fear!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I've found less than a couple hudnred words on lifetimes, & they all have felt deeply unhelpful & obscure, with precious few examples of what they are, what they do, how the syntax relates to these concepts, &c. Lifetimes make me super sad. Anytime I see a Rust book it's my goto.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.