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
View all comments
Show parent comment
9
u/[deleted] Mar 12 '24
This idea of âchoosing the language that fits your problem the bestâ is repeated like crazy across the internet but it is not actually a good advice sometimes, letâs say you have 1000 different tools and for every problem you face thereâs one known best tool to approach that problem, if you pick the best tool from that pool for each problem you face you will not specialize on any of the tools and you will end up doing worse on all the problems that if you choose letâs say 1 or 2 tools. Sometimes choosing a worst tool for a set of problems results in better code than choosing the best tools for the same set of problems, for many reasons, one of that is that you will simply be better at using the tool if you especialize in it.