
Publish metrics with explicit units and denominators
Calculate a combined request-quality SLI in SQLite, distinguish conditional denominators and fast errors, and bound the result when duration measurements are missing.
The journal / Ideas in progress
Engineering & everyday learningSoftware, systems, and the things I’m learning along the way. From first principles to AI in production.
Find something to readA little theory. A lot of practice.

Calculate a combined request-quality SLI in SQLite, distinguish conditional denominators and fast errors, and bound the result when duration measurements are missing.

Protect concurrent profile edits with a version-checked SQL update, distinguish zero rows from errors, and test conflict resolution and unversioned writers.

Compare scoped row counts, reported-value counts, quantities and identities to expose balanced errors, null changes and shared omissions.

Transfer credits with PostgreSQL, check affected rows, observe commit from two sessions, and reproduce rollback, insufficient funds and repeated-request limits.

Trace changing inventory reads in PostgreSQL Read Committed, compare Repeatable Read, and locate snapshot boundaries at the first query and statement start.

Define what one analytical row represents, keep receipt and line measures separate, and distinguish a missing line from an observed zero with executable SQL.

Protect tenant-scoped membership identity, preserve roles during repeated adds, and reproduce an insert-or-fetch query that returns nothing after a conflict.

Model order identity, reject orphan references, inspect cascades and separate database relationships from the policy for deleting a paid order.