this post was submitted on 19 Jun 2023
13 points (100.0% liked)

Rust

5729 readers
80 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

Hi guys, I'm a soydev trying to learn rust. It's hard, especially with the references, ownership, the compiler goes crazy every time and I just throw all the references, dereference until it stops. I'm not used to it coming from JS. Do you have some resource, tips to improve on this? Thank you very much. Side note: what is your first project in rust? And what are some interesting open-source rust projects, you go to learn from/ contribute to?

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 11 points 1 year ago

Aquascope does a little visualization of what's going on behind the scenes. cs.brown.edu made it for their rust book experiment: https://cognitive-engineering-lab.github.io/aquascope/

[–] [email protected] 4 points 1 year ago (1 children)

Learn Rust With Entirely Too Many Linked Lists is a great example of how references work (or don't work) in more complex situations. Might seem like a lot at first, but working through writing the code yourself and seeing the compiler's responses is a great help when learning Rust. It also doesn't hurt to read it once and then come back and read it again later, after you try writing some more programs.

[–] [email protected] 1 points 1 year ago

Seems interesting, thanks!