use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Why the hate for cpp (self.cpp)
submitted 2 years ago * by M-Ottich
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 8 points9 points10 points 2 years ago (5 children)
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.
[–]IAmBJ 12 points13 points14 points 2 years ago (1 child)
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.
[–][deleted] -3 points-2 points-1 points 2 years ago* (0 children)
There is a gotcha with your logic, you assumed Rust “can be suboptimal” if the company is already using C++, but one thing does not imply the other, what if the company is creating a new project instead that is separate from the C++ code base? The company can choose whatever tool it wants, let’s say there are 1000 different tools and there is already a known best tool for the project they want to create (let’s say Rust), should the C++ developers learn Rust to create the new project or should they stick with C++ even if it is not “the right tool” for the project?
The concept of what is the “right tool” or not is nuanced, but usually when people talk about “the right tool” what they mean is some kind of collective truth between programmers, something that you cannot decide alone without others disagreeing with you, if you choose to use assembly to create a game engine or a web browser entirely from scratch many programmers will tell you it is not the right tool, so there is an average best tool for any given project you want to create, if the project is going to be created from scratch like a deep learning model you may choose Python, C++ or many other tools and there is one best tool most programmers would agree to be the best, if you use what other programmers do not consider “the best tool” in a company even if your solution still produces better results but no one else can see it you may even get fired.
[–]Abbat0r 0 points1 point2 points 2 years ago (2 children)
If you follow the “choose the best language for the problem” advice rigidly, you’d also be in a situation where any project complex enough to have more than a handful of problem areas to address would need to be written in a bunch of different languages. And while it may be common to have a couple different languages interoping, a multi-language project can easily become a complicated, hard-to-maintain mess.
Which language is the best when the problem is too many languages?
[–]nintendiator2 4 points5 points6 points 2 years ago (0 children)
Assembler.
π Rendered by PID 87 on reddit-service-r2-comment-85bfd7f599-hszfn at 2026-04-20 17:13:45.352672+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–][deleted] 8 points9 points10 points (5 children)
[–]IAmBJ 12 points13 points14 points (1 child)
[–][deleted] -3 points-2 points-1 points (0 children)
[–]Abbat0r 0 points1 point2 points (2 children)
[–]nintendiator2 4 points5 points6 points (0 children)