lundi 3 avril 2017

Command pattern vs. Data Access Object pattern

I'm sort of new to design patterns and I'd be happy for any feedback to this question ("This is too vague, because..." or even spelling mistakes).

I've learned about the command pattern and have been confronted with the data access object pattern and to me it seems like two very similar things with differenct names.

As far as I can see, the command pattern says to let objects with similar behavior talk to a layer, which is supposed to do whatever to the correct target.

The data access object pattern does the same in my opinion, only focused on data sources.

Is the DAO a command pattern, only more specified?

Aucun commentaire:

Enregistrer un commentaire