Back to all reviewers

Use descriptive variable names

vadimdemedes/ink
Based on 3 comments
TSX

Avoid single-character variables and abbreviations in favor of descriptive, full-word names that clearly communicate the variable's purpose or content. This improves code readability and makes the codebase more maintainable for other developers.

Naming Conventions TSX

Reviewer Prompt

Avoid single-character variables and abbreviations in favor of descriptive, full-word names that clearly communicate the variable’s purpose or content. This improves code readability and makes the codebase more maintainable for other developers.

Examples of improvements:

  • Change x to children in function parameters
  • Change str to string for string parameters
  • Change e to focusable when iterating over focusable elements

Descriptive names act as inline documentation, making code self-explanatory and reducing the cognitive load for developers reading or maintaining the code.

3
Comments Analyzed
TSX
Primary Language
Naming Conventions
Category

Source Discussions