Skip to content

Update AV1735: Use a verb or verb phrase to name an event#373

Closed
dennisdoomen wants to merge 1 commit intodevelopfrom
copilot/pr298-update-av1735
Closed

Update AV1735: Use a verb or verb phrase to name an event#373
dennisdoomen wants to merge 1 commit intodevelopfrom
copilot/pr298-update-av1735

Conversation

@dennisdoomen
Copy link
Copy Markdown
Owner

This PR updates guideline AV1735.

It was split out of #298 so the change can be reviewed independently.

Files:

  • _rules/1735.md

Part of the replacement for #298.

Split from #298.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Use `-ing` and `-ed` to express pre-events and post-events. For example, a close event that is raised before a window is closed would be called `Closing`, and one that is raised after the window is closed would be called `Closed`. Don't use `Before` or `After` prefixes or suffixes to indicate pre and post events.

Suppose you want to define events related to the deletion of an object. Avoid defining the `Deleting` and `Deleted` events as `BeginDelete` and `EndDelete`. Define those events as follows:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks like this was duplicated from rule 1737:

Suppose you want to define events related to the deletion of an object. Avoid defining the `Deleting` and `Deleted` events as `BeginDelete` and `EndDelete`. Define those events as follows:
, which is not being deleted.

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.

2 participants