-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++ Core Guidelines #1218
Comments
Passing arrays by pointer -> don't https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rr-use-ptr "What are important implementation aspects?" You ask -> https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#per7-design-to-enable-optimization |
[WIP]
|
I would like to bring your attention to the existence of this gem:
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#main
Of which I use maybe a subset in my often verbose and perhaps repetitive code reviews.
The things I comment on are as much a matter of style as multiplication taking precedence over addition is.
It is how "They" do it.
So do please browse the guidelines.
Ingraining some good guidelines, goes a long way towards freeing one's mind to focus on important implementation aspects.
Does this thing need to be const? Just make it, the compiler will tell you if it can't or if you were about to have a bug, the opposite does not happen.
I need this piece of code from somewhere. -> Put it in a function.
My function does not fit the screen. -> Too long.
new su2double[nSomething] -> Some container type, which one? The simplest that will do the job.
etc.
The text was updated successfully, but these errors were encountered: