-
Notifications
You must be signed in to change notification settings - Fork 79
Schema naming convention
Ilia Naryzhny edited this page Apr 1, 2015
·
2 revisions
- Name should reflect purpose of a class or property. Use whole words — avoid acronyms and abbreviations (unless the abbreviation is much more widely used than the long form, such as URL or HTML).
- Class names should be nouns in
UpperCamelCase
, with the first letter of every word capitalized. - It's recommended to use some prefix for all classes for the specific data model
- Property names should be in
lowerCamelCase
, with the first letter of every word capitalized.
Type | Wrong | Good | Explanation |
---|---|---|---|
Class | MyClass | Spaces are not allowed | |
Class | MyClass | Should be UpperCamelCase
|
|
Class | Observation | Class name should noun | |
Property | longName | Should be lowerCamelCase
|
Wanna check it out? Use demo server! (Usernames/passwords: admin/admin, writer/writer, reader/reader)