mercredi 31 août 2016

Command pattern use case?

What are some example use cases where the command pattern may be of use? I've been reading about it, and I have a good idea on how to implement it. But It's a big vague when it comes to knowing when to use it.

One of the problems it solves is to decouple the API of a class. But what does that imply exactly? What's the disadvantage of calling an object's methods directly?

Aucun commentaire:

Enregistrer un commentaire