Skip to content
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

Conversation

amousset
Copy link
Member

Copy link
Member

@jooooooon jooooooon left a 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.)
Copy link
Member

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.
Copy link
Member

Choose a reason for hiding this comment

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

s/it/is/

@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the ust_10222/add_guideline_for_technique_naming branch from 5d6ad89 to 401643c Compare February 16, 2017 16:34
@@ -25,6 +25,18 @@

==== Writing convention

===== Technique Naming Guidelines
Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

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.)
Copy link
Member

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?

@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the ust_10222/add_guideline_for_technique_naming branch from 401643c to 351bbfa Compare February 16, 2017 17:06
@jooooooon
Copy link
Member

👍

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 351bbfa into Normation:branches/rudder/4.1 Feb 16, 2017
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants