Earlier quoted context omitted.
Custom Elements is the low-level API that allows you to do all kinds of things. Polymer is designed to sit on top of that as a higher-level API. This is how things should be. Otherwise you get designed into an undesirable corner. (Example: I can imagine improvements to the Polymer code achieved with decorators and TypeScript, for example, which would require a somewhat different API. To need a translation layer over…
I seem to recall IndexedDB was designed with the same thinking and that hasn't worked out so well. (Not talking about Custom Elements here since I don't know enough about it - the comment is levelled at the process). It's all too easy for people in a committee to manufacture the idea of some mythical figures further along the conveyer belt who will magically make something useful out of a giant specification with gap…
Custom Elements v1: Reusable Web Components
31–40 of 41 posts
Re: Custom Elements v1: Reusable Web Components
#32Earlier quoted context omitted.
Custom Elements is the low-level API that allows you to do all kinds of things. Polymer is designed to sit on top of that as a higher-level API. This is how things should be. Otherwise you get designed into an undesirable corner. (Example: I can imagine improvements to the Polymer code achieved with decorators and TypeScript, for example, which would require a somewhat different API. To need a translation layer over…
I seem to recall IndexedDB was designed with the same thinking and that hasn't worked out so well. (Not talking about Custom Elements here since I don't know enough about it - the comment is levelled at the process). It's all too easy for people in a committee to manufacture the idea of some mythical figures further along the conveyer belt who will magically make something useful out of a giant specification with gap…
Re: Custom Elements v1: Reusable Web Components
#33Earlier quoted context omitted.
Custom Elements is the low-level API that allows you to do all kinds of things. Polymer is designed to sit on top of that as a higher-level API. This is how things should be. Otherwise you get designed into an undesirable corner. (Example: I can imagine improvements to the Polymer code achieved with decorators and TypeScript, for example, which would require a somewhat different API. To need a translation layer over…
I seem to recall IndexedDB was designed with the same thinking and that hasn't worked out so well. (Not talking about Custom Elements here since I don't know enough about it - the comment is levelled at the process). It's all too easy for people in a committee to manufacture the idea of some mythical figures further along the conveyer belt who will magically make something useful out of a giant specification with gap…
The API for web components isn't that bad. You have to stamp DOM templates yourself using whatever process, you have to handle attributes and properties yourself, and that's about it. Lots of boilerplate, but a library like Polymer can take a simple, opinionated approach to handle it for you.
From my experience Web Components have been pretty pleasant to use with or without Polymer, it's just a matter of wiring everything up if you go vanilla.
Re: Custom Elements v1: Reusable Web Components
#34Earlier quoted context omitted.
Custom Elements is the low-level API that allows you to do all kinds of things. Polymer is designed to sit on top of that as a higher-level API. This is how things should be. Otherwise you get designed into an undesirable corner. (Example: I can imagine improvements to the Polymer code achieved with decorators and TypeScript, for example, which would require a somewhat different API. To need a translation layer over…
I seem to recall IndexedDB was designed with the same thinking and that hasn't worked out so well. (Not talking about Custom Elements here since I don't know enough about it - the comment is levelled at the process). It's all too easy for people in a committee to manufacture the idea of some mythical figures further along the conveyer belt who will magically make something useful out of a giant specification with gap…
Re: Custom Elements v1: Reusable Web Components
#35Custom Elements v1. Designed by committee: https://pbs.twimg.com/media/DALwpYnUAAESRjr.jpg Polymer. Designed by people who actually do web development: https://pbs.twimg.com/media/DALwpYWVoAAIvkQ.jpg
Apart from what others have mentioned about how the Polymer team contributes to the standard, as someone who's worked with Polymer, I think you're also painting a far too rose picture of Polymer, unfortunately.
Re: Custom Elements v1: Reusable Web Components
#36Custom Elements v1. Designed by committee: https://pbs.twimg.com/media/DALwpYnUAAESRjr.jpg Polymer. Designed by people who actually do web development: https://pbs.twimg.com/media/DALwpYWVoAAIvkQ.jpg
Custom Elements is the low-level API that allows you to do all kinds of things. Polymer is designed to sit on top of that as a higher-level API. This is how things should be. Otherwise you get designed into an undesirable corner. (Example: I can imagine improvements to the Polymer code achieved with decorators and TypeScript, for example, which would require a somewhat different API. To need a translation layer over…
There's next to zero requirements for "static get observableAttributes" and "attributeChangedCalback" which in 99% of the cases can easily be replaced with
static get properties() {
return {
x: {reflectToAttribute: true}
}
}
etc.Re: Custom Elements v1: Reusable Web Components
#37Earlier quoted context omitted.
I seem to recall IndexedDB was designed with the same thinking and that hasn't worked out so well. (Not talking about Custom Elements here since I don't know enough about it - the comment is levelled at the process). It's all too easy for people in a committee to manufacture the idea of some mythical figures further along the conveyer belt who will magically make something useful out of a giant specification with gap…
Polymer was released and worked on as a library while the spec was being worked on. Polymer 0.x and 1.x targeted a version that was only implemented in Chrome, which was used to build the eventual standard, and Polymer 2.x targets the final standard. The API for web components isn't that bad. You have to stamp DOM templates yourself using whatever process, you have to handle attributes and properties yourself, and th…
> Lots of boilerplate
If there's lots of boilerplate, the API is bad.
Re: Custom Elements v1: Reusable Web Components
#38Custom Elements v1. Designed by committee: https://pbs.twimg.com/media/DALwpYnUAAESRjr.jpg Polymer. Designed by people who actually do web development: https://pbs.twimg.com/media/DALwpYWVoAAIvkQ.jpg
Your comment is unnecessarily snide / cynical; you should be aware that the Polymer team is the main driver of the Custom Elements committee. Polymer 2 is now a framework on top of the Custom Elements standard they helped develop and flesh out with Polymer 1.
Re: Custom Elements v1: Reusable Web Components
#39Earlier quoted context omitted.
Polymer was released and worked on as a library while the spec was being worked on. Polymer 0.x and 1.x targeted a version that was only implemented in Chrome, which was used to build the eventual standard, and Polymer 2.x targets the final standard. The API for web components isn't that bad. You have to stamp DOM templates yourself using whatever process, you have to handle attributes and properties yourself, and th…
> The API for web components isn't that bad. > Lots of boilerplate If there's lots of boilerplate, the API is bad.
When you're talking about a low level primitive, boilerplate is preferable. It means you have options. You can throw Polymer or any other library on top and get what you want out of the standard, while someone else can come with different requirements and not be boxed in by your own.
If you can distill your argument to one sentence, it probably isn't blindly applicable to all circumstances. Yes that was one sentence.
Re: Custom Elements v1: Reusable Web Components
#40please correct me if I'm wrong but it seems that custom elements still do nothing about dependency hell (it's not possible to use same lib in different versions)
Why would they be expected to?
Now, imagine how quickly is javascript evolving, libraries, frameworks, etc.
Solution to dependency hell is a major reason why node.js succeeded (along with browserify/webpack) unlike anything with flat dependencies (bower)