13

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 5 comments
sorted by: hot top controversial new old
[-] ndotb@programming.dev 8 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/

[-] howarddo@programming.dev 1 points 1 year ago

Thank u, I'll take a look

[-] KiranWells@pawb.social 4 points 1 year ago

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.

[-] howarddo@programming.dev 1 points 1 year ago

Seems interesting, thanks!

[-] darcy@sh.itjust.works 1 points 1 year ago

good job, the hardest part is admitting yourself to be a soydev

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

Rust

5590 readers
72 users here now

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

Wormhole

!performance@programming.dev

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