by locknitpicker · 1mo ago · 0 comments
For starters, you can start by checking https://caniuse.com .
Then, dive down into the concept of polyfills to understand what extra work everyone must go through to normalize the platform.
And then look at the features themselves. Web components is a good example. Theywere developed as a hack to extend toe current platform to catch up with basic features provided by JavaScript web frameworks. Except they are virtually unusable, unless they are made palatable with... JavaScript frameworks.
And lastly, compare that with the experience of just using a mainstream JavaScript framework. Any of them. It's world's of difference. JavaScript frameworks prioritize developer experience to the point they even went through great pains to have a xml-like DSL to make their javascript be seamless. Whereas things like web components go the opposite direction and make their platform's first class feature feel like vanilla javascript.
> And lastly, compare that with the experience of just using a mainstream JavaScript framework.
Modern frameworks require much greater effort. The trick to writing vanilla JavaScript is to not do things the way you would in your giant framework. Just keep things simple. A state model is an object. Event handlers are functions, that can be reused. Just keep it simple and its far less effort.
As an example, I still like the simplicity of Rails for basic apps. I also enjoy the numerous component libraries, such as Antd, available for React. I don’t want to have to pull in React just so I can get a reasonable way to work with a Tree widget.
I’m not trying to only use the platform. The components are free to be built with whatever lightweight lib they need (Lit, UI5 Core, etc.). But that’s contained in the component. I’m free to use my framework or web technology of choice for building my app.
The point is that the "platform" way of doing things is lagging behind virtually all JavaScript frameworks particularly in developer experience, and even when the platform tries to catch up with JavaScript frameworks such as web components... The results are between underwhelming and unusable.
> The components are free to be built with whatever lightweight lib they need (Lit, UI5 Core, etc.).
You're still resorting to using JavaScript frameworks. The problems created by the platform are still there if you replace framework foo with framework bar. In fact, it seems React 19 rolled out full support for web components.