3 ms·
> C++ gives you strictly more tools, particularly for guaranteeing reliability, and they're all optional. You are right. But it doesn't help. When I used C++
by beeforpork 6y ago
> C++ gives you strictly more tools, particularly for guaranteeing reliability, and they're all optional.
You are right. But it doesn't help. When I used C++, I constantly shot myself in the foot by using its features. It did not feel like overusing, but I just wanted type-safety and to replace macros. It was impossible to restrict to useful features, because they are all useful in their way, only they come at the price of spreading everywhere until you don't understanding what is going on. Typing rules are insanely complex. Overloaded template error messages and hilarious amounts of boiler plate member functions just to satisfy the constructor rules and to catch the best overload for every integer type were the result.
I went back to C. It's a relief.
- CreRecombinase 6y agoYou wanted type-safety and to replace macros, but then you went back to C?
- kova12 6y agothis is ridiculous. Every remotely powerful programming language gives you an opportunity to shoot yourself in the foot. c++ is so simple, and with every new standard it becomes even better and easier to use. How can anybody possibly complain is beyond me.
- fulafel 6y agoIts simplicity and ease of yse pales only in comparison with its safety and beauty.
- TheOtherHobbes 6y agoA language with four different pointer metatypes for memory management and (unrelatedly) four different pointer type meta-casts is not "simple". The subdialect of features that you have settled on may be simple, but the language itself is a nightmare of random feature archaeology and creeping throw-it-against-the-wall-and-see-if-sticks extensions, which somehow still fails to provide clean simple tools for polymorphism.
- StavrosK 6y agoThere's a difference between "an opportunity" and "every opportunity". Not all languages have the same amount of footguns.
- adev_ 6y ago> You are right. But it doesn't help. When I used C++, I constantly shot myself in the foot by using its features.[...] I went back to C. It's a relief. I'm sorry but I really can't stand this mindset. For me it is like to say "I got a car, but driving fast was so dangerous...I got scares and I stayed pedestrian for the rest of my life. It's a relief." No it's not a relief, it's non sense. It's not because my car goes to 200km/h that I have to do it. Same for C++ usage. Just learn which features you need instead of throwing the baby out with the bathwater