youronlyone,
@youronlyone@c.im avatar

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

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

e.g. #thisIsAnExample

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

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

  1. #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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • fediverse
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • cubers
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • InstantRegret
  • Durango
  • JUstTest
  • everett
  • tacticalgear
  • modclub
  • anitta
  • cisconetworking
  • tester
  • ngwrru68w68
  • GTA5RPClips
  • normalnudes
  • megavids
  • Leos
  • provamag3
  • lostlight
  • All magazines