Skip to content

Add comment and commit-log style guidelines#898

Merged
yungyuc merged 2 commits into
solvcon:masterfrom
yungyuc:agent/comment-commit
Jun 16, 2026
Merged

Add comment and commit-log style guidelines#898
yungyuc merged 2 commits into
solvcon:masterfrom
yungyuc:agent/comment-commit

Conversation

@yungyuc

@yungyuc yungyuc commented Jun 15, 2026

Copy link
Copy Markdown
Member

Add two sections in STYLE.md: comment guideline and commit log guideline.

[skip-ci]

@yungyuc yungyuc self-assigned this Jun 15, 2026
@yungyuc yungyuc added refactor Change code without changing tests agent Work for AI agent labels Jun 15, 2026

@yungyuc yungyuc left a comment

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.

@tigercosmos please take a look.

Comment thread STYLE.md Outdated
follows the same economy as the rest of the guide -- a comment that merely
restates the code is noise, and noise is removed.

We write comments clearly and concisely. Comments must not interfere

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.

Clear and concise comments.

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.

I usually also add a "short" keyword.

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.

Conciseness is better than shortness.

Comment thread STYLE.md
Write it for the person who runs `git log` or `git blame` a year from now. We
do not use semantic (conventional) commit prefixes such as `feat:` or `fix:`.

We write comments clearly and concisely, like carefully-thinking professionals

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.

Clear and concise commit logs.

@yungyuc yungyuc marked this pull request as ready for review June 15, 2026 15:13

@tigercosmos tigercosmos 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.

@yungyuc I added a few comments.

Comment thread STYLE.md Outdated
follows the same economy as the rest of the guide -- a comment that merely
restates the code is noise, and noise is removed.

We write comments clearly and concisely. Comments must not interfere

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.

I usually also add a "short" keyword.

Comment thread STYLE.md
that cannot fail when the logic it covers changes is not pulling its weight.

## Integer Type
## Comments

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.

The style file is getting pretty large now. I’m a bit concerned that AI agents may not be able to read or follow it reliably. We probably need to refactor it into a more structured layout.

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.

I tighten it a little bit. Comments are important part of code. Coders must be aware of the guideline.

@yungyuc yungyuc merged commit 4640cd7 into solvcon:master Jun 16, 2026
13 checks passed
@yungyuc yungyuc deleted the agent/comment-commit branch June 16, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent Work for AI agent refactor Change code without changing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants