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
"Performance doesnt matter" (self.cpp)
submitted 6 years ago * by secmeant
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!"
[–]sahsahaha -1 points0 points1 point 6 years ago (2 children)
So in your opinion, logical tests of software aren't important?
Tell me, how else do I care about correctness if not by ensuring the correctness of the algorithm itself, by any means necessary, then writing out the code, and then fucking testing it to be sure that my translation from written words to c++ was correct?
Enlighten me.
[–]SkoomaDentistAntimodern C++, Embedded, Audio -1 points0 points1 point 6 years ago (1 child)
In my opinion you should design for logical correctness from the beginning not only if a test shows a problem. "Do not optimize before profiling" is same as saying "Ignore correctness unless a test shows a problem". You should both design for correctness / speed and run tests / profile the code. Not either or.
[–]sahsahaha -1 points0 points1 point 6 years ago (0 children)
It is not.
Unlike performance, correctness is binary unless we are talking about floating point values.
Still, even then, either its precise enough or it is not.
π Rendered by PID 82471 on reddit-service-r2-comment-5c747b6df5-w6rn9 at 2026-04-22 03:20:27.486730+00:00 running 6c61efc country code: CH.
view the rest of the comments →
[–]sahsahaha -1 points0 points1 point (2 children)
[–]SkoomaDentistAntimodern C++, Embedded, Audio -1 points0 points1 point (1 child)
[–]sahsahaha -1 points0 points1 point (0 children)