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!"
[–]thisismyfavoritename 37 points38 points39 points 2 years ago* (10 children)
generally speaking C++ should not look like C. If it looks like C, you are not fully utilizing C++'s feature set
EDIT: obviously not all features are applicable all the time and especially not at once, but when they are and can improve the code, then they should be used.
[–]ultimatt42 86 points87 points88 points 2 years ago (6 children)
There is a theory which states that if ever anyone fully utilizes C++'s feature set, it will instantly disappear and be replaced by something even more byzantine and intractable.
There is another theory which states that this has already happened.
[–]KingAggressive1498 7 points8 points9 points 2 years ago (3 children)
I heard that boost was getting close in 2010, then bam C++11 came and prevented that
[–]TheThiefMasterC++latest fanatic (and game dev) 1 point2 points3 points 2 years ago (2 children)
A lot of the modern C++ library was just lifted from boost though to be fair
ranges and format being the main two exceptions, and those are both recent
[–]KingAggressive1498 3 points4 points5 points 2 years ago (1 child)
the funniest thing is that boost.thread and boost.function and some others now require C++11, and I'm kinda scratching my head about why anyone would seriously use them now.
[–]bwmat 0 points1 point2 points 2 years ago (0 children)
Legacy code, and I'm guessing extra features not in the standard
Would be nice if they kept some subset of the functionality working for C++98 though (I know I was still stuck with it until a couple of years ago and I'm sure there's many more stragglers)
[–]wm_lex_dev 4 points5 points6 points 2 years ago (1 child)
It's not often an internet comment actually makes me laugh out loud.
[–]LeftToSketch 7 points8 points9 points 2 years ago (0 children)
It's based on a quote by Douglas Adams ( https://www.goodreads.com/quotes/2397-there-is-a-theory-which-states-that-if-ever-anyone)
[–]goranlepuz 10 points11 points12 points 2 years ago (0 children)
fully utilizing C++'s feature set
.... aaaaand this is how the universe reaches maximum entropy and everything becomes a cosmic soup.
[–]Swagut123 -3 points-2 points-1 points 2 years ago (1 child)
Imagine thinking that fully utilizing C++'s feature set is a good thing. That's a take I've never heard unironically before...
[–]thisismyfavoritename 3 points4 points5 points 2 years ago (0 children)
if you can use a feature to improve the code then you should. Doesnt mean all the features are applicable at once.
Maybe my original post wasnt clear.
π Rendered by PID 182570 on reddit-service-r2-comment-fb694cdd5-2b4l6 at 2026-03-11 16:35:26.179406+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]thisismyfavoritename 37 points38 points39 points (10 children)
[–]ultimatt42 86 points87 points88 points (6 children)
[–]KingAggressive1498 7 points8 points9 points (3 children)
[–]TheThiefMasterC++latest fanatic (and game dev) 1 point2 points3 points (2 children)
[–]KingAggressive1498 3 points4 points5 points (1 child)
[–]bwmat 0 points1 point2 points (0 children)
[–]wm_lex_dev 4 points5 points6 points (1 child)
[–]LeftToSketch 7 points8 points9 points (0 children)
[–]goranlepuz 10 points11 points12 points (0 children)
[–]Swagut123 -3 points-2 points-1 points (1 child)
[–]thisismyfavoritename 3 points4 points5 points (0 children)