What does HackerNews think of rustlings?

:crab: Small exercises to get you used to reading and writing Rust code!

Language: Rust

#32 in Rust
Rust also has something similar which is where I believe Zig drew inspiration from as well: https://github.com/rust-lang/rustlings
Rustlings gives a great introduction to the language:

https://github.com/rust-lang/rustlings

Disclaimer: I write JavaScript

Great! I found the rustlings exercises to be an invaluable resource when learning Rust way back when. This and the Rust Book were excellent. Above all else (and there is so much good stuff out there) I'd recommend those two resources.

https://github.com/rust-lang/rustlings

https://doc.rust-lang.org/book/index.html

Tell me you use Hacker News without telling me you use it hahahaha.

But seriously, I'm not sure of any kind of material like this for Rust, but I believe that's because it's simply not needed since we already have "the book" [0], rustlings [1], and rust by example [2]. Honestly, learning Rust is just absurdly simple and straightforward if you have the motivation to do so, these guides are so good I don't see much of a good reason to develop different ones.

[0]: https://doc.rust-lang.org/book/

[1]: https://github.com/rust-lang/rustlings/

[2]: https://doc.rust-lang.org/stable/rust-by-example/

Today I built the SSO flow for an application at work, and I learned a lot significantly faster than I could by just searching because it was guided. The generated code had issues, but it felt a lot like rustlings [1]. At many points I felt that my solution and approach was akin to doing gradient descent, with ChatGPT giving me the direction and me doing backtracking to avoid overshooting (glossing what it missed).

[1] https://github.com/rust-lang/rustlings

The best way to start is probably Rust By Example https://doc.rust-lang.org/stable/rust-by-example/ and/or Rustlings https://github.com/rust-lang/rustlings/ . The key is to do those exercises "the hard way" and get some familiarity with the mechanics of coding in Rust. Once you've done that, reading TRPL will make a lot more sense.
I haven't learned yet, but here are some resources posted here:

Build a ray tracer in rust. Recomends the 'crab' book from Oreilly. https://news.ycombinator.com/item?id=29791142

MAke a 2d game https://news.ycombinator.com/item?id=28861618

basic syntax: https://news.ycombinator.com/item?id=25610741

and lastly: https://github.com/rust-lang/rustlings though i dislike the install method...