• cbarrick@lemmy.world
    link
    fedilink
    English
    arrow-up
    18
    arrow-down
    2
    ·
    edit-2
    3 months ago

    With a good style/best-practice guide, C++ can be quite productive of a language to work with.

    Those kinds of guides typically define which standard/convention to use and which features not to use (cough exceptions cough).

    I highly recommend Google’s C++ style guide: https://google.github.io/styleguide/cppguide.html.

      • cbarrick@lemmy.world
        link
        fedilink
        English
        arrow-up
        20
        arrow-down
        1
        ·
        3 months ago

        I intentionally added a period because it was the end of a sentence.

        If your Lemmy app messed it up, then that’s a bug in its markdown parser.

    • wewbull@feddit.uk
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      3 months ago

      Do you think a style guide is enough for an open source code base? Contributions could be coming from lots of directions, and the code review process to enforce a style guide is going to be a lot of work. Even rejecting something takes time.