4 ms·
It's a shame so many people think of the Data Access Object design pattern as something only Java developers should be using. Using DAOs to provide database-ag
by gamache 10y ago
It's a shame so many people think of the Data Access Object design pattern as something only Java developers should be using. Using DAOs to provide database-agnostic access to your data takes a few moments more at first, but then when you need to move data from $DB_X to $DB_Y, there's a lot less wailing and gnashing of teeth.
Mediocre link on the topic: https://en.wikipedia.org/wiki/Data_access_object https://en.wikipedia.org/wiki/Data_access_object
- ebbv 10y agoI'm not sure what your point is. Do you mean that if only people used DAOs then Parse shutting down wouldn't be a problem? It only encapsulates the problem. You still need to go through a process to switch from Parse to MariaDB or whatever else you switch to. You just don't have to rewrite your whole application. I'm in favor of DAOs and use them myself but they don't have anything to do with what I was talking about.