I was today years old when I learned the term "kebab case"
#programming #case #naming #camelcase #snakecase #kebabcase #variables #developers #tech
I was today years old when I learned the term "kebab case"
#programming #case #naming #camelcase #snakecase #kebabcase #variables #developers #tech
#TIL that #SnakeCase is a less frequently used tagging scheme on the #fediverse.
This could be due to that some services break their internal tagging schema, e.g. #Minds doesn't work well with #KebabCase.
Or it could be due to the laziness of the users and subjectively arguing that #snake_case doesn't add to the readability of #PascalCase or #camelCase tags.
In return the argument is that snake_case can add value if the tag has a not obvious word break, especially if the tag is completely written in lowercase or UPPERCASE.
Or if the the underscore replaces a different character other than space like slash, pipe, hyphen, etc.
And in AReallyLongTag / a_really_long_tag it could aid readability.
Thus if one wants grouping and discoverability of posts while creating a brand identity consider using snake_case tags.
#TIL about "kebab-case": https://developer.mozilla.org/en-US/docs/Glossary/Kebab_case
Awesome name! 😄
Kebab case is a way of writing phrases without spaces, where spaces are replaced with hyphens -, and the words are typically all lower case. The name comes from the similarity of the words to meat on a kebab skewer. It's often stylized as "kebab-case" to remind the reader of its appearance.
Oh heck!
🦀 A case conversion library for Rust.
📚 Docs: https://docs.rs/heck
⭐ GitHub: https://github.com/withoutboats/heck
#rustlang #case #conversion #library #kebabcase #snakecase #opensource