2 ms·
I think the flaw with C++ is that it's too low-level for high-level applications, and it's too complex for performance-sensitive applications. I don't know what
by hot_gril 4y ago
I think the flaw with C++ is that it's too low-level for high-level applications, and it's too complex for performance-sensitive applications. I don't know what it's really good for. It feels far easier to use either extreme of C or Python/JS depending on the job. C++ seemingly grew to fill the high-level space that others have already filled better by now.
- sakras 4y agoFor what it’s worth, I treat C++ as C with a basket of goodies that you can use if it makes your code better (at least in the context of performance-sensitive stuff). Things like templates and classes can help if you don’t overuse them. STL is nice for rapid prototyping and writing tests. But I agree with you it’s often the case where people go overboard with the abstraction and cause an incoherent, slow, buggy mess
- hot_gril 4y agoYeah, that discipline works when you're solo, but in a team each person will have their own ideas. Mine would be to avoid using classes, and someone else would OOP it up.
- tragomaskhalos 4y agoI worked on a C++ codebase that was essentially C with a few obvious domain classes and the addition of std::string and std::vector for convenience. I suspect that this is quite a common space, and it's immune to the march of the whizzy new features that are being added. Probably the only remotely modern bit of C++ that we could have benefited from is a salting of std::moves to remove some redundant copying, but this wasn't really worth the candle tbh.