3 ms·
Writing high quality ergonomic API bindings is a surprising amount of work, especially in statically typed languages. Every API has its quirks, sometimes retur
by the_duke 4y ago
Writing high quality ergonomic API bindings is a surprising amount of work, especially in statically typed languages.
Every API has its quirks, sometimes returns different data, has edge cases for certain calls, has different error reporting patterns, rate limiting, authentication methods, sometimes has intended or unintended breaking changes, ....
Sure, you can usually just manually whip up the code for an endpoint or two in a few minutes , but then you need to continually add endpoins, fix the edge cases, adapt to upstream changes, ...
Good bindings make your life a whole lot easier.
- joshlemer 4y agoCorrect. If we take their point to an extreme, HTTP calls are just bytes sent and received over TCP, so what's the use of an HTTP client library? Just open up a TCP connection and send/receive text to/from the server!