> All caps actually makes long names *longer* because you now need to > add underscores to separate words, rather than using sentence case. > For example eSentenceCase is the same length as SENTENCE_CASE, but if > you tack on another word the "e" prefix is shorter. Presumably this > line-wrapping issue is more pronounced with long names than short > names, so this is actually an argument against all caps. >
That's a great point. My focus is mostly on ensuring that the single word cases (.e.g Color::BLUE), which in my experience are extremely common if not the vast majority, don't get penalized. I actually think the issue becomes less pronounced with very long names, because at a certain point they're so long that extra characters don't matter much anyway in terms of code formatting impact. - Seth _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform