Data-oriented APIs are inherently easier to reason about. A struct or an array can't "walk away on its own" (invoke side effects, set hidden flags, etc.). It's just Plain Old Data. Better to construct an object yourself than manipulate it at a distance via opaque method calls.
-
-
Replying to @lukechampine
How do you feel about SQL APIs? I've seen a couple of companies exposing a modified SQL interfaces (w/ custom functions).
1 reply 0 retweets 0 likes
Replying to @seveibar
I haven't used SQL in a serious capacity yet so I can't really say. But SQL is good insofar as it requires you to explicitly specify the data you want. The opposite of this is "chaining APIs" where you incrementally build an object via 10 methods that are doing who-knows-what.
12:22 PM - 20 Dec 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.