Skip to content

C++ Core Guidelines #1218

Description

@pcarruscag

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.

Activity

  1. pcarruscag commented on Mar 3, 2021

    @pcarruscag
    MemberAuthor
  2. pinned this issue on Mar 3, 2021
  3. deleted a comment from stale on Jul 21, 2021
  4. deleted a comment from stale on Oct 11, 2021
  5. deleted a comment from WallyMaier on Jan 14, 2022
  6. pcarruscag commented on Jan 14, 2022

    @pcarruscag
    MemberAuthor

    [WIP]
    SU2-specific best practices (carried over from #1487)

  7. deleted a comment from stale on Apr 16, 2022
  8. pinned this issue on May 2, 2022
  9. deleted a comment from stale on Jul 10, 2022
  10. deleted a comment from stale on Nov 2, 2022
  11. deleted a comment from stale on Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions