4 ms·
You want to encode as much context into the name as possible without breaking abstraction. Meaning that the definition of the function should not be part of the
by nendroid 6y ago
You want to encode as much context into the name as possible without breaking abstraction. Meaning that the definition of the function should not be part of the name. Only the API of the function and context should be encoded into the name.
So for example:
areaOfTwoDimensionalBox
is better than:
area
is better than:
widthOfBox_times_heightOfBox