What is the difference between PascalCase, camelCase, Kebab-case, and Snake_case?

It all started in programming all the way back in the 90s, but it is very useful in today's world of #hashtags, most specially in the #fediverse.

Let's go over each.
1. #PascalCase. First letter of every word should be capitalised.

e.g. #ThisIsYetAnotherExample

2. #camelCase. First letter of the first word should be in lowercase. Every other word after should be capitalised.

e.g. #thisIsAnExample

3. #Kebab-case. Words are separated with a hyphen.

e.g. #this-Is-an-Example

4. #Snake_case. Words are separated with an underscore.

e.g. #This_is_An_example

---

Most #SNS software and apps will not convert Snake_case and Kebab-case hashtags into an active link, so these two are rarely used.

PascalCase is the preferred format as it makes it very easy to read hashtags with multiple words. A camelCase #hashtag is fine as well.

Well, that's as short as it can be.

Most of my fediverse software (at least since Friendica) handles any combination of the above; and also allows multi-word hashtags wrapped in quotes. We do normally ignore a trailing period or exclamation or question mark in a tag since these often mark the end of a sentence and usually weren't intended to be part of the tag. We also normally ignore strictly numeric hashtags like #1 - however you can make a hashtag including any of these characters by using the quoted form.

@mike

Ah, @youronlyone - There we have it Yuki, from the Man himself that created #Friendica, #Hubzilla, #Streams, #Red_Matrix, #Zap, and #ZOT (and so much more)!

Thanks Mike! Not just for that tidbit, but all the remarkable things you've done for us!

Kindest regards,

#tallship

.