Fork me on GitHub
#datascript
<
2024-01-30
>
seepel01:01:16

I’d like to spin a colleague of mine up on datascript. In particular the bit about how datoms fit together entities. What is the best resource I can send him?

Quest03:01:05

If you just mean datalog syntax then perhaps https://www.learndatalogtoday.org/ Or did you mean something more specific about datascript's implementation?

seepel03:01:28

The thing I find most useful and approachable is actually more the transaction syntax and entity api rather than the query syntax. I think I'm looking more for a guide that explains transactions and pull first.

Quest03:01:02

Hmm, I don't know anything off the top of my head. Datascript's .md on this is a little short & much of the library assumes Datomic familiarity/explanation https://github.com/tonsky/datascript/blob/master/docs/tuples.md https://docs.datomic.com/pro/transactions/transactions.html has some good details but a few irrelevant sections

seepel04:01:38

I often think of @U050UBKAA's section "No Queries" in his blog post about datascript 2. https://tonsky.me/blog/datascript-2/ Every tutorial seems to start with getting to datalog queries as fast as possible. But a datascript with no queries means you can get into this business without having groked core.logic.

seepel02:01:14

Thanks for all the content ❤️