User Interface Design Patterns (UI-DP)


UI Design Patterns

Model-View-Whatever (MVW) - is not an actual UI Design Pattern but a term coined to refer to the various Model-View-* patterns. MVW is sometimes mistakenly referred as Model-View-Controller (MVC)

Model-View-* Hierarchy

MVW
/ \
MVA MVC_____
| / \ \
MVP Flux MVC1 MVC2
| |?
MVVM/MVB Redux

Link to original

UI Design Patterns - History

In 1978, Trygve Reenskaugh and Adele Goldberg coined the name Model-View-Controller (MVC)

Real and Pure MVC is unidirectional

More than a decade ago, when server side frameworks like Apache Struts implemented a variant of MVC called Model-View-Presenter (MVP) pattern, they made every request go through controller and every response come back through controller. Everyone continued calling it MVC. Due to inherent nature of the web, any changes in the model cannot be propagated to the view without view sending a request or update. So Pure MVC is not implemented. Rather MVP is implemented.

Few years back, when frameworks like Angular, Ember, Knockout implemented MVC on front end, they implemented another variant of MVC called Model-View-ViewModel (MVVM) pattern which introduced databinding. A few folks continued called it MVC. (and few realized that terminology is not important and called it Model-View-Whatever (MVW)), none of them implemented pure MVC.

When React was born, they took the opportunity to implement pure MVC (not MVP or MVVM), and renamed it as Flux with few changes.

UI Design Other