atomic-data-docs icon indicating copy to clipboard operation
atomic-data-docs copied to clipboard

Consistency between shortnames and URLs, or kebab-case vs camelCase

Open joepio opened this issue 5 years ago • 1 comments

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.

joepio avatar Oct 30 '20 22:10 joepio

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.

joepio avatar Feb 23 '21 15:02 joepio