Publishing to a broker inside a database transaction is two systems and one commit, which cannot be made atomic. The index on (published_at, id) with nulls first is…
A filter that gained a fourth argument, and our callback declared with three, which is legal and silently receives less than it could. PHP does not complain when…
A test that fails between 23:00 and midnight, once a year, and passes on every rerun. PSR-20 standardised this interface in 2022, which is worth adopting for the…
Every broker worth using delivers at least once, and every consumer that does not say how it handles that is claiming something it has not checked. Writing the…
A global threshold of 80% says nothing about whether the code that matters is tested, and it is satisfied by testing the code that is easy. Different code…
Mocking a client library’s own interface couples every test to that library; faking the standard interface does not. Throwing on an unstubbed request is the design decision that…
Subscribing to an external store with useEffect and useState tears under concurrent rendering, which is what this hook exists to prevent. The snapshot function must return a cached…
Changing an analyser means reindexing, and reindexing in place means a search index that is half old and half new for twenty minutes. The application must only ever…
A billing module everybody agrees should be separate, a team of four, and 88 classes that reference it. The boundary, drawn in code rather than in conversation.