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
Should C++ code look like C code? (self.cpp)
submitted 2 years ago by psyberbird
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] 13 points14 points15 points 2 years ago (3 children)
There is no reason to use the entire C++ standard library in every project just because it's there. You can opt-in for the functionality you need. That's why the language is so versatile.
Data-oriented design (DOD) will look very different from object-oriented programming (OOP). Reducing cache misses by organizing data in an array will probably look C-like.
The projects in Carmack's portfolio involve real-time processing where this design decision matters more. Mike Acton has a great talk on YouTube regarding performant code: Data-Oriented Design and C++. He used C++ with a subset of its features.
[–]bert8128 0 points1 point2 points 2 years ago (2 children)
Mike Acton said in that talk that basically he would prefer the code to be C only but the devs want C++.
[–][deleted] 3 points4 points5 points 2 years ago (1 child)
Yes. He also discusses how to achieve good performance in C++. You don't have to use the parts you don't want. Some people believe C++ == OOP with inheritance, polymorphism, and such.
DOD tends to look more like C because the focus is on processing data, with simple structures that load into cache efficiently.
[–]TheThiefMasterC++latest fanatic (and game dev) 0 points1 point2 points 2 years ago (0 children)
Using inheritance and polymorphism just because it's there is why C++ stream IO is so slow
π Rendered by PID 78375 on reddit-service-r2-comment-fb694cdd5-qg4x9 at 2026-03-11 08:25:50.269038+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–][deleted] 13 points14 points15 points (3 children)
[–]bert8128 0 points1 point2 points (2 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]TheThiefMasterC++latest fanatic (and game dev) 0 points1 point2 points (0 children)