3 ms·
> This is not a dig at Rust (which I love) but God help any developer inheriting a frontend codebase with random bits of Rust in 2024. Why? Rust has a bunch of
by MuffinFlavored 4y ago
> This is not a dig at Rust (which I love) but God help any developer inheriting a frontend codebase with random bits of Rust in 2024.
Why? Rust has a bunch of features built in to promote "good code", no?
- oaiey 4y agoRust is a unmanaged language. 99% of use cases do not need it and 99% of devs are unable to handle it's.
- MuffinFlavored 4y ago> Rust is a unmanaged language. Not quite sure what you mean. I've written some pretty cool stuff in Rust and never had to do any free() / drop()?
- kaba0 4y agoMost modern C++ code bases also completely lack explicit frees/deletes, but not many would argue that C++ is a managed language. Though a more objective distinction is hard to give on what is a managed language, I found the garbage collection handbooks’ quote on the topic the most illuminating (linking to my older comment): https://news.ycombinator.com/item?id=35332600 https://news.ycombinator.com/item?id=35332600 In Rust and in C++ memory layout is part of your public APIs and has to be refactored when it changes. This is not the case with managed languages.
- augusto-moura 4y agoThe problem is not "bad code", but experience from teams and community. Browsing HN might make we think that Rust is everywhere and everyone knows it, but most of the frontend developers in the world are not prepared to inherit a project in such a foreign language. My theory is that, you probably can see when a language its being picked by some community by looking into courses available, either free or on paid platforms