I'd like to express my disdain and physical repulsion to reading or even looking at camel case but I have no experience in textually representing so much negativity, so I guess a mild Eww would do for now. Any help is appreciated, thank you.
2024-11-02 Β· 2 years ago Β· π tenno-seremel, jutty Β· π 1
11 Comments β
π satch Β· 2024-11-02 at 13:57:
what do you prefer? Hyphens?
π digler Β· 2024-11-02 at 14:05:
camel case good, naming variables like java bad. Hope this helps direct your ire at the real problem.
π₯οΈ mrrobinhood5 [OP] Β· 2024-11-02 at 14:28:
@satch single name variables. then if you need an adjective, pretty_variable.
@digler I think it has to do with the appearance, like, when you spot a tile on the floor that is not aligned, or a different color and it causes discomfort
π soweli-iki Β· 2024-11-02 at 15:37:
camel case doesn't offer enough contrast between word boundaries, compared to snake case or kebab case
π digler Β· 2024-11-02 at 17:53:
@mrrobinhood5 I won't say I normally choose camel case over snake case when I can, but sometimes you run into situations where only alphanumerics are allowed for variable names, so it's better than terse, one word variables in at least some cases. My real gripe is when variables are "over-named" ObjectFactoryFactoryMutatorObject type things.
π clseibold [π] Β· 2024-11-02 at 18:17:
I personally hate snake case - it takes so much more effort to type that it slows me down dramatically. Camel case is perfectly readable for me.
Interestingly, humans lived without word-boundaries for a very long time, called scriptio continua (continuous writing). Spaces were first used in Latin-descended languages in the 7th Century CE, around when some of the first Old English literary works were being written, but before that, and after scriptio continua, there were other word boundary symbols (interpuncts). Hebrew used spaces much earlier during the Babylonian Exile when the writing system was switched to Aramaic. Anyways, my point is that I think it's perfectly reasonable to have capitals as a divider, and in fact it's possible to read english to some extent without any word boundary dividers (although no doubt it's more difficult, yet not totally dissimilar to how one hears language spoken in general).
π digler Β· 2024-11-03 at 00:03:
clseiboldIthinkwe'llhavetoagreetodisagreethatwrittenhumanlanguagesexistingforatimewithoutspacesisagoodargumentfornotneedingspacesbecausethelastdevelopmentinthatveinwasaddingspacesandneverlookingback
π satch Β· 2024-11-03 at 07:26:
ItIsConsiderablyEasierToReadCamelCaseThanAllLowercase
π» mediocregopher [...] Β· 2024-11-03 at 08:31:
fwiw both digler and satch's messages are perfectly readable to me π I think snake case is ugly as hell, kebab case is my preferred but lot of languages don't allow it, camelCase is my runner-up
π satch Β· 2024-11-03 at 11:12:
I find snake case very annoying to type. Itβs fine to read, though.
Kebab is ugly but easier to type.
Camel case works just fine. I quite like Goβs conventions.
β―οΈ dragfyre Β· 2024-11-04 at 22:45:
yall_are_talking_like_youve_never_seen_an_underscore