Function and Variable Names Should Be Descriptive
Creating function and variable names that are descriptive will make the purpose of your code much clearer—
and can even be said to make your code self-documenting. This is best explained by a few examples.
Which is clearer:
y=p+i-c;
or
YearlySum = Principal + Interest - Charges;
Which is clearer:
p=*(l+o);
or
page = &List[ Offset ];
and can even be said to make your code self-documenting. This is best explained by a few examples.
Which is clearer:
y=p+i-c;
or
YearlySum = Principal + Interest - Charges;
Which is clearer:
p=*(l+o);
or
page = &List[ Offset ];
Cross Reference:
None.
No comments:
Post a Comment