Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a name for dot-separated case?

We have camelCase, PascalCase, snake_case, and kebab-case. Is there a name for dot.separated.case?

Maybe there isn't a name for it, maybe I can't properly word my question for Google, but I can't find anything for it.

like image 655
Dillon Ryan Redding Avatar asked Mar 13 '18 18:03

Dillon Ryan Redding


People also ask

Why is it called PascalCase?

Pascal case naming convention The term Pascal case was popularized by the Pascal programming language. Pascal itself is case insensitive, so the use of PascalCase was not a requirement. However, it became standard convention for Pascal developers, as it improved the readability of code.

What is CamelCase vs PascalCase?

Camel case and Pascal case are similar. Both demand variables made from compound words and have the first letter of each appended word written with an uppercase letter. The difference is that Pascal case requires the first letter to be uppercase as well, while camel case does not.

Why is it called camel case?

What is CamelCase? CamelCase is a way to separate the words in a phrase by making the first letter of each word capitalized and not using spaces. It is commonly used in web URLs, programming and computer naming conventions. It is named after camels because the capital letters resemble the humps on a camel's back.

What is PascalCase example?

What is Pascal Case? Unlike the previous examples, names in pascal case start with a capital letter. In case of the names with multiple words, all words will start with capital letters. Here are some examples of pascal case: FirstName and LastName .


1 Answers

The "dot case format" or "dot notation" is the common denotation here. The format often used in property files, resource-bundles or yaml-files.

It's basically a convention that makes it easier to see what properties are related.

For example:

person.title="Title" 
person.surname="Surname" 
person.job.description="Some description"

You can easily collect similar properties by filtering the prefix like 'person.' to only see the properties defined for a person.

The dot.case format is also used in maven to name properties. E.g:

${project.build.directory}

See also the maven pom properties

like image 73
Ralph Avatar answered Dec 06 '22 17:12

Ralph