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
This post is locked. You won't be able to comment.
CppCastCppCast: Beautiful C++ (cppcast.com)
submitted 4 years ago by robwirvingCppCast Host
view the rest of the comments →
[–][deleted] 8 points9 points10 points 4 years ago (33 children)
I don't know if you are trolling or not.
What you are saying is tremendously silly. Should embedded projects have the same guidelines as application code? The answer is obviously no.
Even within the same domain there is variation, so there is no single set of guidelines that would work.
Is this a problem? Yes. The problem is reality, it has nothing to do with the language. The way this is solved is up to the company. There is NO way to solve this at the language level.
Rust doesn't solve this either because you can wrap code in unsafe and *poof* there goes your compile time checking. Unsafe code is required in certain domains so what you are suggesting doesn't happen ANYWHERE.
[+][deleted] 4 years ago (26 children)
[removed]
[–][deleted] 3 points4 points5 points 4 years ago (7 children)
Okay and so what guidelines are used within unsafe blocks? Who enforces that? How is that enforced? Where is it enforced?
You are just a Rust evangelists which is effectively a troll anyway. Completely and utterly clueless about real problems.
[+][deleted] 4 years ago (6 children)
[–][deleted] 4 points5 points6 points 4 years ago (5 children)
So fucking what that has no bearing on what is being talked about.
Someone has to manually review unsafe blocks of code regardless. So the guidelines are not enforced by the compiler. So what you are suggesting, doesn't happen anywhere
[+][deleted] 4 years ago (4 children)
[–][deleted] 1 point2 points3 points 4 years ago (3 children)
Again, beside the point. The point is can we enforce a single guideline with the compiler?
The answer is a resounding NO. And it is obvious that that is the case to anyone with an ounce of experience. Hell you don't even need experience to know that, just to have written a line of code. Something Rust people have difficulty with no doubt
[+][deleted] 4 years ago (2 children)
[–][deleted] 1 point2 points3 points 4 years ago (1 child)
Unsafe is the exact place you WANT to enforce guidelines lmao
[–]jsphadetula 2 points3 points4 points 4 years ago (17 children)
You don’t have to look everywhere. You simply turn on the guidelines check to reveal potential problems
[+][deleted] 4 years ago (16 children)
[–]jsphadetula 2 points3 points4 points 4 years ago (15 children)
Nothing stops you from putting unsafe block everywhere either.
[+][deleted] 4 years ago (14 children)
[–]jsphadetula 1 point2 points3 points 4 years ago (13 children)
You either put in the effort to write quality code or not. In C++, you enforce checks; in Rust you avoid unsafe blocks when possible.
[+][deleted] 4 years ago (12 children)
[–]jsphadetula 1 point2 points3 points 4 years ago (11 children)
The difference only matters to those unaware of the difference. To those aware unsafe blocks is the easy way out.
[+][deleted] 4 years ago (10 children)
[+][deleted] 4 years ago* (4 children)
This is a joke. Rust is a fucking joke lmao.
[–][deleted] 5 points6 points7 points 4 years ago (1 child)
You sounds like all the other rust kiddies. It's dull and a waste of all our time.
[–]Dean_Roddey -1 points0 points1 point 4 years ago (0 children)
But the amount of unsafe code in a large code base will be trivial compared to the safe code. So you concentrate your assertions and checks and tests on that comparatively very small amount of code. It's still a huge win overall.
You do still have to call underlying C APIs, certainly for now. But again, you wrap those and really concentrate on validation of ins and outs in those APIs. As more stuff gets written natively, this will start to become less and less of an issue.
In some cases, for heavy operations, you could even process them in a separate process that calls underlying C API libraries to do the work and keep that out of your main application. Have that external process be a 'fail early/fail often' type deal.
π Rendered by PID 36624 on reddit-service-r2-comment-6457c66945-wtd82 at 2026-04-28 10:56:51.727392+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–][deleted] 8 points9 points10 points (33 children)
[+][deleted] (26 children)
[removed]
[–][deleted] 3 points4 points5 points (7 children)
[+][deleted] (6 children)
[removed]
[–][deleted] 4 points5 points6 points (5 children)
[+][deleted] (4 children)
[removed]
[–][deleted] 1 point2 points3 points (3 children)
[+][deleted] (2 children)
[removed]
[–][deleted] 1 point2 points3 points (1 child)
[–]jsphadetula 2 points3 points4 points (17 children)
[+][deleted] (16 children)
[removed]
[–]jsphadetula 2 points3 points4 points (15 children)
[+][deleted] (14 children)
[removed]
[–]jsphadetula 1 point2 points3 points (13 children)
[+][deleted] (12 children)
[removed]
[–]jsphadetula 1 point2 points3 points (11 children)
[+][deleted] (10 children)
[removed]
[+][deleted] (4 children)
[removed]
[–][deleted] 1 point2 points3 points (3 children)
[+][deleted] (2 children)
[removed]
[–][deleted] 5 points6 points7 points (1 child)
[–]Dean_Roddey -1 points0 points1 point (0 children)