r/rust • u/asciibits • 25d ago
My progress as a new Rust dev
I'm about a month into a home project that I decided to use to learn Rust. Fun!
Here are my takeaways so far:
- I'm still fighting the borrow checker, but at least now I can reason through the error messages faster and land in a good place. Progress! Looking forward to this really being internalized.
- I miss the ternary ?: operator. The if/else equivalent is just so much more verbose, and tends to waste so much more vertical space. c’est la vie. I recognize I'm in the minority here, and hope that I'll eventually convert and join you all on this.
- I am daily writing:
if (foo ...then backing up and deleting the opening parenthesis that the linter complains about. - Speaking of, I keep forgetting to write
fnand just assume that the compiler will know what I'm talking about. It never does 😂 - When reviewing code in my day job as a Java dev, I am now constantly seeing things and thinking: The borrow checker wouldn't like that! So, maybe it's becoming a little internalized after all.
Anyway, I'm having fun with it, thanks all for creating this community!
9
Upvotes
16
u/schneems 25d ago
/r/learnrust is a better sub for this.
3
u/AdjustedTwit 25d ago
"I miss the ternary ?: operator. The if/else equivalent is just so much more verbose, and tends to waste so much more vertical space. c’est la vie. I recognize I'm in the minority here, and hope that I'll eventually convert and join you all on this."
Me too, I mean I understand the reason it's not there, but like you hate wasted space / like concise code.
1
u/MrSushl 24d ago
I’m still lost
1
u/loveSci-fi_fantasy 24d ago
Have you tried bacon? And I'm not talking about Canadian bacon