Live data from Hacker News

Ask HN: Should I use Polymer for my next project?

news.ycombinator.com

1–10 of 82 posts

Re: Ask HN: Should I use Polymer for my next project?

#3
A couple of down sides of web components:

- 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.

Re: Ask HN: Should I use Polymer for my next project?

#4
I used it for a project about a year ago (https://github.com/STRML/securesha.re-client/tree/master/pol...). I found that it was difficult to keep the service up and working; while older browsers still seem to load it quite well, Chrome continues to natively implement parts of the (changing) spec.

When Polymer detects native capability for a given feature, it turns its polyfills off. But if the spec has changed, you are no longer supporting the spec as it was when you wrote your code; and inevitably, your application will crash.

I think Polymer has a lot of potential - I definitely enjoyed using it (check out the `app/elements/raw-xhr` and `webworker` elements for some fun; invisible DOM elements that process data!). But if I were to do another application like this, I think I'd just do it with React. It's less of a moving target and has a lot of the same benefits (and more), with the exception of CSS sandboxing.

Re: Ask HN: Should I use Polymer for my next project?

#5

A couple of down sides of web components: - 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 th…

> - they interact poorly with requirejs and amd in general.

> - 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.

Re: Ask HN: Should I use Polymer for my next project?

#6

A couple of down sides of web components: - 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 th…

If you keep everything external it works fine. We have a large project in Polymer, and we use CoffeeScript and Sass, with no problem.

Re: Ask HN: Should I use Polymer for my next project?

#7
I really liked the Polymer demos from I/O, but stepping back, it seems an awful lot like React without the compatibility.

Polymer does appear to be more than just another Google flash-in-the-pan. They've got a good team, which is working closely with the Chrome team and Google's investment at I/O was significant. I wonder how the Angular folks are feeling.

Facebook is using React right now, when will Google put Polymer into production? Hopefully Polymer will get around to some practical compatibility. Otherwise I'll make a note in my calendar for 2016.

Post reply on HN