Parameter names should clearly indicate their purpose and avoid ambiguity or conflicts with existing constructs in the codebase context. Names should be self-explanatory without requiring additional comments or context to understand their function.
When naming parameters, consider:
Example of problematic naming:
# Confusing - "executor" has special meaning in CircleCI
- install-deps-python:
executor: win-something
# Unclear purpose
go_base_url: 'https://go.dev/dl/'
Example of improved naming:
# Clear and doesn't conflict with CircleCI constructs
- install-deps-python:
os: win-something
# Descriptive and obvious purpose
go_download_base_url: 'https://go.dev/dl/'
This practice reduces cognitive load for developers and prevents misunderstandings about parameter usage.
Enter the URL of a public GitHub repository