Timeline for How to name uppercase variables when using the camelCase convention?
Current License: CC BY-SA 4.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 26, 2024 at 1:07 | comment | added | M.P. Korstanje | @JMekker yes that is a joke. The - Ken M part suggests that it is a made up quote attributed to a well known harmless and good natured troll who makes comments in a similar style. | |
| Jul 25, 2024 at 17:33 | comment | added | JMekker | @BryanBoettcher Is this a joke? Do people actually pronounce it that way instead of H-T-T-P? | |
| Jul 25, 2024 at 15:41 | comment | added | JimmyJames | @Barmar Many years ago, I tried to push the standard described here on my team. Some people were unable to accept the idea of lowercasing initialisms as if there were normal words. Each letter is the beginning of a new word, or that's the best explanation I remember getting for their refusal to do it this way. | |
| Jul 25, 2024 at 15:14 | comment | added | Bryan B | @Barmar it's because "XML" is pronounced with 3 distinct letters, but "Http" is pronounced "itch-puh" - Ken M. | |
| Jul 25, 2024 at 11:54 | comment | added | Koterpillar | If you assume three-letter acronyms are special cased, it makes sense. | |
| Jul 24, 2024 at 13:44 | comment | added | gidds | Mmm, IIRC guidelines are the same for Java too. | |
| Jul 24, 2024 at 13:07 | comment | added | Barmar | JavaScript's XMLHttpRequest has always bugged me. Why uppercase XML but camelcase Http? | |
| Jul 24, 2024 at 10:03 | comment | added | Bill Tür stands with Ukraine | @MetalMikester I guess that is beacuse (at least how I read it) the guidelines only deal with public members and the underscore is usually used for private ones. | |
| Jul 24, 2024 at 9:59 | comment | added | MetalMikester | @BillTürstandswithUkraine Interesting. I've been seeing fields with the leading underscore for as long as I can remember. I never noticed it wasn't part of the guidelines. | |
| Jul 24, 2024 at 6:21 | comment | added | Bill Tür stands with Ukraine | Do note that the leading underscore for the field is not part of the guidelines. | |
| Jul 24, 2024 at 5:44 | comment | added | Simon Geard | It's also the only option that really works. _aPI just looks weird, and _API disrespects the rule of starting with a lower-case letter. | |
| Jul 23, 2024 at 23:22 | vote | accept | BeeFriedman | ||
| Jul 23, 2024 at 21:20 | history | answered | JMekker | CC BY-SA 4.0 |