4 ms·
I don't have nearly enough time to keep up on all the latest developments with HTML5, but from what I've read Web Components will be a huge life saver for anyon
by ajtaylor 13y ago
I don't have nearly enough time to keep up on all the latest developments with HTML5, but from what I've read Web Components will be a huge life saver for anyone who works on web front ends. I've been thinking this weekend about how I might take advantage of proper components at $work.
The best I can relate it, is that I can take all the widgets that are used throughout the website and wrap them up into their own CSS and JS. No need for rigorous CSS namespacing, JS modules, etc. It's all packaged up, ready to drop into an HTML page. The most interesting part are the polyfills for the various Web Components, erm components, that are currently being drafted. At the moment, the polyfills have to implement most everything but eventually won't be needed when the specs are finalised and the browsers caught up.
- bachback 13y agoHTML5 is a fixed standard - I assume you mean something else by that. the lines between OS/VM/browser are blurring more and more. I find what Rich Hickey is saying really interesting. to me the next great step is dynamic computing. so the stuff that Bret Victor is doing is going to be huge IMO. defining dynamic behavior and services is the future, not so much widgets and mouse actions.
- dualogy 13y agoGot some kind of links to "what Rich Hickey is saying" (who?) and "Bret Victor is doing" (who?) for us mere mortals? ;)
- bachback 13y agoclojure.org and worrydream.com. Rich has talks on youtube and Bret on vimeo (accessible via his website). What I mean is that if one thinks in widgets and DOM this is already tied to a particular way of thinking about computing. For instance d3.js and others manipulate the DOM, so that you have more or less a scripting of static content. There is real power in combining user interaction and scripting making it a two-way channel. My instant reaction to this talk is they really took the whole to an extreme, where the absurdity should become obvious. The next big thing is not going to come from Google (obviously). Perhaps I'm just ignorant.
- magicalist 13y agoYou should read the article (and avoid being so dismissive). Functionality like Mutation Observers are exactly the kind of abstractions that will make "dynamic behavior and services" (as vague as that is) all the easier. Also, maybe you have a weird definition for "widget", but go watch Bret's latest talk. It's all widgets. And it's certainly not dynamic magic; we can build interfaces like that, but more and better tools to make building them easier are a very good thing. I'm personally really excited from what I've seen of Polymer, and even more excited about its mostly decoupled design (and the polyfill-until-standardized approach the GP comment mentions), allowing you to pick and choose what you want to use without committing to some huge (and "opinionated") framework.
- ajtaylor 13y agoYou've hit the nail on the head. Every website these days has widgets, for lack of a better word, that are reused all over the place. Anything we can do to make it easier to package up those widgets so I can drop them in place on a new html page is A Good Thing IMHO. Opinionated frameworks are great, until you need to do something they didn't anticipate. If you're lucky it's easy to work around, and if you're not then welcome to your latest nightmare. The whole polyfill concept is exactly what the world needs to allow browsers to grow and mature at different rates.
- coldtea 13y ago>HTML5 is a fixed standard - I assume you mean something else by that. No, it's not. I'm sure you had something else in mind by that. http://en.wikipedia.org/wiki/HTML5#Plan_2014 http://en.wikipedia.org/wiki/HTML5#Plan_2014
- bachback 13y agoThanks for pointing that out. My understanding of standard was that it is something which is agreed upon and then used. But now this standard is some kind of irreversible pre-standard. More on this is going with web-components: https://groups.google.com/forum/?fromgroups=#!topic/polymer-dev/4RSYaKmbtEk https://groups.google.com/forum/?fromgroups=#!topic/polymer-...
- muraiki 13y agoI'm also very much looking forward to this reusable, component-based approach using Javascript, because I'm currently enjoying using a similar paradigm on a project I'm working on with the Seaside framework in Smalltalk. I don't know if I can convince anyone to use Smalltalk for a web project, but if I can keep this same approach and stick to JS that will make my life much better! That being said, here's a little bit about Seaside in case you're interested in trying something different. Seaside makes it extremely easy to embed multiple components within or alongside each other. It also has the ability to sequence the display of components in a modal fashion while synchronizing the client state (even when using the back button), which can be good for some types of wizard-style workflows. In terms of using Smalltalk, the message-passing syntax is elegant and simple to comprehend. And the ability of Smalltalk to aid in debugging is fantastic: if you running web app experiences an error, you will get a debugger with a stack trace that includes the source code of everything in the stack. Simply make the changes necessary to fix the bug, and then resume the execution of your program. If you like REPL style coding, this is quite similar, albeit through a GUI. This has proven invaluable to iterative development. There are two great free resources to learning Seaside. The first is Dynamic Web Development with Seaside: http://book.seaside.st/book http://book.seaside.st/book Another good one is An Introduction to Seaside: http://www.hpi.uni-potsdam.de/hirschfeld/seaside/tutorial http://www.hpi.uni-potsdam.de/hirschfeld/seaside/tutorial