A contemporary online software structure
Write-only DOM. No county / data is see through the DOM. The application form outputs HTML and businesses on items, but there’s nothing ever browse from the DOM. Storing state during the DOM gets hard to handle very quickly: it is far better to have one place in which the information life and give the UI from information, especially when equivalent information must be revealed in multiple locations in the UI.
Models as the solitary source of fact. As opposed to saving data within the DOM or perhaps in random objects, there’s a couple of in-memory sizes which portray most of the state/data during the program.
Opinions note unit improvement. We desire the opinions to reflect the content in the items. When numerous panorama be determined by a single design (e.g. when a model improvement, redraw these horizon), we do not want to manually keep an eye on each based upon view. As opposed to manually monitoring products, there clearly was an alteration occasion system whereby vista receive changes notifications from brands and handle redrawing on their own. (more…)