jeudi 26 novembre 2015

Which "Gang of Four" design pattern is right for this situation?

I'm creating a Django app and I want to be able to communicate with my users via either email or text message. They would choose their preferred mode of communication through their preferences settings. Would it make any sense to use the "template" or "strategy" design pattern to implement this feature? This seems like the type of situation in which a design pattern would be appropriate.

Thanks.

Aucun commentaire:

Enregistrer un commentaire