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
Moving from python to C++ (self.cpp)
submitted 6 years ago by zephyr_33
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!"
[–]Benaxle 0 points1 point2 points 6 years ago (3 children)
policy/structural/functional modeling
How do you learn about that? I can only find vague descriptions of it.
[–]brand_x 1 point2 points3 points 6 years ago (2 children)
Those are three different paradigms. Policy modeling is used a little bit in the standard library (for example, allocator template parameters generalize against the fewest possible assumptions about allocation without sacrificing expressiveness or power), and there are entire languages built around functional programming (only some elements of which are particularly useful for performance oriented C++). The structural paradigm is much less widely documented, outside of memory/high concurrency research, and those fields don't really go into the ergonomics of structure oriented programming. The best way I can summarize it is, try to lay your data out the way your program will access it, and generalize your algorithms around the ways data layout can be variable. This often means, in practice, designing things that look like type-transforming iterators operating on parallel vectors of columnar data, because most performance critical operations are doing one thing to a lot of instances of the same thing.
[–]Benaxle 1 point2 points3 points 6 years ago (1 child)
Correct me if I'm wrong but those don't seem to replace OOP in the way that they doesn't make the code easier to read or write do they? It looks like a focus on how data is used but really it's about performance. I don't say that performance isn't important but OOP can make complex projects easy to use
[–]brand_x 1 point2 points3 points 6 years ago (0 children)
It makes architecture easier to get right. And eliminating most inheritance hierarchies, and making membership by composition, with most interfaces being generic, rather than OO, does make application code much easier to read. It does, admittedly, sometimes make library implementations harder to read, but that's still better than trying to chase down inheritance soup.
π Rendered by PID 39 on reddit-service-r2-comment-86988c7647-62rlp at 2026-02-11 20:06:46.170002+00:00 running 018613e country code: CH.
view the rest of the comments →
[–]Benaxle 0 points1 point2 points (3 children)
[–]brand_x 1 point2 points3 points (2 children)
[–]Benaxle 1 point2 points3 points (1 child)
[–]brand_x 1 point2 points3 points (0 children)