3 ms·
Providing you’re correct about the DB choice outlasting the lifetime of the software, there is nothing about that approach that’s incompatible with SOLID. Ulti
by hyko 6y ago
Providing you’re correct about the DB choice outlasting the lifetime of the software, there is nothing about that approach that’s incompatible with SOLID.
Ultimately the goal of SOLID is to be able to change any important aspect of the software independently from any other. If the DB is going to outlast the business logic you’re writing, there’s no problem having it depend on the DB concretely.
Separating the what and the how does have the effect of changing how you approach reasoning about a program though, so SOLID is not without penalty.
Edited for clarification.