Problem/Motivation
Hi
Do we need a small sentence in http://drupal.org/node/1354 about the use of "We" vs "I" in Drupal core comments? There are 1741's "we"-s and two "I"-s in all the comments of Drupal core 7.4. So "we" are nearly doing it all right. But we might need to spend a sentence on it to help new people and have a clear guideline, under http://drupal.org/node/1354#general like
"We use "We" as a personal pronoun instead of I". For example
// Verify that we are still logged in.
instead of
// I want a custom canonical url.
"
Thoughts? Over-documenting? wrding?
Use links
- Prefers a declarative style that avoids pronouns - https://softwareengineering.stackexchange.com/questions/190746/i-we-or-n...
- https://developers.google.com/style/pronouns
- https://www.drupal.org/project/coding_standards/issues/1220000#comment-9...
Benefits
If we adopted this change, the Drupal Project would benefit by ...
Three supporters required
- https://www.drupal.org/u/{userid} (yyyy-mm-dd they added support)
- https://www.drupal.org/u/{userid} (yyyy-mm-dd they added support)
- https://www.drupal.org/u/{userid} (yyyy-mm-dd they added support)
Proposed changes
Provide all proposed changes to the Drupal Coding standards. Give a link to each section that will be changed, and show the current text and proposed text as in the following layout:
1. Drupal API documentation standards (general)
Current text
There are no recommendations on the use of pronouns.
Proposed text
Do not use gender specific pronouns.
2. Repeat the above for each page or sub-page that needs to be changed.
Remaining tasks
Create this issue in the Coding Standards queue, using the defined template- Add supporters
- Create a Change Record
- Review by the Coding Standards Committee
- Coding Standards Committee takes action as required
- Discussed by the Core Committer Committee, if it impacts Drupal Core
- Final review by Coding Standards Committee
- Documentation updates
- Edit all pages
- Publish change record
- Remove 'Needs documentation edits' tag
- If applicable, create follow-up issues for PHPCS rules/sniffs changes
For a full explanation of these steps see the Coding Standards project page
Comments
Comment #1
silverwing commentedComment #2
jhodgdonInteresting idea... maybe we should avoid personal pronouns altogether?
Moving this to the Drupal Core queue, which is where we discuss coding (and comment) standards.
Comment #3
jhodgdonCoding standards decisions are now supposed to be made by the TWG
Comment #4
douggreen commentedI try to avoid personal pronouns in comments altogether, so no usages of "You", "I", or "We". Comments are not novels with actors. They are documentation on what something does, not on what the (gender neutral) actors do.
Comment #5
jhodgdonPeople often use "we" in in-code comments though, and actually for UI documentation, "you" is a usability plus, and I think that would also apply to documentation aimed at developers, such as "You need to ... in order to ...".
So I am not convinced we should define a standard either advocating or forbidding this.
Comment #6
joachim commentedI tend to use 'we' if I want to speak from the POV of the code. For me at least, it's a habit that dates back to showing my working in maths, eg 'We factorise the expression in order to use integration by parts.'. So in code, something like 'We first try to check the user's permission, and then fall back on yada yada.'
And for documentation addressed to the developer, 'You should ensure to sanitize this output' is more readable than something like 'Developers should ensure ...'.
Comment #7
damienmckennaI thought using pronouns was a standard documentation no-no? Are there other documentation standards that may be drawn upon here?
Comment #8
tizzo commentedMoving this issue to the Coding Standards queue per the new workflow defined in #2428153: Create and document a process for updating coding standards.
Comment #9
quietone commentedComment #10
quietone commentedComment #11
quietone commentedI did some more duck-duck-going and didn't find a reference with clear guidance for technical writing about 'we' and 'I'. 'We' is definitely used most frequently in core. And the usages of 'I' are minimal, less that 13. And of those two are for agreeing to terms and conditions. Skimming the others I only see one usage in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php in a comment that could be changed. But even that is very minor.
I'd rather not add a statement about standardizing on 'We' because we seem to be dong fine as is. And I would want to encourage the usage when it is often better to simply declare or explain something.
So, this could be a won't fix and we move the gendered pronoun discussion to a new issue. Or re-title this one.
Comment #12
quietone commentedAlso, I didn't find any usages of he or she in core that should to change.
Comment #13
quietone commentedComment #14
bbralaIf currently we are not fixing an issue, or something very minimal, i agree we should not do it and keep things as simple as possible.
Comment #15
bbralaAs discussed in the coding standard meeting of 22th of may, since there is not more activity we are closing this for now.