Comment by pjmlp
6 months ago
Some people will do as much as they can to hurt themselves, only to avoid using C++.
Note as the newer versions are basically C++ without Classes kind of thing.
6 months ago
Some people will do as much as they can to hurt themselves, only to avoid using C++.
Note as the newer versions are basically C++ without Classes kind of thing.
I think the main appeal is subset lock-down and compile times. ~5000 lines in C gets me sub second iteration times, while ~5000 lines in C++ hits the 10 second mark. Including both iostream and format in C++ gets any project up into the ~1.5 second mark which kills my iteration interests.
Second to that I'd say the appeal is just watching something you've known for a long time grow slowly and steadily.
This, and the two pages of incomprehensible compiler spam you get when you make a typo in C++.
Depends pretty much on where you do such typo.
If you mean templates, a kind of solved problem since C++17 with static_assert and enable_if, moreso in C++20 with concepts.
Use binary libraries and modules, alongside incremental compilation and linking.
I can't really afford the link time optimization losses
2 replies →
I see it the other way round. People hurt themselves by using C++. C++ fans will never understand it, but it you can solve your problem in a much simpler way, this is far better.
We won't, because C++ is Typescript for C.
It offers us safety features for arrays and strings, that apparently WG14 will never add to C.
Didn't so in 40 years, and still remains to be seen what will be done with the current trend of cybersecurity laws.
Then there is the whole basic stuff like proper namespaces instead of the ridiculous prefix convention.
This from a point of view of C++ ARM defacto standard back in the 1990's, not even considering anything else.
I see more possibilities for people to hurt themselves using C than C++, since 1993 when I added C++ to my toolbox.
The stl is also unsafe by default and not actually safer than what you can also do in C.
I debugged enough problematic C++ code to know that people can hurt themselves badly with it.
6 replies →
IMHO C++ scales far better for large, self-contained, personal projects though it requires slightly more initial investment.
And if you're targeting PC, you might be better off using Python to begin with (if perf is not a concern)
What specifically makes it scale better in your opinion?
2 replies →