Units in variable names
ID | NAMING-24 |
Title | Do not use units in variable names. |
Priority | Strongly recommended |
Severity level | 8 |
Description | Variable names shall not contain units. Instead, add units as end-of-line comments in square brackets. |
Rationale | Maintain readability by using concise variable names. |
Avoid:
accelerationInMillimetersPerSecondSquared = 1000;
Instead use:
acceleration = 1000; % [mm/s^2]