Skip to content

Into and C++ updates#14

Merged
iparask merged 7 commits into
masterfrom
gp/guide_update
Jul 7, 2026
Merged

Into and C++ updates#14
iparask merged 7 commits into
masterfrom
gp/guide_update

Conversation

@iparask

@iparask iparask commented Jun 3, 2026

Copy link
Copy Markdown
Member

This PR updates the intro of the dev guide and the C++ guide.

@iparask iparask requested review from JBorrow and mhasself June 3, 2026 19:16

@JBorrow JBorrow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really nice!

Comment thread source/cpp.rst Outdated
Comment thread source/cpp.rst Outdated
Comment thread source/cpp.rst Outdated
Comment thread source/intro.rst
code is a product that is distributed to the public and hopefully will be used by many
people outside of the collaboration. Incosistent code styles makes it harder for
contributors and users to read, understand and reuse code. A developer and style
guide aims to lower this friction.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to say something here about us requiring the use of source formatters also reducing spurious diffs from purely stylistic changes and hence reducing maintainer burden during code review?

@iparask

iparask commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

@JBorrow can you take another look? I'm looking at common section and I will need to overhaul it. It contradicts the intro a lot.

@JBorrow JBorrow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally happy apart from a couple of minor typographic items

Comment thread source/cpp.rst Outdated
formatting Argue about C/C++ formatting.
Although there are many C++ style guides, and there is no single "correct" way to
write C++, we will adopt a modified Google C++ style guide. For any rule not explicity
specified in this document, please refer to the Google [C++ style guide](https://google.github.io/styleguide/cppguide.html)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a full stop

Comment thread source/cpp.rst Outdated
write C++, we will adopt a modified Google C++ style guide. For any rule not explicity
specified in this document, please refer to the Google [C++ style guide](https://google.github.io/styleguide/cppguide.html)

In addition to the style description, we will provide a config file for clang-format

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to link to this file or include it here.

@mhasself mhasself left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good start! Couple minor comments.

I think leaning into an existing C++ style guide, and then only calling out major divergences, is a good approach.

Can we (officially) use #pragma once ?

Comment thread source/cpp.rst Outdated
Comment on lines +44 to +45
not formatted according to the style, you can maintain the existing style. However,
we higlhy recommend to format the code in a different branch and submit a pull request.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"highly"

But more importantly, please clarify that bulk reformatting must be done separately from any changes in functionality.

With "highly recommend" it's not clear whether you recommend people reformat the code, or that you recommend that if they reformat the code, they do it in a dedicated branch / PR.

I hestitate to get behind the first recommendation; and the latter is basically a requirement.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is part of the common section, but I wanted to highlight here as well. I'll change the wording.

Comment thread source/cpp.rst Outdated
------------------

The name of a variable, function or class is one of the most important aspects of code
readability. It can immediately inform about the puspose of the named thing. Please avoid

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*purpose

@iparask iparask mentioned this pull request Jun 25, 2026
@iparask iparask requested review from JBorrow and mhasself June 29, 2026 15:50
@iparask

iparask commented Jun 29, 2026

Copy link
Copy Markdown
Member Author

There are a few changes based on the discussion on PR #15, so I would like to see if you agree with them before I merge and continue with the rest. Thank you

@iparask iparask merged commit d057f4c into master Jul 7, 2026
1 check passed
@iparask iparask deleted the gp/guide_update branch July 7, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants