Bob Belderbos: From Python to Rust: Master Iterators by Rebuilding 10 Unix Tools (opens in new tab)
The fastest way I know to learn a language is to rebuild something you already understand. You stop fighting the problem and spend your attention on the syntax and the idioms. That is the whole idea behind the new I just released on the Rust platform: ten small command-line classics, each one a pure function you implement and cargo test grades. Why Unix tools, and why from Python Every exercise opens with the Python you would write, then teaches the Rust idiom that replaces it. People who lov...
Read the original article