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
@sassdawe @anselmschueler @gavi no.
Kinda like randomly mixing upper- and lowercase in a regular text is bad and ruins the benefits of uppercase and lowercase letters making text unnecessarily hard to read.
To me mixing two styles like #KebabCase and #CamelCase makes it way less readable, harder to learn, easier to mistype thus harder to review amd debug.
There's a reason why #MSDOS was case-insensitive / uppercase-only, and there are reasons #unix-esque shells use case-sensitive, lowercase-only.
Same for invoking commands like [command] [options] [source] [target] making it trivial to transfer knowledge, quickly ramping up speed and efficiency due to conventions like -v for verbose output and adding more v 's to it for more detailed debug info...
OFC there are exceptions like dd where Source and Target are passed on as options but even then they're few, far in between and easy to memorize..