3 ms·
I want. I do it. It gives me a level of control and a number of libs that no other language can give me, including all the C libs available as well. Yes, it is
by germandiago 5y ago
I want. I do it. It gives me a level of control and a number of libs that no other language can give me, including all the C libs available as well.
Yes, it is not pretty sometimes, but if you take a look at well-written C++ code you would be very surprised at how clean it can look. With its quirks from time to time, but very clean:
- mark virtual overrides with override
- use move semantics to increase performance
- take advantage of RVO
- write GUIs, CLIs, or servers
- use lambdas and ranges
- use smart pointers to get rid of most memory management
- tune your server to allocate and deallocate in the desired patterns via polymorphic allocators or just plain allocators
- take advantage of SIMD and parallelism (via parallel algorithms library, among many examples)
- create generic infrastructure in algorithms with zero overhead penalty that is not even possible in other languages
- keep things working for the next 2 or 3 decades without touching the code
- Program in HPC environments
C++ is much better than what most people that do not use it all the time think. It is not as bad as they put it, and, more important, it is very high performance. I admit this is one of the big reasons why people use it, but C++ for application programming does not look to me like crazy either.
- deleted 5y ago[deleted]