by dbbk · 2y ago · 0 comments
In my 13 years there are a lot of technologies I've never used. Maybe there was opportunities where you could have, or maybe things are working just fine for the problems you're solving and you don't need it, which is fine too.
So a new way of dealing with certain problems is required, which requires a mindset change. For most developers it doesn't add value right away to break out of their framework cage and share their components with each other. But eventually we will all benefit from web components because they will work in any environment without them ever breaking. You won't be able to say that about traditional framework components.
It's not a new way (components is not a new idea), and no, it doesn't require a mindset change (again, components are not a new idea).
Web Components have so many issues that they are nearly useless to frameworks, and Shadow DOM is the cause of many of those issues.
> For most developers it doesn't add value right away to break out of their framework cage and share their components with each other.
Ability to share components has nothing to do with suitability of web components for frameworks/libs.
> But eventually we will all benefit from web components because they will work in any environment without them ever breaking.
Except they are breaking a11y, selections, forms; they can't be lazily rendered; they cause waterfall HTTP requests; they...
Well, they literally need 20 more web standards (on top of a dozen or so existing ones) to fix issues that no frameworks have, and many of which exist only because of web components themselves: https://w3c.github.io/webcomponents-cg/2022.html
The only useful web spec that may come out of this slow moving train wreck is DOM Parts which enables batched updates to the DOM. And even then it depends on how blind the spec authors are to the actual needs of developers. And up until 2022 they weren't just blind, they were intentionally and militantly blind.