Use proper naming conventions to make code more readable and maintainable: 1. **Functions should start with verbs** that describe their action: ```typescript
Use proper naming conventions to make code more readable and maintainable:
// Incorrect
const hasChanges = () => { ... }
// Correct
const checkForChanges = () => { ... }
// Too generic
element.download = `taskInstanceLogs.txt`;
// Better - includes relevant identifiers
element.download = `${dagId}-${taskId}-${runId}-${mapIndex}-${tryNumber}.txt`;
// Define consistent casing pattern for categories
const existingCategories = ["user", "docs", "admin", "browse"];
// Use consistent transformation when comparing
if (!existingCategories.includes(category.toLowerCase())) {
// ...
}
Following these conventions improves code clarity and reduces confusion when maintaining code across a team.
Enter the URL of a public GitHub repository