Live data from Hacker News

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

news.ycombinator.com

11–20 of 82 posts

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

#11
We are using it for implementing a rather large project. I plan on writing a few articles on our experiences with it in the next couple of months.

What you need to keep in mind that Polymer is largely experimental software, I would not recommend it yet for generic audience websites. The polyfills are nice, but you have to keep a tight eye on performance, and a new browser release could very easily pull out the rug from under you, as the Chrome release last month did, and make your site not work for a large chunk of users. I personally would not do it if I had a whole bunch of browsers I had to test every single thing in.

It also takes a little while to get accustomed to the Polymer way of doing things. Our app is a single page webapp and there's many things we had to find out for ourselves. Most Polymer documentation is about rendering views, not writing controllers or models that suit web applications.

From what I heard, they are working on a tighter integration with Angular. If that would become an official thing it would probably improve their opinionatedness on controllers/models. I personally am not a fan of Angular, so perhaps I would not follow that anyway ;)

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

#13
The only reason to use polymer is if you need the L style UIs they discussed at Google I/O.

While Google's really good at Java apis, they're really terrible at JS apis. I love Google, but I would be very hesitant to use their JavaScript libraries or frameworks. A lot of people I've talked to (on irc, es-discus, etc.) don't agree with web components, but Google's pushing it hard.

Web components are poorly based good ideas, and polymer is poorly based on web components, and your app will be (poorly) based on that.

Other people have started posting some of the problems with polymer.

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

#14

The only reason to use polymer is if you need the L style UIs they discussed at Google I/O. While Google's really good at Java apis, they're really terrible at JS apis. I love Google, but I would be very hesitant to use their JavaScript libraries or frameworks. A lot of people I've talked to (on irc, es-discus, etc.) don't agree with web components, but Google's pushing it hard. Web components are poorly based good i…

you said "some of the problems with polymer". Can i get that resources. Because i am making some research with Polymer. thank

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

#15
I would go with the idea behind Polymer but probably not Polymer itself. Most of the newer frameworks have some sort of component analog. Angular has directives, Ember has components. You can simulate components with Backbone/Marionette. ReactJS is AWESOME and fits right in with the whole component mentality. The project I did with straight Polymer was fun, but I ended up having to scrap it, as the Chrome last month caused blocker issues.

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

#16
So I've been porting part of our internal analytics system at work over to using polymer and I have to say: damn. It's nice to have and being able to make custom reusable elements that can expose a preset functionality and a powerful (if you write it that way) api is pretty nice. Overall I'm pretty happy with it, but can't really speak for how usable outside of our little sphere it is.

We haven't had any issues with speed or page performance and only target chrome however.

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

#17

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…

For anyone using Rails, I've made a gem which integrates Web components seamlessly into the asset pipeline. This gives you two things:

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

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

#19
post #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 Sa…

Most javascript developers want to use Javascript and want to use what's available in the defacto javascript package manager (npm) and want to use the build tool that works with the javascript packages (browserify). Suggesting using something other than Javascript, it's packages, and it's preeminent packager to get started with Polymer is exactly the problem parent was highlighting, and your suggestion is bloody not well helping.

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

#20
post #11

We are using it for implementing a rather large project. I plan on writing a few articles on our experiences with it in the next couple of months. What you need to keep in mind that Polymer is largely experimental software, I would not recommend it yet for generic audience websites. The polyfills are nice, but you have to keep a tight eye on performance, and a new browser release could very easily pull out the rug fr…

I agree with this - to add on though:

Polymer DOES NOT replace models and controllers, use this to render, and continue to use a MV* or MVC. Polymer gives you access to web components now providing a polyfill. I love web components, but there when we have logic inside a html is were I start to regret using it. example is [core-ajax](https://github.com/Polymer/core-ajax) There is literally no reason to have this, this should be apart of your javascript.

On that note you should use polymer, but don't combine your logic and structure. I think of web components as advance templates that can be used. If you implement your own web components keep your logic separate!

Post reply on HN