Close Naming

Close naming is the creation of names that have little differences between them, and which leads human to easily confusing them more often.

The confusion may originate from different sources:

  • Names with only one or two letters of difference: get/set; max/map; type/typo;

  • Swaps of parts of the name: xmlDiff/diffXml;

  • Names with hard to read letters: x0/xO/xQ

  • Names with possible opposite means: host, client,

Close naming does not always yield error, but requires extra attention to ensure it is not confused with another structure.

Close naming may happen with any named strcture: variables, methods, classes, constants, etc. It is part of healthy coding conventions.

Related : Variables, Name, Name Conventions, Variable Shadowing