Fork me on GitHub
#cljdoc
<
2022-04-15
>
rvalentini15:04:51

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)15:04:13

I shooooould be able to look at this later

Cora (she/her)15:04:20

very excited to be using postgres

Cora (she/her)15:04:22

RèWRïTÉ -> rewrite-clj

lread15:04:20

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

💜 1
🥳 1
lread16:04:40

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

Cora (she/her)21:04:21

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

Cora (she/her)21:04:43

oh, I suppose it's in the ns docstring

Cora (she/her)21:04:16

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

today-i-learned 1
💯 1
lread21:04:01

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

lread21:04:51

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

Cora (she/her)21:04:53

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

Cora (she/her)21:04:34

❯ 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'

lread21:04:12

Try deleting your .parcel-cache

Cora (she/her)21:04:00

aaaand there we go

Cora (she/her)21:04:07

I really haven't used parcel much

Cora (she/her)21:04:24

yet another mysterious js build system

Cora (she/her)21:04:36

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

lread21:04:51

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)21:04:19

webpack has resolvers, too

Cora (she/her)21:04:03

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)21:04:16

but also strange magick

lread21:04:11

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

Cora (she/her)21:04:36

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

lread21:04:33

It is a salve for my addled mind!

Cora (she/her)21:04:27

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)21:04:56

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)21:04:22

it's particularly painful for large data structures

Cora (she/her)21:04:08

I'm really excited to use this on more things

lread22:04:12

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)22:04:06

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