W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: Model-driven Views

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 25 Apr 2011 23:32:23 -0700
Message-ID: <BANLkTimiuG2DiUzgHu5k16DZSY3JGQ5L2g@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: public-webapps@w3.org
On Mon, Apr 25, 2011 at 9:14 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 4/22/11 8:35 PM, Rafael Weinstein wrote:
>> Myself and a few other chromium folks have been working on a design
>> for a formalized separation between View and Model in the browser,
>> with needs of web applications being the primary motivator.
>> Our ideas are implemented as an experimental Javascript library:
>> https://code.google.com/p/mdv/ and the basic design is described here:
>> http://mdv.googlecode.com/svn/trunk/docs/design_intro.html.
> The interesting thing to me is that the DOM is what's meant to be the model
> originally, as far as I can tell, with the CSS presentation being the
> view....
> I guess we ended up with too much view leakage through the model so we're
> adding another layer of model, eh?

There's always multiple layers of model in any non-trivial system.  ^_^

In this case, the original "DOM as model" is valid in the sense of the
page as a more-or-less static document, where it's the canonical
source of information.  With an app, though, the data canonically
lives in Javascript, with the DOM being relegated to being used to
display the data and allow user interaction.  MDV is one possibility
for making this relationship cleaner and simpler.

Received on Tuesday, 26 April 2011 06:33:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:19 UTC