5 ms·
> What do you think? Have we all been missing something like this in api design? No. It's hard to design, maybe harder to design an API and perhaps a misunders
by hakre 6y ago
> What do you think? Have we all been missing something like this in api design?
No. It's hard to design, maybe harder to design an API and perhaps a misunderstanding when APIs are designed for others or an API just for an API.
As others have already commented about the leaking abstractions (The Law of Leaky Abstractions) which is a good description IMHO to make the non-boundary clear even when it was (non-)intended.
This can be found as well in Hyrum's Law, which IMHO is from a different point of view but reminds as well that the concept to just API for API is conceptually broken.
> Sqlite is all like, "yeah but we need to know what you're abstracting or everything is terrible."
I'm wondering where you pick the terrible from, I have not found that in the article. And it's absolutely not "all like". The paper describes common problems with file-systems on what Sqlite does which is standard programming - at least for Sqlite authors.
You seem not to be much aware of these kind of problems and with all due respect, this creates the impression that you have not experienced this much yet. This aligns well with the localization by yours as something "missing in the design" where I'd like to offer a different view: It's missing practice. To keep the colloquial tone:
Despite what has been missed in API design, we all haven been missing practising writing software.
https://www.joelonsoftware.com/2002/11/11/the-law-of-leaky-abstractions/ https://www.joelonsoftware.com/2002/11/11/the-law-of-leaky-a...
https://www.hyrumslaw.com/ https://www.hyrumslaw.com/