Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add recommendation about XhasY naming #33

@Bearfinn

Description

@Bearfinn

I have encountered a case where a boolean is telling if Entity A has Entity B.
For example, if an admin has members.

How should it be named? (The following are examples of what I have searched)

  • hasAdminMembers
  • adminHasMembers
  • isAdminHavingMembers

I think this would be a good thing to include in this cheatsheet as I, and many others, might have stumbled in such a case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions