I started writing C++ to do some JSON at work and it is absolutely horrible piece of shit language (even with nlohmann's and simdjson). I cannot believe people live like this.
between figuring out CMake scripts, std::optional being basically useless. I never feel done writing code because I don't feel like I have:
1. Checked all the exceptions
2. Checked all the places where my std::optional instance is null (the checks doesn't propagate their information)
3. Checked that I am not doing any implicit conversion.
4. Really understand what happens at overflow?
5. Really understand if my code is even UB free?
6. Debugging is a mess, I can't step through code because the smartass compiler removes an entire segment of code even in debug mode.
7. I wish this garbage is written in C instead. At least its honest that its primitive and sinful, unlike this LARPING high level language.
Only 2 things need to be true for this language to be permanently horrible: Hyrum's Law and backward compability. If it is possible to write bad code, then there will be bad code. Simple as. Doesn't matter how many guidelines you write or how many times you need to "teach" programmers or how many times you said people just need to be "better mkayyy?"
Oh! I've heard good stuff about Clion. I am pretty skeptical of vs code though, regarding comparing it's capabilities for C++ debugging and performance analysis. What plugins do you need nowadays. It's a good general purpose IDE for sure.
C++ is not for everybody. However it is one of the most successful programming languages in history. And there is a reason why. You might not personally be able to understand or appreciate why it is so successful of course. But that doesn’t change the fact that C++ runs the world.
Good. C++ is discouraging. It combines huge complexity with readily available footguns, and the prevailing attitude is that all developers must be able to write perfect code with a full understanding of the language. Otherwise any security holes or runtime crashes are their fault.
You can do it using whatever you want. I hope I don't discourage you from discovering C++. You might enjoy it, you might not, who cares. Go do it and make up your own opinion.
between figuring out CMake scripts, std::optional being basically useless. I never feel done writing code because I don't feel like I have:
1. Checked all the exceptions
2. Checked all the places where my std::optional instance is null (the checks doesn't propagate their information)
3. Checked that I am not doing any implicit conversion.
4. Really understand what happens at overflow?
5. Really understand if my code is even UB free?
6. Debugging is a mess, I can't step through code because the smartass compiler removes an entire segment of code even in debug mode.
7. I wish this garbage is written in C instead. At least its honest that its primitive and sinful, unlike this LARPING high level language.
Only 2 things need to be true for this language to be permanently horrible: Hyrum's Law and backward compability. If it is possible to write bad code, then there will be bad code. Simple as. Doesn't matter how many guidelines you write or how many times you need to "teach" programmers or how many times you said people just need to be "better mkayyy?"