3 ms·
> actual software engineering principles to building websites What are the actual software engineering principles Polymer enables developers to apply?
by wwweston 11y ago
> actual software engineering principles to building websites
What are the actual software engineering principles Polymer enables developers to apply?
- hugozap 11y agoMostly composability. Assembling a web app from small custom and self contained components is a big difference. It's just a library, so it won't do magic but it's a big improvement.
- pfooti 11y agoSeparation of concerns and better variable scoping as well. In a webcomonent inside a shadow dom, you can do something like input id="mainInput" or some other generic-named DOM id, without worrying that some other third-party library or component will create another node with the same id. Similarly for CSS selectors and class names - I mean, BEM and SMACCS and stuff are cool and all, but it's also nice to know that my CSS styles won't leak outside the component, so I can just do div class="main" or something and not worry about how other developers name their classes on other branches of the DOM.