5 ms·
Where is this mythical C++ community that promotes safe and auditable programs? Whenever I'm forced to use a C++ program it's buggier than the C equivalent.
by rbmiller 10y ago
Where is this mythical C++ community that promotes safe and auditable programs?
Whenever I'm forced to use a C++ program it's buggier than the C equivalent.
- pjmlp 10y agoThey are here: https://isocpp.org/ https://isocpp.org/ http://cppcon.org/ http://cppcon.org/ https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md https://github.com/isocpp/CppCoreGuidelines/blob/master/CppC... http://erdani.com/index.php/books/modern-c-design/ http://erdani.com/index.php/books/modern-c-design/ https://msdn.microsoft.com/en-us/library/hh279654.aspx https://msdn.microsoft.com/en-us/library/hh279654.aspx http://stroustrup.com/Tour.html http://stroustrup.com/Tour.html http://elementsofprogramming.com/book.html http://elementsofprogramming.com/book.html Most of the C++ bugs I found happened to be written by former C developers that disregard using C++ stronger type safety, RAII, the standard library containers and usually use naked pointers alongside malloc() and free(). And that is the biggest problem with C++, its copy-paste compatibility with C, which allowed its adoption by C compiler vendors, but made it as safe as C when developers disregard best practices.
- sidlls 10y agoExcept for relatively uncomplicated, or relatively low level programs I have had the opposite experience.