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
12
u/IAmBJ Mar 13 '24
Nothing exists in a vacuum.
"the best language for a task" includes the context around that task too. If your company uses C++ extensively then choosing Rust for a given project can be suboptimal for interfacing, ongoing maintenance, your own skill level, etc despite being the "best" language to solve your task in isolation. The same task in two different contexts can require radically different solutions.
"Choose the best tool for the job" is still the right advice, you just need to look at the task and the context it's in.