atomic-data-docs
atomic-data-docs copied to clipboard
Consistency between shortnames and URLs, or kebab-case vs camelCase
Currenlty, Shortnames only allow downcased characters and dashes. However, most properties currently use snakeCase.
For example, the https://atomicdata.dev/properties/isA has a path ending of isA but a shortname of isa, which I considered replacing with is-a.
I think a better way to go is to use kebab-case everywhere.
Argument against kebab-case: it doens't work well in ORM style navigation, at least in javascript.
resource.keyName.value
// vs
resource["key-name"].value
But if we go for camelCase, does this mean we should make slugs case sensitive? Probably.
snake_case doesn't have these issues.