5 ms·
> This is distinctly not a superpower c++ has and why the complexity I guess you don't have that much experience with actual C++ development? Because there's a
by tredre3 1y ago
> This is distinctly not a superpower c++ has and why the complexity
I guess you don't have that much experience with actual C++ development? Because there's a plethora of static analysis tools and any serious IDE come with refactoring tools on top of that, both assistive and automated, that will suggest fixes as you type. Rust didn't invent anything with clippy, however good the tool might be...
- kstrauser 1y agoI worked for Coverity and people paid us ludicrous amounts of money to get the kinds of suggestions that rustc and clippy give everyone for free. I'm a huge fan.
- vlovich123 1y agoCorrect. Defaults matter. Also, even if you have a coverity license, you have to do the work of integrating it into your build system. cargo clippy works always and will cover all platforms and architectures you try to build for. This is significantly harder in c++ to the point where I’ve rarely seen coverity and other static analysis tools in use in large c++ code bases.
- kstrauser 1y agoNot to mention that `cargo clippy` runs in 200ms, making it far and away the fastest such thing I've used with any language. It's a lot easier to make your code clean when the checker runs nearly instantaneously.
- vlovich123 1y agoAnd when you can pass —fix and the vast majority of suggestions are auto-applied
- kstrauser 1y agoTruly, the cargo ecosystem is unbelievably ergonomic and delightful.