<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 13, 2014 at 12:38 AM, H. S. Teoh <span dir="ltr"><<a href="mailto:hsteoh@quickfur.ath.cx" target="_blank">hsteoh@quickfur.ath.cx</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":22u" class="a3s" style="overflow:hidden">C++ is better in theory, but not all that much better than C in<br>
practice. The design flaws of the language often makes it worse than C<br>
in terms of maintainability. At my day job, we switched a major project<br>
from C++ back to C, because the C++ codebase was over-engineered and<br>
full of abstractions that nobody understood, patched over multiple times<br>
by people who were reassigned to take the place of the original people<br>
who left, who didn't understand the original design but had unreasonable<br>
deadlines to meet, so as a result they just added hacks and workarounds<br>
to get their job done before they got fired. By the time a few years had<br>
passed, *nobody* understood what the system even does, and every new<br>
code change was a "blindly copy-n-paste from other parts of the code and<br>
pray it won't break something else" deal. It was bloated, slow, and<br>
riddled with bugs nobody dared to fix, because nobody understood what it<br>
does. Certain features were dependent on dtor side-effects, and other<br>
such pathological things, and it was maintenance hell.</div></blockquote></div><br>I don't understand what is the C++ fault when the management of the project forces people to </div><div class="gmail_extra">write shit. The same situation would have happen with any language and a full rewrite by a fixed team</div>
<div class="gmail_extra">would have been better whatever the new language.</div><div class="gmail_extra">I've heard the same story with Java, C# and Python in the last few years. Always management fault.</div><div class="gmail_extra">
<br></div><div class="gmail_extra">I'm not sure I understand the arguments against C++ in your examples, in particular if you use D which have destructors and "magic" too.</div><div class="gmail_extra"><br></div>
<div class="gmail_extra"><br></div></div>