HTTP/2 push lets the server send a resource before the browser asks, which sounds like it should remove a round trip and in practice often sends something the…
Iterating an object has meant Object.keys() and an index lookup, which names the key twice and reads badly next to the array methods it sits beside. Both return…
Handling two unrelated exceptions the same way meant either duplicating the catch block or introducing a common interface for the sole purpose of catching them together. The variable…
A function returning an associative array returns array as far as any type system is concerned, so nothing can check the keys. A docblock with a shape gives…
Choreography has each service react to events and know nothing about the whole; orchestration has one component call the others in order. The first is presented as the…
Expressing “index this exactly, do not tokenise it” used to be “type”: “string”, “index”: “not_analyzed”. From 5.0 the string type is split in two and the intent is…
Two customers with the same name are different customers; two amounts of 49.00 TRY are the same amount. That distinction decides equality, mutability and whether the thing needs…
Options registered with register_setting() can now appear on /wp/v2/settings, which turns a plugin’s configuration into something an admin interface elsewhere can read and write without a bespoke endpoint.…