πΎ Archived View for bbs.geminispace.org βΊ s βΊ programming βΊ 21471 captured on 2024-12-17 at 15:10:26. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
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.
Nov 02 Β· 6 weeks ago Β· π tenno-seremel, jutty Β· π 1
π satch Β· Nov 02 at 13:57:
what do you prefer? Hyphens?
π digler Β· Nov 02 at 14:05:
camel case good, naming variables like java bad. Hope this helps direct your ire at the real problem.
π₯οΈ mrrobinhood5 [OP] Β· Nov 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 Β· Nov 02 at 15:37:
camel case doesn't offer enough contrast between word boundaries, compared to snake case or kebab case
π digler Β· Nov 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 Β· Nov 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 Β· Nov 03 at 00:03:
clseiboldIthinkwe'llhavetoagreetodisagreethatwrittenhumanlanguagesexistingforatimewithoutspacesisagoodargumentfornotneedingspacesbecausethelastdevelopmentinthatveinwasaddingspacesandneverlookingback
π satch Β· Nov 03 at 07:26:
ItIsConsiderablyEasierToReadCamelCaseThanAllLowercase
π» mediocregopher [...] Β· Nov 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 Β· Nov 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 Β· Nov 04 at 22:45:
yall_are_talking_like_youve_never_seen_an_underscore