It's really got little to do with that. I'd dare anyone to call me a crappy developer, but in a very large, very complex system over time, I'm going to make mistakes. In a commercial development environment, which is multiple orders of magnitude worse than my own situation, it's almost inevitable, with developer turnover, inability to make sweeping changes, changing requirements to keep up with the marketplace, etc...
Anyone who has worked on large commercial projects, knows perfectly well how dangerous C/C++ are, and I say that as someone who prefers C++ and has a huge personal C++ code base.
And I agree that Rust is unbelievably annoying, but in return it avoids whole categories of possible errors. So, I've moved my personal work to Rust, and just deal with it.
I work on a large commercial c/c++ codebase as well, and we have code reviews in place, as well as unit tests, to validate all code and behavior. As long as your code base isn’t the Wild West then you are fine…there is nothing dangerous about C or C++ by itself, just in how an engineer uses it.
And I guarantee you have latent memory issues in your code base if it's large and been around a good while. It's practically impossible not to. C++, even with the addition of various analyzers and with all the code reviews and good intentions you want, once it gets large and complex enough, you cannot even really come close to proving you don't have memory issues.
At least with Rust you can get that certainty up very close to 100%.
3
u/Dean_Roddey Nov 26 '21
It's really got little to do with that. I'd dare anyone to call me a crappy developer, but in a very large, very complex system over time, I'm going to make mistakes. In a commercial development environment, which is multiple orders of magnitude worse than my own situation, it's almost inevitable, with developer turnover, inability to make sweeping changes, changing requirements to keep up with the marketplace, etc...
Anyone who has worked on large commercial projects, knows perfectly well how dangerous C/C++ are, and I say that as someone who prefers C++ and has a huge personal C++ code base.
And I agree that Rust is unbelievably annoying, but in return it avoids whole categories of possible errors. So, I've moved my personal work to Rust, and just deal with it.