techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#camelcase

0 posts0 participants0 posts today

Question aux personnes concernées et/ou expertes en accessibilité numérique :

Je me rappelle, il y a longtemps, que le camelCase (mettre une capitale à chaque nouveau mot) était bien mieux pour les hashtags. Cela facilitait la lecture, notamment avec les lecteurs d'écran.

Est-ce toujours le cas ?
Edit: Oui

(Je découvre d'ailleurs sur Wikipedia que j'utilise surtout le "PascalCase" puisque je mets aussi une capitale au 1er mot.)

Replied in thread

@angelastella

It's fine for code but also (a) harder to explain/teach, (b) harder to automate, (c) badly supported on Mastodon (incremental search usually smashes case).

I think Mastodon has gotten better at preserving #CamelCase in hashtags. #GoToSocial is working on it, it's still really bad right now (always flattening/tolower()-ing).

I can see being a bit harder to explain/teach, although I'm not sure what cases of automation you're referring to.

I guess my main thing (and perhaps it's a silly one) is that _ is harder to reach than just capitalizing (and not spacing out) the next word. XD

I have no issues with Pascal (Borland's implementations and docs were excellent), but I had to learn C immediately afterwards like everyone else.

I used Borland on the PC and Symantec/THINK on the Mac. Both absolutely lovely.
Symantec Pascal on the (emulated) mac was actually a stepping stone towards @neaoire@merveilles.town's development of #uxn, IIRC. They even developed a 3d game in Pascal on the Mac (heavily accelerated, of course)

Replied in thread

@h3mmy @rootsandcalluses is this the way to pedantry corner? Shall we head there together?

Camel case is the first letter of every word after the first capitalized. #camelCase. The first letter of every word, including the first is Pascal case: #PascalCase.

These are both terms of art in programming. Pascal case, in particular, comes from the Pascal programming language.

Title case is different in that minor words aren’t capitalized, and is used in literature (sort of, certainly not programming) for titles and headlines:

Netizens Discuss Capitalization in Pedantry Corner: Homo sapiens Mid-conversation Share

The above title confioms to the Chicago Manual of Style (whose title also conforms) by not capitalizing 4 of 11 words.

Now to make this useful: both camal case and Pascal case address the issue at hand; title case doesn’t, but the expression may be useful to communicate the idea of Pascal case to a general audience.

References:

learn.microsoft.com/en-us/dotn

en.wikipedia.org/wiki/Title_ca

Capitalization Conventions - Framework Design Guidelines | Microsoft Learn
learn.microsoft.comCapitalization Conventions - Framework Design GuidelinesApply capitalization conventions for identifiers, compound words, and common terms. Understand how case sensitivity works in .NET.
Replied to Hippie

@Hippie Das klingt jetzt vielleicht zunächst etwas kleinlich, aber wenn auch der erste Buchstabe immer ein Großbuchstabe wäre, nennt man es #PascalCase (oder UpperCamelCase) bei #camelCase (eigentlich LowerCamelCase) hingegen ist der erste Buchstabe immer klein. Finde ich wichtig, wenn man einen "Styleguide" verabschieden würde, schon bei der Definition präzise zu sein. Sonst ist das Ergebnis nachher uneinheitlich.
@OskarImKeller @wurzelmann