by ryanobjc · 10y ago · 0 comments
His better argument about C being good is that it's easier to look at a diff and know what's going on. This is because C has minimal non-local effects, where with C++ you have the ultimate in spaghetti programming: inheritance and overrides.
> His better argument about C being good is that it's easier to look at a diff and know what's going on.
Yep, https://www.cve.mitre.org/cgi-bin/cvekey.cgi?keyword=memory+...
C has fewer "magic" features than C++, and so it's more often clear just by looking at some code what it does. I like C++, but only because I'm happy to only use the subset of the language which suits me, and I tend to avoid features which increase the cognitive load of reading my code.