4 ms·
> What's the next step? That's the most important question for me and for other JS professionals that I talked to at recent local conference. Components with b
by grayrest 15y ago
> What's the next step? That's the most important question for me and for other JS professionals that I talked to at recent local conference.
Components with bindings IS the next step. Douglas Adams quote:
"The History of every major Galactic Civilization tends to pass through three distinct and recognizable phases, those of Survival, Inquiry and Sophistication, otherwise known as the How, Why and Where phases. For instance, the first phase is characterized by the question, 'How can we eat?' The second by the question, 'Why do we eat?' And the third by the question, 'Where shall we do lunch?'"
Whenever the topic of web app development has come up in the past 5 years or so, I always think of this quote. In the case of front end development, the questions are "Can we do this?" (CGI, asp/jsp/php), "Can we make this feel better?" (ajax, rails & co), and "How shall we structure our app?" (components, binding, widgets). This last phase only kicked of in earnest about a year ago and I'm still evangelizing the approach to even relatively up to date developers. They've heard of Backbone, for example, but haven't investigated and don't know how it applies to day to day work.
Going forward, expect to see interoperability concerns addressed. I've seen proposals for this in the form of html5 component model [1][2] and style tag's scoped attribute [3]. This provides a common ground for people to mix different libraries/components on the same page with a reasonable confidence that things won't break.
[1] http://lists.w3.org/Archives/Public/public-webapps/2011AprJun/1345.html http://lists.w3.org/Archives/Public/public-webapps/2011AprJu...
[2] http://lists.w3.org/Archives/Public/public-webapps/2011AprJun/1364.html http://lists.w3.org/Archives/Public/public-webapps/2011AprJu...
[3] http://dev.w3.org/html5/spec/Overview.html#attr-style-scoped http://dev.w3.org/html5/spec/Overview.html#attr-style-scoped
I also expect one of the KVO frameworks and it's associated widget system to "win" like jQuery has won DOM manipulation. What makes widget frameworks in the browser fun is that people have an expectation of being able to completely restyle everything and the only way I know of to do that cleanly without forcing a lot of fragile markup is with sass/less/stylus, so I expect to see those increase in popularity.
As a whole, web apps have been less sophisticated than equivalent complexity desktop and mobile apps. I've long believed that much of this is due to us re-writing a half-assed widget system from scratch for every project. This consumes a significant fraction of the time/money/effort allocated to a project which apps on other platforms can put into additional capabilities or polish. As such, I think the wide adoption of a KVO framework and widget library will be an inflection point for the quality and sophistication of apps in the browser. I'm looking forward to it.