Use consistent, specific, and semantically appropriate naming conventions throughout the codebase. When creating new identifiers: 1. Check for existing patterns for similar concepts (e.g., use 'ascending/descending' for sort options to match existing UI components)
Use consistent, specific, and semantically appropriate naming conventions throughout the codebase. When creating new identifiers:
folder/${generateTimestamp()}
)For example:
// Instead of this:
builder.addRadio({
path: 'reduceOptions.sort',
settings: {
options: [
{ value: SortWithReducer.None, label: 'None' },
{ value: SortWithReducer.Asc, label: 'A-Z' },
{ value: SortWithReducer.Desc, label: 'Z-A' },
]
},
});
// Do this (for consistency with tooltip sorting):
builder.addRadio({
path: 'reduceOptions.sort',
settings: {
options: [
{ value: SortWithReducer.None, label: 'None' },
{ value: SortWithReducer.Asc, label: 'Ascending' },
{ value: SortWithReducer.Desc, label: 'Descending' },
]
},
});
This approach improves code readability, maintainability, and reduces cognitive load for developers navigating the codebase.
Enter the URL of a public GitHub repository