Learning to Love the Unfamiliar
summary
Ports a small file‑processing script to Rust and shows why idioms matter: to_digit returns an Option (Some/None) so calling unwrap panics on invalid input; error propagation uses Result (Ok/Err) and the try/try! pattern to return errors to callers; tests can be inline or in a tests/ folder where each file compiles as its own crate, and Rust runs tests randomly and in parallel which breaks shared‑IO tests. Survey figure: about three weeks to cross the hump.
AI-written summary · about
chapters (8)
- 0:00Start
- 2:18Frustration
- 3:20Python Code
- 11:25Pattern Matching
- 16:51Mapping the Error
- 20:58Random Order Testing
- 21:34Parallel Testing
- 25:10Definition of Frustrate
related talks
15mTesting My Patience: An Exploration of Testing in Rust
38mMaking Rust Delightful
01h 42mIntroduction to Rust (for people who have never used a compiler)
27mParsing Rust code considered harmful
28mWriting Idiomatic Libraries in Rust
58mRust for The Curious C++ Developers
49mThe Eternal Sunshine of the Spotless Programming Language
32mTesting strategies and pattern for efficient TDD in Rust
