2 ms·
If you use Store interfaces that are specific to the needs of the client, rather than building one universal Store that covers every possible use case, isn't it
by ptx 3y ago
If you use Store interfaces that are specific to the needs of the client, rather than building one universal Store that covers every possible use case, isn't it fairly easy to modify that abstraction when the need arises? (Sort of the same idea as "backend for frontend" compared to a completely general backend API.)
- dontlaugh 3y agoThose needs will change. Requirements will come that are easy to implement efficiently in terms of SQL queries, but impossible through the abstraction. You may then be able to come up with a new interface, which requires you to change your existing code. Just like ORMs, such interfaces can be useful, but have the cost of limiting your options.