Polymer in my opinion doesn't have that much going for it. I mean, I really like Web Components, and using the polyfill can make sense (depending on your performance and browser support requirements), but as a framework, it doesn't really challenge or help you architect your application in a better way.
The nice thing about polymer is that it's not a framework, it's more like a library. The only pattern required to do component composition is mediator:
So what is the advantage of using the Polymer library?
To provide some perspective: I like React because it taught me to model the view as a function of the state, and the pulling the two apart makes both easier to reason about.
Yeah I mean, you can, but you also can with e.g. React. But what sets Polymer apart? What new things does it bring to the table?
(Note that I'm not trying to bring Polymer down; I'm just always on the lookout for things that will challenge my thinking, and so far, Polymer just hasn't made it onto my list of things to check out for that reason.)
It brings proper encapsulation based on web components standards. Also it is a library - but the wealth of components for all kinds of tasks makes it functional enough to create full SPA applications in it without throwing tons of other solutions to get something working.
24
u/m3wm3wm3wm Sep 15 '16
I'm surprised people only mention React as an alternative here, and no one mentions Polymer. The next version of Youtube is built with Polymer.
I'm enjoying the zero build tools and have had a good time staying not running the npm clusterfuck in a long time.