Web Browser Programming Blurring the Lines of MVC
lkcl tips his in-depth article up at Advogato on the difficulties for the MVC programming model that are introduced by Javascript and AJAX, and solutions for them. He writes: "This article outlines how the MVC concept is made incredibly awkward by the gradual but necessary introduction of Javascript and AJAX. A solution is found in the form of Javascript Compiler Technology such as GWT or Pyjamas (PyPy's JS backend or Rb2Js could be used, with some additional work). The article outlines how and why the traditional MVC patterns are fragmented by Javascript and AJAX, advocating that if a site is programmed purely in a high-level language that is then compiled to Javascript for the Web Browser sections, the same high-level source code can be executed either client-side on the browser, or server-side, or even both, depending on the requirements. The implications of this approach are discussed in depth."
The lines between what is an application are blurring. We have disparate data sources which are being combined in ways which the original sources never necessarily intended. The user application may or may not even be one written by the service provider.
The semantic web, despite all the nay saying, is here.
I have long argued that MVC doesn't even make sense on the web to begin with. MVC is a great architectural model for live interactive systems, but a web site or web app is not a live interactive system. It's an asynchronous challenge/response system.
I blame Sun for completely abusing the term in their Java stacks (I think they called it "model 2"?), and Ruby on Rails for popularizing the wrong impression. MVC by definition requires a direct observer connection from View to Model. All web-MVC frameworks I've seen start with the initial statement that the Controller, not the View, is responsible for handling user interaction and communicating with the Model. Sorry, that's not MVC. It's not a bad model for the web, but it's not MVC. If anything it's closer to PAC.
See the link above for a lengthier analysis and links to Wikipedia. :-)
Really, the whole point of design patterns is to have a common vocabulary. How is that useful if you're going to bastardize your terminology due to stubborn ignorance?
--GrouchoMarx
Card-carrying member of the EFF, FSF, and ACLU. Are you?
But Javascript or ECMAScript isn't a 'real' language, or at least not in practice, and that's the issue. Code written in it needs to run on multiple different implementations with no properly accepted standards.
You're confusing DOM implementations with Javascript. Javascript is a language with a well-defined standard, and no implementation deviates significantly.
Browser DOM implementations vary wildly and cause the problem that you're talking about.
I used to think that Javascript was a crap language, for mostly the reasons you outlined. Then I actually looked into the language and found that, despite a few shortcomings, it's a perfectly find functional language. People misuse it due to its similar syntax to Java and C, and crappy, incompatible DOM implementations further give it a bad name (but that's not its fault.)
while you may be right about some aspects of the Middle English creole hypothesis, the Norman conquest of England certainly had a profound effect on the evolution of the English language. language is a social/cultural construct. subsequently, its evolution is inextricably tied to the social & cultural development of a region. after all, a diachronic analysis is meaningless without historic context.
the fact of the matter is, the Norman conquest was a vital chapter in the historic narrative of the British isles. i would be very surprised if 300-odd-years of Norman rule had no effect whatsoever on the development of modern English. i mean, the Normans basically supplanted the English ruling class, replacing the entire English nobility with new Anglo-Norman-speaking Norman nobility.
it's true that the (disproportionately large number of) French and Norman loanwords used in the English language were largely borrowed after 1400, by which time English had returned to use in government and in the king's court. and the grammatical changes in English followed a pattern shared by many other Germanic languages. but the Great Vowel Shift was almost certainly influenced by Norman occupation in some way or another.
it should be noted that this (1200-1600) was the time when the language of the aristocracy was gradually shifting from French to English. this likely changed the prestige accent of English by making it sound more French in style. another possibility is that due to England being at war with France throughout much of this period, the French-speaking nobility may have been more susceptible to hypercorrection in an attempt to change pronounciation to something sounding "more English."
in fact, the shift from French to English as the language of the aristocracy/ruling-class may have contributed more to the rapid changes undergone by the English language to form modern English than the period of Norman rule immediately after William's conquest of England. firstly, William and his successors up to, and including, the early Plantagenets, such as Angevin kings, were all absentee rulers for the most part. the administrative system William set up allowed he and his successors to rule from France by writ. similarly, the early Anglo-Norman barons were also largely absentee landowners, who consider France their true home, and spent the majority of their time in France.
so it would make sense that it wasn't until much later, after the Anglo-Norman nobility had begun assimilating and interacting directly with the native English population, that these transformations in the English language began to take place. this was also the time of the Great Plague, which drove mass migrations to the South East of England causing different dialects and accents to intermingle and modify each other in order to standardize pronounciation. the rise of the middle class in London and upward social mobility caused by the pandemic hitting the aristocracy could also have driven (or accelerated) social interactions between the Anglo-Norman aristocracy and the English masses.