3 ms·
Every C/C++ coder thinks that they are good at memory management. Just look at the endless flame wars on garbage collection. We just need to admit that we suck
by whatever1 2y ago
Every C/C++ coder thinks that they are good at memory management. Just look at the endless flame wars on garbage collection.
We just need to admit that we suck at it.
- codemac 2y agoLet's also admit every language before Rust hasn't succeeded at out right replacing the vast majority of C/C++, so it becomes it's own form of conservatism/bias. This post is coming from one of the few companies that actually does complete large scale rewrites of things. I'm curious/excited to see how it goes for them. And I have that C/C++ bias: I don't enjoy programming in rust as much as I do C, but I don't like doing lots of new things.
- fiedzia 2y ago> Let's also admit every language before Rust hasn't succeeded at out right replacing the vast majority of C/C++, Many languages expelled C/C++ from the domains they were once kings of entirely. It used to be "the language" for many, many things.
- pjmlp 2y agoThere is hardly that much C and C++ left on GUI frameworks and distributed computing, other than existing infrastructure from projects that are decades old.
- hinkley 2y agoThe amount of “we have garbage collection at home” from the C and C++ communities during the rise of Java is a big part of my hatred of C++. That and watching classmates spin out in C++ classes in college.
- germandiago 2y agoThere is RAII and it works well most of the time. Saying C/C++ denotes your poor understanding of C and C++, which are usually quite different in style and with very different safety characteristics regarding to code written in good style.
- whatever1 2y agoWell most of the time programs don’t exhibit memory issues anyway. But as you said you are the only expert.