Reading a stream directly gives every consumer every message. A consumer group distributes entries between members and remembers which ones were handed out and not acknowledged. The pending…
PHP’s sorts are not stable, so two elements the comparator calls equal may come out in either order — and that order can differ between array sizes, because…
A JavaScript dependency without types is either an any, which defeats the point, or a declaration file, which takes ten minutes and only needs to describe what you…
A touchstart or wheel listener may call preventDefault, so the browser cannot start scrolling until the handler has run — which means every such listener delays scroll by…
Materialising a generator with iterator_to_array preserves keys by default, and a generator that yields without a key restarts its counter on every inner traversal — so a nested…
A cron job that fails emails root, which goes nowhere on a modern server, so the standard arrangement is a job whose failures are invisible. Persistent=true runs a…
Caching the rows a query returned saves the database round trip and leaves the hydration, the mapping and the aggregation to happen on every request anyway. Profiling usually…
CommonsChunkPlugin required declaring which modules were common, which meant knowing the dependency graph in advance and updating the configuration whenever it changed. chunks: ‘all’ lets it split synchronous…