cljdoc

rvalentini 2022-04-15T15:05:51.193389Z

Awesome to see so much activity here lately 🥳. Especially @lee and @corasaurus-hex teaming up to tackle all these issues 💪👏. I've been working a bit on the SQLite->Postgres migration and could use some feedback here before going further. I just opened a WIP PR for this: https://github.com/cljdoc/cljdoc/pull/587

💜 1
🎉 1
Cora (she/her) 2022-04-15T15:16:13.540829Z

I shooooould be able to look at this later

Cora (she/her) 2022-04-15T15:16:20.483149Z

very excited to be using postgres

Cora (she/her) 2022-04-15T15:48:22.930909Z

RèWRïTÉ -> rewrite-clj

Cora (she/her) 2022-04-15T15:48:24.128449Z

love it

1
lread 2022-04-15T15:51:20.609519Z

Gonna go live with my changes to libraries search (which includes popularity ranking). Did lotsa testing, but still, a rather large change. 🤞

🥳 1
💜 1
lread 2022-04-15T16:04:40.366299Z

Looking sweet to me! Lemme know if you notice any library search issues.

Cora (she/her) 2022-04-15T21:25:21.998809Z

I'd really like to understand why we're using the IStorage protocol

Cora (she/her) 2022-04-15T21:25:43.650789Z

oh, I suppose it's in the ns docstring

Cora (she/her) 2022-04-15T21:28:16.203099Z

sometimes it feels like apps, as they develop over time, are less designed as much as evolved. like the recurrent laryngeal nerve in giraffe's there's sometimes things so puzzling that only make sense in light of the app's past

💯 1
1
lread 2022-04-15T21:34:01.575459Z

Before my time, but the IStorage rationale seems to make enough sense to me.

lread 2022-04-15T21:34:51.766129Z

But yeah, when I work on a thing, I notice another several things that sometimes confuse me.

Cora (she/her) 2022-04-15T21:34:53.656409Z

probably handy, even, for the switch we're making

Cora (she/her) 2022-04-15T21:35:32.109079Z

hmmm

Cora (she/her) 2022-04-15T21:35:34.192269Z

❯ npm run dev

> dev
> parcel watch resources/public/cljdoc.html --dist-dir resources-compiled/public/out

🚨 Build failed.

Error: ENOENT: no such file or directory, stat '/Users/cora/Code/cljdoc/resources/public/opensearch.xml'

  Error: ENOENT: no such file or directory, stat '/Users/cora/Code/cljdoc/resources/public/opensearch.xml'

lread 2022-04-15T21:36:12.726049Z

Try deleting your .parcel-cache

Cora (she/her) 2022-04-15T21:36:45.894839Z

kk

Cora (she/her) 2022-04-15T21:37:00.287189Z

aaaand there we go

Cora (she/her) 2022-04-15T21:37:01.875069Z

thanks!

Cora (she/her) 2022-04-15T21:37:07.499089Z

I really haven't used parcel much

Cora (she/her) 2022-04-15T21:37:24.460729Z

yet another mysterious js build system

Cora (she/her) 2022-04-15T21:37:28.804599Z

🙃

Cora (she/her) 2022-04-15T21:37:36.749139Z

it's nice that it kind of all Just Works™

lread 2022-04-15T21:39:51.005139Z

It might be great and powerful, but parcel.js is also very mysterious to me. Like figuring out how to have it ignore opensearch.xml was… well.. not obvious. I waded my way through several git issues where some folks did not seem to see the point of that kind of thing. Fair enough, I guess. Finally found a “resolver” that did the trick!

Cora (she/her) 2022-04-15T21:40:19.051519Z

webpack has resolvers, too

Cora (she/her) 2022-04-15T21:41:03.118479Z

which are kind of cool in that you can have it perform things for certain kinds of imports. like when importing an image it can make sure that it makes optimized versions if they're not on disk

Cora (she/her) 2022-04-15T21:41:16.402839Z

but also strange magick

lread 2022-04-15T21:43:11.422209Z

JavaScript world = overly-confusing to my wee brain. simple_smile

Cora (she/her) 2022-04-15T21:43:36.350029Z

I feel the same about a lot of worlds. at least clojure doesn't change all that quickly

lread 2022-04-15T21:44:33.684499Z

It is a salve for my addled mind!

Cora (she/her) 2022-04-15T21:50:27.230629Z

I'm so glad malli exists now. it gives me the sort of structural descriptions/types/validations I've wanted in clojure for so long. it definitely fills a big gap for me in the language

Cora (she/her) 2022-04-15T21:51:56.091789Z

it was the one part of clojure that really hurt to be without, for me. spec tried to do it but I find it hard to reason about the actual structures that are described via spec

Cora (she/her) 2022-04-15T21:53:22.292849Z

it's particularly painful for large data structures

Cora (she/her) 2022-04-15T21:54:08.732439Z

I'm really excited to use this on more things

lread 2022-04-15T22:04:12.547059Z

Yeah, me too. I’m no spec expert, and I might be totally missing some of its advantages, but I find malli very approachable. And those malli specs are much easier for me to parse at-a-glance.

Cora (she/her) 2022-04-15T22:56:06.494089Z

ugh, pretty sure I'm going to need to use flexsearch and just not do highlighting on matches

Cora (she/her) 2022-04-15T22:56:08.057039Z

for now