News for hackers. Stuff that matters.
Re:Robust APIs Are Weird by saurik on Saturday June 20, 2020 @05:59AM (#23582972)
Yeah: exactly. Postel has even gone on the record to note how he is being misinterpreted a lot and what he meant was more like "to maximize ecosystem rebustness, make sure to accept as much of the specification as possible including all the optional parts for the things you accept, but prefer to only require and use the common subset of required and generally well implemented functionality for the things you send".
Re:Robust APIs Are Weird by CodesInChaos on Saturday June 20, 2020 @08:13AM (#23583509)
From what I remember his example was a reserved field which you must set to 0 when writing, and ignore while reading to enable extensibility.

In a modern context this would correspond to ignoring unknown keys in json, or ignoring unknown fields in protobuf.

Sadly many interpret this as accepting an ill defined superset of the specification, which then turns into a complex specification as implementations rely on those extensions being handled in a specific way.