Hi.
It's called camel case because it has a hump in the middle. Like this - #camelCase
The one with a capital for each word is called #PascalCase, though Pascal itself doesn't enforce this, it's a Pascal programmers' convention.
Hi.
It's called camel case because it has a hump in the middle. Like this - #camelCase
The one with a capital for each word is called #PascalCase, though Pascal itself doesn't enforce this, it's a Pascal programmers' convention.
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.)
@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:
https://learn.microsoft.com/en-us/dotnet/standard/design-guidelines/capitalization-conventions
@Tarnport isn't that strictly speaking #PascalCase ?
What thing bothers you a lot, but it's so petty and unimportant that you'd feel ridiculous "um, actually"ing people about it?
I'll start:
It's #PascalCase, mofos. #camelCase needs a head that's lower than it's humps.
Please DO capitalize the words within a hashtag.
camelCase and PascalCase are two very similar norms that allow words to be joined without hyphenation but distinguished by readers through capitalization of the first letters of words.
The difference is that Pascal Case requires the first letter of the first word to be capitalized but camel Case just insists on the following words. The two terms are often referred to without distinction here though.
Be aware that Mastodon autocomplete will offer up the first version created for a hashtag. So, it’s important to be careful to make sure a hashtag that you type isn’t autocompleted to a version without capitals.
@alan
This just in: for the first time ever, Mastodon app didn’t try to “correct” my hashtag when I typed #PhonyStark. Typically, it would remove the caps. Finally. I’ve been asking for that change forever.
#PascalCase
Should hashtags be #camelCase or #PascalCase?
Lol good case for #CamelCase #PascalCase
Live ginger Germany? Wut?
How not using pascal case or camel case can ruin your brand.
Because Bluesky is not written with a capital S, my screen reader pronounces it as Blueski. So it sounds like some Russian website.
Remember to capitalize combined words in cases where spaces are not allowed, like in HashTags, so screen reader users won't get confused.
In response to the #hashtag casing issue, I've written a script for #MastoAdmin's to try to convert as many of them as possible to #PascalCase automatically:
https://codeberg.org/austinhuang/mastodon-tag-case-corrector
Feedbacks & contributors welcome! (I'm still considering whether I should incorporate recent tagged posts to counter the computerized results.)
@weirdwriter @MoiraEve@mastodon.world @elan @jamesbritt
(2/2)
...switch back to #PascalCase. (I don't use #camelCase as I think it looks weird.)
https://www.freecodecamp.org/news/snake-case-vs-camel-case-vs-pascal-case-vs-kebab-case-whats-the-difference/
Now that we've got this paragraph issue settled, how about my 2 examples, are #UShistory or #USpol o.k. for you to listen to or do you need #USHistory and #USPol? Especially the second one can be misleading for sighted people, as USP (Unique Selling Proposition) is actually a much used acronym, therefore I prefer my personal slight variation.
#snake_case,
#kebap-case,
#camelCase, and
#PascalCase
(1/n)
" I wish all apps made all hashtags pascal case! "
Thanks for sharing this introspective, Robert.
Me, too. In fact, it makes long hashtags more easily readable for "sighted people" as well. ;) It is quite a bit more work, alas, in particular, as my apps try suggesting (and auto-replacing) previously used #Hashtags with all small letters, which I then have to...
@Em0nM4stodon Re 4:
#CamelCase is #PascalCase while #camelCase is the real #camelCase
Ackshully, the term "camelCase" is dromedary-cased (one hump). For a variable to be camel-cased it needs to contain at least two uppercase letters.
To whoever needs to hear this:
Please stop mislabeling #PascalCase as #camelCase.
When the initial letter of *every* word is capitalized, it's pascal case (FooBarBaz). Camel case is when the initial letter of the first word is left lowercase (fooBarBaz).
Lawful Good: #PascalCase
Chaotic Good: #camelCase
Lawful Evil: #lowercase
Chaotic Evil: #SpoNGeCaSE
Always type #HashTags in #PascalCase for maximum #Readability
Don't forget everyone to do your #hashtags as #capitalisedCase or #camelCase or #CamelCase or #pascalcase or whatever , as long as the second third etc word in your #hastag starts with a capital. Apparently it makes it easier for #readers for people that need #accessibility. So said a few people in the #fediverse , I think I believe them. Nb I was surprised to be told that #hashtag is one word so don't capitalise the 'tag'. #cool
Screen readers may well support #camelCase
I suspect that #PascalCase rather than #camelCase may be a Mastodon convention