Fork me on GitHub
#datomic
<
2017-09-24
>
ezmiller7703:09:56

@favila , missed your comment in response to my question about schema naming conventions. I think my :tag was meant to be equivalent to your :tag/name. Is the idea that yours is more explicit? The domain tag indicates what the entity is; whereas 'name' is the property of the domain. So : domain/property is the convention? I have also seen the use of a . in some cases. Do you ever use that? Is there some canonical basis to the conventions being used here?

favila20:09:23

It mirrors the conventions datomic itself uses e.g. :db/cardinality :db.cardinality/one) and is a natural fit with clojure keyword and symbol namespace naming @ezmiller77

favila20:09:20

I was confused in your example that you said a tag was an entity but the attribute was a keyword type

ezmiller7722:09:01

> you said a tag was an entity but the attribute was a keyword type good point!

ezmiller7722:09:16

That makes sense that the conventions mirror datomic itself. In this example -- :db.cardinality/one -- what is the . saying?

favila22:09:36

@ezmiller77 think java package names

ezmiller7722:09:00

@favila: I'll look it up. I haven't used Java since college. :0)