Skip to content

Variables naming convention #7

@lucielavickova

Description

@lucielavickova

Hello,

just as an improvement suggestion - from my own experience it's better to use underscores between words in variable names rather than spaces - it helps a lot (not only) during refactoring:

  • I can select the whole variable name by a double-click and see where it's used (because PyCharm highlights it)
  • when searching & replacing a variable name with underscores it's less likely that I would accidentally replace some part of a code I don't want (test case name or documentation - these usually contain the spaces between words)

Example of our naming convention:
${GLOBAL_VARIABLE}
${keyword_parameter}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions