mardi 29 juin 2021

why couldn't model communicate with view throuth interface in MVC

In classic MVC pattern, the model communicate with view throuth event notify.

But it seems that by defining some basic interfaces of view, and model communicating with view throuth interfaces is also feasible and could still decouple the model and concrete view.

However, I've never heard about any MV* pattern use interface between view and model , is there any obstacles by communicating in such way?

Aucun commentaire:

Enregistrer un commentaire