Parent / child name redundancy
ID | NAMING-4 |
Title | Names of fields and properties shall not contain their parent's name. |
Priority | Recommended |
Severity level | 8 |
Description | Names of fields and properties shall not contain their parent struct or object's name. |
Rationale | When referenced, the fields and properties can have the same phrase multiple times in a row, which is unnecessary. |
Avoid:
Beam.beamThickness
chair.weightOfChair
Instead use:
Beam.thickness
chair.weight