Uncategorized

  • A module boundary that is a directory and a test

    A boundary everybody agrees on and nothing checks is a boundary that will be crossed within a fortnight. A directory is a convention and a test is a…

  • The method that stopped overriding anything in 2019

    #[Override] in 8.3, and what it asserts. A subclass method dead since a parent rename four years ago, with a bug report closed as not reproducible.

  • Offsite copies, and the egress bill

    A second copy in a second provider, and a bill that arrived a month later showing the transfer cost more than the storage. Egress pricing makes a naive…

  • Caching by lockfile hash, and the key that never matched

    A cache step with a hit rate of zero for four months, because the key included something that changed on every run. A cache that never hits fails…

  • A custom post type the site editor can template

    A post type registered without the right arguments is invisible to the site editor, which means its template is still a PHP file. show_in_rest is the switch that…

  • CSS nesting in the browser, and a build step removed

    Native nesting reached broad support this year, which removes the main reason a small stylesheet needed a preprocessor. The & is required before a type selector in the…

  • A flame graph that pointed at autoloading

    Eleven per cent of a request spent in the autoloader, on a machine where the optimised classmap had not been generated. The authoritative flag turns every autoload into…

  • An error shape agreed once, and used everywhere

    Four error formats across one API, because each was invented by whoever wrote that controller. RFC 7807 is a small specification and the value is not its contents…

  • A composite index in the wrong column order

    An index on (created_at, status) serving a query that filters on status and ranges on date, which uses the first column and stops. The rule is equality columns…

  • The test that failed only when run alone

    The usual failure is a test that passes alone and fails in the suite; this was the reverse, and the reverse is more interesting. A test that depends…