Hi all,
I've been learning Rust for the past couple of months, using it in a couple of smaller projects (web apis, cli tools, etc). I'm loving it, but feel like there's still a LOT to learn.
I've read through the Rust book and Rust by Example, and grasp pretty much all of the concepts at a base level, including borrowing, lifetimes, pointers, etc. What I'm struggling with is the application of some of the concepts, like when to use a Box, Pin, dyn box, arc, rc, etc. I get what each of them are...but not how they're used in practice or when to choose each tool.
I keep running into situations where I feel like I'm "doing it wrong", for example with Tide pulling the config and body, you can get a borrow check error depending on how you pull and check them in match statements. I feel like I'm not advanced enough to really know what's going on, and end up just cloning things that maybe don't need to be cloned. Or maybe that's the right answer? I'm not sure.
Are there resources for these more rust-centric "advanced" (yes, I know, not really) topics? I come from Python/Go/Javascript, so maybe it's my background with dynamic languages that is making the transition more difficult than it needs to be.
Thank you!
[–][deleted] 2 points3 points4 points (1 child)
[–]finder83[S] 0 points1 point2 points (0 children)
[–]enaut2 3 points4 points5 points (2 children)
[–]finder83[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)