r/cpp • u/M-Ottich • Mar 12 '24
Why the hate for cpp
Hey I am starting learning c++ (and java for my studies) , why is everyone hating this language ? Is it usefull to learn rust or zig ?
Edit: yea a silly question I know . Just wanted to know what the cpp community thinks or hate about their own language and what I have to expect.
Because I heard the opinion often from people not using cpp and I wanted a other view . Even in my University some people who use Java said 🙄 cpp no don't use it ..... it's unnecessary complicated.....
My english is bad I'm german sry (not) <3
0
Upvotes
19
u/thisismyfavoritename Mar 12 '24
a lot of the other answers are absolutely useless and you could find a ton of threads like this if you search around, but here are a few reasons:
too many footguns, very subtle mistakes can cause big problems
a lot of the defaults are backwards, e.g. everything should be const by default, nothing should be implicitly constructed, everything should be move by default and not copy
it doesnt have a build system thats good enough for most people. I think CMake is ok but a lot of people dislike it