News for hackers. Stuff that matters.
Re:Rust from 0 to 80% for JavaScript Developers by rmbyrro on Saturday April 30, 2022 @10:05PM (#31221439)
You seem knowledgeable about Rust, is this article pointing in good directions to learn the language from a dev primarily coding in JS?
Re:Rust from 0 to 80% for JavaScript Developers by eyelidlessness on Sunday May 01, 2022 @12:42AM (#31222257)
As someone only passingly familiar with Rust and coming from a JS/TS background I agree this article is not helpful. If you want to make the jump:

- if a good article would be useful to you, the best resource will almost definitely be The Rust Book which is just a really well organized and easily accessible website

- if you prefer just exploring, Rust and its ecosystem is a lot easier to just wander into and try stuff than JS; but it’s going to feel really strict and have unfamiliar rules even if you’re used to strict TS

- even if you bail out of either it’s worth the time, I guarantee you’ll learn something even if it doesn’t show its value right away

Re:Rust from 0 to 80% for JavaScript Developers by csomar on Saturday April 30, 2022 @11:31PM (#31221952)
No. The article is terrible (sorry). The OP was probably generous with "some small corrections". Not only the article touches up on some minor details about the language (mostly syntax) but gets them wrong or with a mistake half the time. These details are hardly 10% of the journey into Rust.

The best place to start is still the Rust book: https://doc.rust-lang.org/book/ and then start coding with it. I'd also suggest you learn some C along the way, if you only have a JS background.

Re:Rust from 0 to 80% for JavaScript Developers by michaelsalim on Sunday May 01, 2022 @04:09AM (#31223089)
Do let me know the mistakes and I will fix them!

And agreed, the Rust book is excellent.

I did have experiences with C which made going into Rust that much easier. But for others that don't, wouldn't you think going straight to Rust would be easier than learning C on the side?

Re:Rust from 0 to 80% for JavaScript Developers by ZephyrBlu on Saturday April 30, 2022 @10:53PM (#31221735)
I've recently started learning Rust with very little experience in low level languages. Just go build something and read the Rust book: https://doc.rust-lang.org/book/title-page.html.

The trickiest thing is ownership and lifetimes, but that's not really something you can understand just by reading. You need to build an intuition for how ownership and lifetimes work.

Re:Rust from 0 to 80% for JavaScript Developers by jen20 on Saturday April 30, 2022 @11:25PM (#31221909)
My recommendation for people learning rust for years has been to read both the Rust Programming Language book and Programming Rust at the same time.