Blog posts index page 6

Heroicons from ClojureScript

Update 2022-02-20: Requiring single icons using :refer causes ALL Hero icons to be included in builds (even optimized). Instead, use :as (multiple times). Examples below have been updated.

In my opinion, Clojure and ClojureScript is lacking in the documentation department, especially when it comes to integrations with things outside the Clojure ecosystem.

Read more...

Realtime DB synchronization to frontend

Midjourney prompt: A database silo on the left and with minimalist simple modern UI frontend dashboard with sparse data points on the right. Between them flows sparks of data.

I’ve set out to solve: How to synchronize “low volume” parts of a database to a frontend in real-time, exclusively for reads. In this scenario, “low volume” means few entries with a low update frequency. Let’s say we’re talking about less than a thousand entries affected by fewer than ten updates every minute across all entries.

Read more...

Why do we allow poor software quality?

Midjourney prompt: Top down view of a wooden table top with one half clean and with neatly stacked papers while the other half is a mess. The mess consist of pensils, curled paper, coffee stains and trash. Colorful oil painting. Midjourney edit prompt several: 1. Clean wooden table top with neatly stacked paper and a single pencil. 2. Messy wooden table top with trash like curled paper, stains half eaten fruit and a broken pencil. 3. Colorful wooly yarn on table. Poor software quality stems from inexperience, time constraints, and software decay, but these can be countered by prioritizing quality. Not prioritizing quality leads to inefficiencies like slow delivery and higher costs. Investing in maintainability ensures long-term success. Read more...

Creating a Clojure client library for InfluxDB

I’m working on a project where a time series database makes sense and the choice fell on InfluxDB. I found mnuessler/influxdb-clojure an aged Clojure wrapping an older version of the Java InfluxDB client. Being all excited about diving into this new area I thought it would be best to leverage the existing efforts put into making InfluxDB accessible in Clojure. It took me a while to realize that I wasn’t comfortable with all the layers put between me and InfluxDB server.

Read more...

Recent findings on Clojure testing

These days I’m spending time looking into testing in Clojure. I’ve been writing my share of test cases in PHP at work. There we have several tests “freezing” time or mocking services. Both practices are common and something worth learning for Clojure.

Read more...