Live data from Hacker News

An Introduction to Polymer - A Web Component Library

wearenorthern.com

51–56 of 56 posts

Re: An Introduction to Polymer - A Web Component Library

#51

I'm curious if anyone uses SASS or Pug(jade) in Polymer components and how you implement. Do you use polymer-build / Gulp? What about JS Modules?

I just use Gulp alongside the standard Polymer CLI. Here's my Gulp config https://gist.github.com/NickRun/977bb54eada17653acc81ccd63b1...

Re: An Introduction to Polymer - A Web Component Library

#52

I'm curious if anyone uses SASS or Pug(jade) in Polymer components and how you implement. Do you use polymer-build / Gulp? What about JS Modules?

I just use Gulp alongside the standard Polymer CLI. Here's my Gulp config https://gist.github.com/NickRun/977bb54eada17653acc81ccd63b1...

Thanks man, you're the best.

Re: An Introduction to Polymer - A Web Component Library

#53
post #46

Earlier quoted context omitted.

@nverba Hoi mate, Any pointers about using redux with polymer? I have been using polymer for some eight months now. I tried to implement redux in one of my components a couple of months back. But I couldn't finish it, because of the humongous refactoring work.

You can check out polymer-redux ( https://github.com/tur-nr/polymer-redux ). It's makes it easy to integrate the redux store inside your components. Basically you will split up your components in two types: 1.) container components that are redux aware and subscribes to slices of your state graph and pure presentational components that are unaware of redux and are management by the container components. This is simil…

Thanks for the link. Still the presentational components have to be 2-way binded, right?

Re: An Introduction to Polymer - A Web Component Library

#54
post #48

I have recently decided to switch from Polymer to Material2 for the following reasons: - Polymer is only available through bower, which means I have to teach 2 package management systems to my developers. - The documentation is not great (for instance, events are documented in camelCase, but must be listened for in Angular 2 using dashes-between-words). - There are serious issues [0] which not gone resolved for a lon…

you serious issue IS merged https://github.com/webcomponents/webcomponentsjs/pull/644 ;-) Also its NOT polymer issue - it is polyfill issue. It affects things like x-tag,bosonic and others. ANyways it looks like latest release is the fixed version.

I understand that webcomponentsjs is a polyfill, but it is a required dependency for Polymer, and until it uses the version with the fix, the issue will be a problem. Anyway, that was just one example of many.

Re: An Introduction to Polymer - A Web Component Library

#55
post #49
post #10

Earlier quoted context omitted.

Sure, but look at it this way - with other solutions like lets say React their virtual dom is your "polyfill". Even with polyfills polymer is MUCH smaller than react core ;-) I don't see it as a problem as I've created elements that worked in IE10+ with it.

React's virtual DOM has a far smaller performance impact than the web components polyfills have...

You with your FUD again, dbmon benchmarks say otherwise.

Re: An Introduction to Polymer - A Web Component Library

#56
post #46

Earlier quoted context omitted.

You can check out polymer-redux ( https://github.com/tur-nr/polymer-redux ). It's makes it easy to integrate the redux store inside your components. Basically you will split up your components in two types: 1.) container components that are redux aware and subscribes to slices of your state graph and pure presentational components that are unaware of redux and are management by the container components. This is simil…

Thanks for the link. Still the presentational components have to be 2-way binded, right?

yeah either 2-way binding or just firing events which are handled in the container components (2 way binding is actually implemented using events)
Post reply on HN