by kajaktum · 3y ago · 0 comments
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?"
Congratulations! That is the correct answer. Welcome to the language.
If you don't need to use C++, don't.
You need C++ for stuff like computer graphics, computational geometry, plausibly scientific computing, games and so on.
"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."
Visual Studio is brilliant compared to anything else. If you really need to use C++, I would warmly suggest it.
I have to because everything else is in C++ and I don't want to be the jackass that uses their favorite language that only they know in the company.
That's a bold statement. Clion and vs code are pretty great too, and last time i did a comparaison better than visual studio proper.
Computer graphics, though, is one of the few sane reasons left to learn C++.
There are warnings for this that you should activate.
The rest is pretty much incurable.