Keep code clean by removing all forms of redundancy that affect readability and maintainability. This includes: 1. Avoid duplicate macro/constant definitions that could cause conflicts or confusion
Keep code clean by removing all forms of redundancy that affect readability and maintainability. This includes:
// BAD - duplicated macro definition
#define ARRAY_IS_VIEW 33554432
#define ARRAY_IS_VIEW 33554432 // Duplicate!
// GOOD - defined once
#define ARRAY_IS_VIEW 33554432
// BAD - debug statement in production code
registerUse({&res}, {this});
sd_printf("After before exec\n",0); // Debug print in production code
// GOOD - only in error paths or removed entirely
registerUse({&res}, {this});
// No unnecessary print statements
Each form of redundancy impacts code readability and increases maintenance burden. When reviewing code, make sure information is stated once and only once where appropriate.
Enter the URL of a public GitHub repository