[prev] [index] [next]

Names (cont)

Names for global objects must be most carefully chosen.

Their usage is scattered and needs to be "self-documenting".

E.g.   averageLength   vs.   avlen, avl, al,   etc.

Names with limited scope can be shorter.

E.g. iteration variables in for loops called   i, j, ...