Code Review
Code Review
Posted Nov 14, 2025 10:11 UTC (Fri) by hailfinger (subscriber, #76962)In reply to: Code Review by taladar
Parent article: Rust in Android: move fast and fix things (Google Security Blog)
Reducing cognitive load by removing complete classes of errors does help a lot. This way, I can focus attention on the things which can still go wrong.
Whenever I do code review of C code and perform a re-review of fixed code, I have to recheck all the memory safety aspects again. Even if I'm sure memory safety is OK in the current iteration, I cannot banish thinking about memory safety while focusing on other code correctness aspects.
A similar mechanism is in play for stylistic issues. Let the tools take care of it as much as possible.
Whenever I do code review of C code and perform a re-review of fixed code, I have to recheck all the memory safety aspects again. Even if I'm sure memory safety is OK in the current iteration, I cannot banish thinking about memory safety while focusing on other code correctness aspects.
A similar mechanism is in play for stylistic issues. Let the tools take care of it as much as possible.
Any memory-safe language helps reduce cognitive load during code writing and code review, and with Rust we seem to have a contender which is fast enough and popular enough to stay.
