3 ms·
Hardly anyone has this mentality and you're beginning to sound like a caricature. I actually agree with you on many things (I find ML the best language of all)
by 28829823 10y ago
Hardly anyone has this mentality and you're beginning to sound like a caricature.
I actually agree with you on many things (I find ML the best language of all), but this C bashing/C++ promotion is just silly.
- mannykannot 10y agoC++ promotion? Where did that come from?
- pjmlp 10y agoIt is only silly from the eyes of C community. CppCon 2016 is full of talks regarding how to write type safe code, how to prevent memory corruption, how to tame UB. What does the C community? They drop the C99 security guidelines into an optional annex in C11! Another proof how the C community is deaf to how C's use is hindering how industry. Meanwhile C++ community is aware of the safety issues it inherited from C and is trying its best to improve safety. In C++ I have access to: - Type safe strings via std::string - Type safe dynamic arrays via std::vector - Type safe static arrays via std::array - Type safe enumerations via enum class - Type safe out parameters via references - RAII - Controlled access to unsafe operations via encapsulation and overlooded operators - Type safe IO via iostreams - Type safe metaprogramming via templates and inlining - The preprocessor should be used just for including header files So no, they aren't the same thing in security mentality.
- 8918912819 10y agoThe C++ "community" has always been great at talking and presentations. The reality is this and it is getting worse with every new feature: http://yosefk.com/c++fqa/ http://yosefk.com/c++fqa/ That said, I'd love to use Ada.
- aseipp 10y agoHe writes out a list of places where C++ is undoubtly better and can help write safer code over the alternatives when you question him -- not perfect code, just code that better utilizes modern features, to help reliability -- and your response is... to avoid his question, address nothing, and do some random handwaving with an FQA. Honestly, the response would be funny if it wasn't just a little bit pathetic. But I've learned not to expect much from people who can only handwave with no actual substance. Programmers are good at that.
- pjmlp 10y ago2016 and people still take the C++FQA for real, uau! Ada is a great language and I also would rather use it instead of C++, but it isn't packaged with any SDK for the OSes that I care about, nor does it have a good integration history with Java and .NET. Using third party tooling for production code is always an extra development cost, so I do the best with the lemons I get. C++ is a much more tasty juicy lemon than C.