Choose names that clearly communicate intent and context, avoiding ambiguity or confusion. Variable and function names should be self-documenting and reflect their domain purpose.
Choose names that clearly communicate intent and context, avoiding ambiguity or confusion. Variable and function names should be self-documenting and reflect their domain purpose.
Key guidelines:
Example - Before:
fn make_categoricals_compatible(
input: &[column], // Uses numeric index input[1]
array_width: usize,
)
After:
fn make_rhs_categoricals_compatible(
CategoryMapping {
source_column,
target_column,
}: CategoryMapping,
array_width_in_bytes: usize,
)
The improved version:
Enter the URL of a public GitHub repository