6.1 Rules common to all identifiers
Identifiers use only ASCII letters and digits, and, in a small number of casesnoted below, underscores and very rarely (when required by frameworks likeAngular) dollar signs.
Give as descriptive a name as possible, within reason. Do not worry about savinghorizontal space as it is far more important to make your code immediatelyunderstandable by a new reader. Do not use abbreviations that are ambiguous orunfamiliar to readers outside your project, and do not abbreviate by deletingletters within a word.
errorCount // No abbreviation.
dnsConnectionIndex // Most people know what "DNS" stands for.
referrerUrl // Ditto for "URL".
customerId // "Id" is both ubiquitous and unlikely to be misunderstood.
Disallowed:
n // Meaningless.
nErr // Ambiguous abbreviation.
nCompConns // Ambiguous abbreviation.
wgcConnections // Only your group knows what this stands for.
pcReader // Lots of things can be abbreviated "pc".
cstmrId // Deletes internal letters.
kSecondsPerDay // Do not use Hungarian notation.