Uncategorized

  • Composer 2.7 and the bump command

    composer bump raises the constraints in composer.json to match what is installed, which is either exactly what you want or exactly what you do not. The distinction between…

  • Promise.withResolvers, and a deferred I had hand-rolled

    The deferred pattern — a promise whose resolve and reject escape the executor — written by hand in every project that needs it. The hand-rolled version works and…

  • terraform test, on a module with no tests

    A module used by four environments and verified by applying it and looking at the console. The tagging assertion is the one that earns its place immediately, because…

  • Sampling a generated diff, and what sample size means

    An automated refactor across four hundred files, and a review that cannot read eight thousand lines. Splitting the run by rule and reviewing each separately is what makes…

  • A block style variation instead of a custom class

    A “quiet” button, applied by an editor adding a class in the advanced panel, which nobody could discover and half of them misspelled. A registered style appears in…

  • A vendored file with a licence header and a test

    Copying two hundred lines out of a dependency, and the three things that make that legitimate rather than theft. The licence file, the upstream commit hash and the…

  • The registry we ran ourselves for three weeks

    A rate limit hit at 09:00 every weekday, a pipeline failing intermittently for two months, and the wrong one of three options tried first.

  • A consumer group rebalance during a deploy

    Every deploy restarting six consumers at once, triggering a rebalance that stops consumption for forty seconds. Rolling the restarts is the obvious answer and it is slower, which…

  • The event nobody consumed, published for two years

    An event published on every order, with no subscribers since the service that listened was removed in 2022. Three events with no subscribers and one and a half…

  • An incident log read as an inventory rather than as history

    Three years of incident notes had been written for the record and never read as a data set. The last finding is the one worth acting on: the…