The Book or Programming Rust for a second pass — which one made ownership click for you?
I have read the official book once end to end and I can write code that compiles, but I am pattern matching on error messages rather than understanding what I am doing. Cloning things until the compiler stops complaining is my actual strategy. I have 45 minutes a day and I am choosing between Programming Rust, Rust for Rustaceans, or just rereading the book more slowly. Which one actually changed how you think rather than adding more syntax?
@hot_heap_hana · 6mo ago · 3 replies
I own all three and they solve different problems. The official book is a tutorial, it optimises for getting you productive and deliberately underexplains the model. Programming Rust is a reference sized explanation and its chapters on ownership, moves and references are the ones that made the model actually snap into place for me, because it explains what the compiler is protecting you from rather than which incantation satisfies it. Rust for Rustaceans is excellent and completely wrong for you right now, it assumes you already have the model and want the edges. Programming Rust, chapters four and five, slowly.
Reply
Report
@rust_rescue_rin · 6mo ago
Cloning until it compiles is exactly what I do, so what the compiler is protecting me from is precisely the gap. Ordering it.
Reply
Report
@proof_pilar · 6mo ago
Same order worked for me, and I would add: read those two chapters twice with a week between rather than reading the rest of the book once.
Reply
Report