3 ms·
The examples also do the important job of filling in gaps that the reference docs may accidentially leave - one common one for http APIs I've found is how non-s
by ekimekim 7y ago
The examples also do the important job of filling in gaps that the reference docs may accidentially leave - one common one for http APIs I've found is how non-string query params are encoded (eg. this value is a list: do I give it multiple times? Do I comma-separate? Or worse: is this enum value a string or an integer?).
What's especially fun is when the "code examples" for a http API use a client library which hides the actual http API, so they aren't examples of using the API at all...