Preloaded files are compiled once at server start and are fixed until php-fpm restarts, which makes a deploy a restart rather than a reload. A restart drops in-flight…
A catch that does not use the error still had to name a variable, which every linter then flagged as unused. Small and genuinely useful for feature detection…
Memoising a callback stops it changing identity between renders, which only matters if something downstream is comparing identities — and by default nothing is. The two have to…
A limit with no feedback means a well-behaved client cannot behave well — it finds out by being refused, and its only strategy is to retry. Retry-After is…
An instrumenting profiler records every function call, which changes the timings it is measuring — small fast functions look disproportionately expensive because the overhead is per call. Sampling…
Offering an alternative appearance for an existing block does not need a new block, a build step or any JavaScript — it needs a registration and a CSS…
Window functions are computed after WHERE and GROUP BY, so a predicate on the result has nowhere to go in the same query block. Putting the restriction inside…
WordPress’s scheduler is a table of events run opportunistically on page loads, and a site that has had thirty plugins over ten years has entries pointing at functions…
Putting a cache inside a repository mixes two concerns and makes the uncached version untestable, and the alternative is a second implementation of the same interface. The decorated…