-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #10222: Add guideline for technique naming #289
Fixes #10222: Add guideline for technique naming #289
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but you should add some examples.
* Try to keep names as short as possible, to improve readability | ||
* Read the exinsting technique list, and particularly techniques related to what you are writing. The new names should be consistent with existing ones. | ||
* The name should be a nominal group. It describes the target of the action, not the action itself. | ||
* The general name should like like: General Concept (package, file, etc.) + Source (from file, etc.) + Implementation details (platform, software name, etc.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like like? look like?
* Read the exinsting technique list, and particularly techniques related to what you are writing. The new names should be consistent with existing ones. | ||
* The name should be a nominal group. It describes the target of the action, not the action itself. | ||
* The general name should like like: General Concept (package, file, etc.) + Source (from file, etc.) + Implementation details (platform, software name, etc.) | ||
* The general idea it to go from the most general information to the most precise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/it/is/
Commit modified |
5d6ad89
to
401643c
Compare
@@ -25,6 +25,18 @@ | |||
|
|||
==== Writing convention | |||
|
|||
===== Technique Naming Guidelines |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just like your guidelines say for technique names, I think this should not be capitalised ;)
The following rules should be followed when naming a new Technique: | ||
|
||
* Try to keep names as short as possible, to improve readability | ||
* Read the exinsting technique list, and particularly techniques related to what you are writing. The new names should be consistent with existing ones. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/exinsting/existing/
|
||
* Try to keep names as short as possible, to improve readability | ||
* Read the exinsting technique list, and particularly techniques related to what you are writing. The new names should be consistent with existing ones. | ||
* The name should be a nominal group (not "Manage file content" or "Set Service state" but "File content" or "Service state)". It describes the target of the action, not the action itself. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always start with good examples to have bad examples later. Also, the phrasing here doesn't make it very clear what is good or bad.
* Try to keep names as short as possible, to improve readability | ||
* Read the exinsting technique list, and particularly techniques related to what you are writing. The new names should be consistent with existing ones. | ||
* The name should be a nominal group (not "Manage file content" or "Set Service state" but "File content" or "Service state)". It describes the target of the action, not the action itself. | ||
* The name should look like: General Concept (package, file, etc.) + Source (from file, etc.) + Implementation details (platform, software name, etc.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Examples of this would be useful too. Package repositories may be a good example, or variables?
Commit modified |
401643c
to
351bbfa
Compare
👍 |
OK, merging this PR |
https://www.rudder-project.org/redmine/issues/10222