Model-View-Intent
The architectural approach we used to build the Wikipedia real-time search is not just another framework’s random approach to programming UI. There’s a design pattern behind structuring code like we did: Model-View-Intent (MVI).
Model-View-Intent is a term coined by the creator of Cycle.js, André Staltz, for an architecture inspired by the Model-View-Controller (MVC) architecture.[23] In MVC we separate the functionality of an application into three components: the model, the view, and the controller. In MVI, the three components are the model, the view, and the intent. MVI is designed to fit the Reactive model of programming like a glove.
MVI being reactive means that each component observes its dependencies and reacts ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access