2 ms·
I think it's really interesting that I find this insightful: > The database really is an API, in that client code depends on it and its structure will be diffi
by wwweston 8y ago
I think it's really interesting that I find this insightful:
> The database really is an API, in that client code depends on it and its structure will be difficult to change once you go live, whether you want that to be true or not.
And then have a different conclusion than this:
> Writing the API before code that depends on it seems like an inherently good idea to me.
I'd guess it comes down to differences about the value of top-down and bottom-up approaches to systems.
My experience is that top-down thinking usually is a better guide to creating the API you actually want to call -- writing the API calls you wish you had in the flow of the code, and then making them real.
But then again, that's application-specific context, and may not lead one to answer the question "What if they don't want to use my UI or interface, or they want to automate something?"