3 May 2012 sness   » (Journeyer)

A view’s responsibility — a lesson on JavaScript and the DOM – BEKK Open

A view’s responsibility — a lesson on JavaScript and the DOM – BEKK Open: "Secondly, who is allowed to change what? Can all functions change whatever part of the DOM they want? This wreaks havoc for your tests and creates uncertainty as to where something occurs. And once again, you most likely need to set up the entire application to test the view.

My solution: A view is responsible for one HTML element and everything inside it.

And, of course, a view may contain several sub-views which again are responsible for themselves."

Syndicated 2012-05-03 19:14:00 from sness

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!