< Tip 1: Map, don't translate >
Don't ask "how do I write Python feature x in Rust?" Ask "what problem does Python feature x solve — and how does Rust solve it?"
< Tip 2: The compiler is your pair programmer >
Python tells you what broke at runtime (or dev if tooling is set up). Rust tells you what would break before you even run it (compile time).
< Tip 3: Write Python first, then Rust-ify it >
When stuck, sketch the logic in Python. Then translate it step by step.
You already know how to think about the problem, which removes a lot of cognitive overload.
You just have to learn a new way to express it.
Don't get me wrong, the learning curve is real!
However Python devs have a head start — you already think in types, you already care about elegance + clean code.
Which tip would've helped you most? Or any other ones?
> However Python devs have a head start — you already think in types...
Not only do I not do this one of the explicity reasons I use python is so that I don't have to.