3 ms·
> APIs are contracts. Not the pinky promise of "I'll do my best guess" You have never had to work with PHP backends, have you? JSON in PHP is a flustercluck.
by cookiengineer 5mo ago
> APIs are contracts. Not the pinky promise of "I'll do my best guess"
You have never had to work with PHP backends, have you?
JSON in PHP is a flustercluck. Undefined, null, "" or "null", that is always the question.
If you use a typed Go/Rust client and schemas, you usually end up with "look ahead schemas" that try to detect the actual types behind the scenes, either with custom marshallers or with some v1/v2/v3 etc schema structs.
It's so painful to deal with ducktyped languages ... that's something I wouldn't wish on anyone.
- groundzeros2015 5mo agoYes I have. You learn the quirks and then it’s ok.