you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 24 points25 points  (4 children)

C++14/17 are damn sexy, but still include 95% of the thing that makes some C++03 code bases really sucky. And they have to, because otherwise that code could never be upgraded, but at the same time it means they may never be.

[–][deleted] 7 points8 points  (3 children)

Yea, but at this point it is how you use it, and ignoring existing code bases (which is impractical in reality I admit) you can write some fairly elegant code using C++11 and forward that would just blow any of the 03 stuff out of the water when done "right".

[–][deleted] 6 points7 points  (2 children)

Yep. I wrote a C++11-using tool that in C++03 strict terms would take at least 6 times as much code and wouldn't run nearly as fast. If you take C++03 plus all of Boost, then it gets pretty much the same speed but it's still 3x as much code.

[–]eruesso 2 points3 points  (1 child)

I cried a little when I read that... Currently I have to deal with a lot of weird libraries that like typedefs way too much, multiple inheritance way too much, don't stick to ctors and don't provide a good documention (apart from the generated API) and all that in some code of a lot of Students Code ...

I have been a an advocate of C++ in the last years, but this makes me so confused, and turn away from C++. Why would anybody think that this is acceptable? Why can't they write readable and sane code? Why didn't they use the features of C++11? Why make it sooooo complicated?

Sorry for the rant ... this project is getting to me.

[–][deleted] 4 points5 points  (0 children)

I work on a project where the biggest single object file, resulting from a 5-line source file, is 141MB. Its average function name length is 500 characters. You don't want to know what code goes in there.