4 ms·
>"Rust is also the easiest programming language to sight-read. [...] Researchers have concluded that Rust has a significantly lower cognitive complexity than C,
by meowface 2y ago
>"Rust is also the easiest programming language to sight-read. [...] Researchers have concluded that Rust has a significantly lower cognitive complexity than C, C++, Python, JavaScript, and TypeScript (all languages studied), “meaning that [Rust] can guarantee the highest understandability of source code compared to all others.” As a result, software maintainers can understand unfamiliar Rust code far more quickly than code written in many other popular languages."
I like Rust, but this sounds like opposite world. I have trouble imagining how this conclusion was made.
- BWStearns 2y agoI think the type signatures are really helpful in this regard. It makes it really easy to tell what’s happening and if I have to worry about mutations. Writing the signatures can become a pain because you have to think everything through up front, but we spend more time reading code than writing it.
- scrubs 2y agoBingo. I'm already in a bad mood from c++ stl compile errors and template bs ... rust ain't helping. And for my work (low level MT csp (communicating sequential processes) and as another hn post made reference to, better design verification ie better integration of spin or lean with a dev lamguage would go further to deal with the unwieldy aspects of systems.
- Yoric 2y agoI imagine it's about type signatures. Rust makes it very easy to attach strong invariants to types. In most other languages, it's either harder to attach these invariants or harder to trust them. By one metric (definitely not all of them), this makes properly written Rust code much easier to understand (and trust) than in the other languages from that list.