Agreed standards for how variables, functions, classes, and other code elements are labelled, with the goal of making their purpose immediately clear to anyone reading the code. Meaningful, descriptive names reduce the cognitive effort needed to understand a codebase and are a foundational element of clean code.
Ady Stokes noted in the chat that naming conventions for unit tests in particular come up repeatedly in pairing sessions as one of the most impactful and commonly discussed habits. For example, a method named addValueAddedTax communicates intent far more clearly than a raw multiplier buried in a line of arithmetic.
Ady Stokes noted in the chat that naming conventions for unit tests in particular come up repeatedly in pairing sessions as one of the most impactful and commonly discussed habits. For example, a method named addValueAddedTax communicates intent far more clearly than a raw multiplier buried in a line of arithmetic.