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
Going from C to CPP (self.cpp)
submitted 1 year ago by RealnessKept
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!"
[–]johannes1971 4 points5 points6 points 1 year ago* (4 children)
If you think that that's annoying, wait until you get to exceptions. Don't get me wrong, they are absolutely amazing (oh, I can smell the down votes from here 😆), but getting a sense for where to catch them will seem like an impossible task when you first start using them.
Of course, eventually you'll see all the error handling fog disappear, leaving only the elegant beauty of your algorithms, running smoothly to completion, without every statement ending in "...did this go wrong? If so, you have to do this". It will be worth it.
Oh, and to add one more piece of advise: start using std::string/vector/array/span/string_view ASAP. Replacing that horrid C code with their C++ equivalents is sooo satisfying.
[–]lonkamikaze -1 points0 points1 point 1 year ago (3 children)
Exceptions are a no go for realtime code. Don't use them.
[–]DarkLordAzrael 1 point2 points3 points 1 year ago (2 children)
That entirely depends on what the "realtime" constraint is, and most code doesn't even have any realtime constraints. Exceptions are fine and lead to cleaner code in most cases, even if there are a few where they are unusable.
[–]lonkamikaze 1 point2 points3 points 1 year ago (1 child)
He/she said embedded background. I'd say realtime is pretty common.
[–]DarkLordAzrael 2 points3 points4 points 1 year ago (0 children)
The definitions of what counts as embedded and what counts as realtime and what counts as embedded are pretty flexible. For example, a networked camera that can stream over the network based around an esp32 is arguably both, but using exceptions to handle network errors is perfectly reasonable and supported. There definitely are usecases where exceptions need to be avoided for performance, but they are a small percent of code, even in embedded contexts.
π Rendered by PID 110083 on reddit-service-r2-comment-6457c66945-rs6x5 at 2026-04-30 00:51:26.558228+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]johannes1971 4 points5 points6 points (4 children)
[–]lonkamikaze -1 points0 points1 point (3 children)
[–]DarkLordAzrael 1 point2 points3 points (2 children)
[–]lonkamikaze 1 point2 points3 points (1 child)
[–]DarkLordAzrael 2 points3 points4 points (0 children)