Uncategorized

  • Assert against the database, not against the response

    A feature test asserting a 302 and a flash message proves the controller ran. It does not prove the order was created, and it passes just as happily…

  • systemd timers instead of cron

    A cron job that fails writes to a mail spool nobody reads, has no record of when it last ran, and starts a second copy if the first…

  • Rewrite rules are cached, and that is the whole problem

    The rewrite rules are computed once and stored in an option, so a newly registered post type or endpoint returns 404 until something regenerates them — and the…

  • Healthchecks as the dependency mechanism

    With depends_on conditions gone, a healthcheck is how one service learns another is usable — and it is more honest, because it tests the thing rather than the…

  • Blade components before they were components

    @include passes variables and shares the parent scope, which means a partial silently depends on whatever happened to be defined where it was included. @component takes a slot…

  • gap only works in grid for now

    gap is the property that finally removes margin arithmetic from layout, and this year it applies to grid containers only — a flex container ignores it entirely. The…

  • Subgrid does not exist yet, and the workaround

    A card containing a title, body and footer will not align its rows with the card beside it, because each card is its own grid and knows nothing…

  • Log levels mean nothing without a written convention

    Every project has eight levels available and uses three, inconsistently, so error means “something a developer should look at” in one service and “a customer typed the wrong…

  • Filebeat handles rotation; tail does not

    A shipper that follows a file by descriptor keeps reading the rotated-away file and never sees the new one; a shipper that reopens by name misses whatever was…

  • grid-template-areas makes a layout readable

    Placing items by line number works and produces a stylesheet nobody can picture. Named areas draw the layout in the source. The ASCII picture is the documentation, and…