After using DOM-centric, declarative, custom elements/components, looking back at code from MVC/Templating libraries will make you nauseous.
@csuwldcat its not a dom-specific problem. Keeping truth in the view is always more complicated
-
-
@seanmonstar the only "truth" is on the server or in persistent client storage, other than that, the only issue is a different mgmt paradigm -
@csuwldcat new dom elements are fantastic, but you still need structure to make complicated webapps less complex.
- 3 more replies
New conversation -
-
-
@seanmonstar don't get me wrong, I am not saying *all* data/state should exist on DOM objects, only that which pertains to specific nodes. -
@csuwldcat I agree, the state of each dom node should be part of the node itself. then the JS app code can keep track of what that should be
End of conversation
New conversation -
-
-
@seanmonstar for instance, I wouldn't create a random element to act as a global event observer, that should be a globally-aware JS object.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.