by shadowmint · 12y ago · 0 comments
- they interact poorly with requirejs and amd in general.
- they flat out dont work at all in IE8
- there's no 'good' solution for the request hell you get from loading 50 components; although some of the tooling is getting there (vulcanize).
- the tooling in general is currently rubbish; no way to easily combine sass + jade + coffee into a web component (eg. with gulp, no the dart bindings don't count as tooling). no way to have external resource files.
...but despite that all, they're fantastically productive, great for testable ui, great for making reusable elements you can use in multiple projects.
Short answer is: yes, unless you have to support IE8.
> - the tooling in general is currently rubbish; no way to easily combine sass + jade + coffee into a web component (eg. with gulp, no the dart bindings don't count as tooling). no way to have external resource files.
If you use Dart and its Polymer libraries, these two things should not be a problem. Why does that not count? He didn't say he wants to use Sass, Jade or CoffeeScript.
IMO, Dart is becoming much more interesting to me as it seems it is the best way to work with Polymer.
> Most javascript developers want to use Javascript
OP mentions nothing, parent mentions CoffeeScript.
Dart also has packages and an official package manager. It also has a dogfooded official Polymer library. Setting up a modular toy project with packages was easier to understand in Dart than JS for me. I don't see how I'm "bloody well not helping".
1. In production, all imports get concatenation into 1 HTML import.
2. Any web component can use assets that need to be compiled, such as SCSS or CoffeeScript.
It's called Emcee, and is available here: http://www.github.com/ahuth/emcee
@jastanton phrased it nicely in another comment here: https://news.ycombinator.com/item?id=7971847
It's much safer to do it this way than rely on polymer. IMHO. When web components really are here for everyone, you are still stuck with polymer libs and tools and all the code is bound to them. Who knows, polymer might be considered bloat then?
That said, these aren't really the same kind of libraries at all, so I'm not sure why this is such a x vs y thread. Ideally, react and web components are fully composable, and it doesn't really matter where the element came from.