top | item 42406053

(no title)

polyaniline | 1 year ago

I haven't worked on a large C++ codebase yet, but with Rust my refactoring technique has been 1. Roughly model the data flow on paper so you don't have to fight the borrow checker or make design changes later. 2. Make the obvious changes related to the refactor. 3. Listen to Rustc and Clippy. 4. Everything usually works with surprisingly few issues.

discuss

order

psyclobe|1 year ago

> 1. Roughly model the data flow on paper so you don't have to fight the borrow checker or make design changes later.

So Rustacians have to defer to paper and pencil just to avoid the tooling huh, something seems counter productive about that.