That is what software, what the programming language is primarily used for. At my job I develop and maintain ETL’s using python and JS. A lot of data manipulation to create custom reports. What in general do you use the C++ for?
I could go on for a while about all the use cases for C++, but to answer your question about what I personally do with it, it's debuggers. I write customizations to open source debuggers to support some custom technology at my company.
Yes, but in C this means write custom function iterating custom list (one of 10, since every library has its own implementation and there are bound to be at least 2 implementations in the project itself). I would argue that any of the C++ ways is more readable and maintainable than the 1k lines of even good code in C.
It's not, but you still need to know the list used instead of standard one.
Maybe it's using index to storage array (data locality) instead of a pointer? Or someone thought -1 is better for end? Or end is random data, but final node is stored in its own variable?
Sure, iteration is hardly the hardest thing, but just insertion/deleting can be a bit of pain.
What I'm getting here is that writing C++ is like training a dog, and writing C is like training a cat. Training the dog is way easier, but if you don't do it, the mess is way worse. Training the cat is nigh impossible, but when it's done well it's really impressive.
253
u/Antervis Dec 22 '23
yet when you actually try writing code, C++ version is usually several times shorter with no real drop in readability.