M
Miles Bader
Pavel said:Not quite true. Nobody prevents you from using small names locally if
you overuse your "big names". E.g. implementing delegating long public
names to shorter static, anonymous-namespace-scoped or protected
names.
Er, how? The only ways I can think of are very annoying, requiring one
to explicitly add a definition for _every name_.
For other classes/modules -- yes, I prefer to force using longer
names. And this is because "you" is not really "you" but someone else
whose choice of names is outside your control -- and this is true for
any sizable project.
Many people forget that the programming is not talking to oneself or
one's compiler or computer but collaboration with other people who can
be expected to sometimes act unwisely (from one's point of view).
Yes, we know that. Please don't be condescending.
Excessive use of names with long redundant prefixes can be obfuscating,
making code _less_ readable. You can disagree with that, of course,
but that's more or less the point: there is no consensus among on this
issue among reasonable people.
-miles