Welcome to the Holy Dev newsletter, which brings you gems I found on the web, updates from my blog, and a few scattered thoughts. You can get the next one into your mailbox if you subscribe.What is happeningThis has been a month of HTML and CSS tinkering. I have fixed my online Clojure & Fulcro editor to properly support dark mode, fixed headings to show the self-link icon only on hover, and added a submenu to the "Tumblr" menu item to search through its content (more on that below).I have long desired the ability to search through my "gems from the web" links, and finally I have implemented it thanks to PageFind and a custom indexer. The index thus produced is copied to my site and searchable at /devlinks. Fun fact: currently, PageFind only supports custom indexers in JavaScript and not Rust (yet) 😭 but JS has weird syntax and misplaced parentheses 😹 so I have used Borkdude’s Squint to be able to write Clojure syntax that gets compiled to JS. (Originally, I hoped it had built-in EDN, which it doesn’t, and I had to pull in the edn-data lib, but I stuck with it anyway, because Clojure.) It took some effort to find how Clojury I could write the code and when to just use JS functions but it turned out fine in the end: build-pagefind-index.cljs. It takes under 5s to index my over 1k entries. Sweet. The search and UI could be improved but it is pretty decent, and so much better than grep-ing through the EDNs. I can search for a topic and use tags to narrow down to e.g. "clojure" and "library" and "webdev".On the Fulcro side, I made a small fix to fulcro-rad-datomic to make it possible to get the db/id of entites. I extract the time portion of that to sort them by time when I back up orders to a Google Sheet so that newer entities are always added at the end (the thought being that I could eventually implement incremental backup, instead of wipe out & insert all).I have also spent some time learning about and playing with Rama’s Clojure API, but far less than I wanted to.
No pages have linked to this URL yet.