Skip to content

stdlib coding style: use nouns instead of verbs whenever possible #397

Closed

Description

@shykes

To make the stdlib more consistent, I propose we implement this simple rule:

  • Whenever possible, stdlib packages should use nouns (eg. #Website, #File) instead of verbs (eg. #DeploySite, #WriteFile). When a verb is used, there should be a comment explaining why it’s better.

Current status

List of packages and definitions not following this rule:

  • docker.#Push
  • … FIXME help wanted

Proposed changes:

  • … FIXME help wanted

Activity

  1. samalba commented on May 1, 2021

    @samalba
    Contributor

    +1 for consistency.

  2. added this to the beta milestone on May 11, 2021
  3. modified the milestones: v0.1.0, on Jun 10, 2021
  4. assigned and unassigned on Jun 14, 2021
  5. samalba commented on Jul 1, 2021

    @samalba
    Contributor

    Re-opening this one - verbs re-appeared in some packages (eg. docker.#Push). It's worth reviewing one more time. Assigning to @TomChv as discussed.

  6. reopened this on Jul 1, 2021
  7. assigned and unassigned on Jul 1, 2021
  8. shykes commented on Jul 15, 2021

    @shykes
    ContributorAuthor

    Un-assigning myself. Next is for someone to update this issue with information about the current situation: which packages don’t follow the rule, possible changes, design discussion on possible changes…

  9. aluzzardi commented on Jan 7, 2022

    @aluzzardi
    Contributor

    @shykes Should we close this? Or change it to make it a Europa issue?

  10. modified the milestones: , , next on Jan 7, 2022
  11. shykes commented on Jan 7, 2022

    @shykes
    ContributorAuthor

    Closing this in favor of #1360.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions