This seems to be a pretty low-effort post without any real substantive details. I'd much rather see discussion of the "Parallel Evolution of React and Web Components" article that got posted earlier today. I don't agree with that author's strong stance against React, but it's at least a well-written post with substantial thought and significant technical detail: - https://news.ycombinator.com/item?id=41790499 or thes…
It seems like it was written by ChatGPT.
The Case for Web Components: A Simpler, Framework-Free Future for the Web
11–20 of 23 posts
Re: The Case for Web Components: A Simpler, Framework-Free Future for the Web
#12This seems to be a pretty low-effort post without any real substantive details. I'd much rather see discussion of the "Parallel Evolution of React and Web Components" article that got posted earlier today. I don't agree with that author's strong stance against React, but it's at least a well-written post with substantial thought and significant technical detail: - https://news.ycombinator.com/item?id=41790499 or thes…
I must be missing something. Could you point me to the section(s) in any of those that make the same point I'm trying to? Or, how many more words do I need to use to say 'Web components don't force you to use Node and don't require a build step'?
Re: The Case for Web Components: A Simpler, Framework-Free Future for the Web
#13Earlier quoted context omitted.
It seems like it was written by ChatGPT.
Here's my quick rebuttal, as someone who likes/uses parts of Web Components but knows it's no panacea. ChatGPT could improve on it I'm sure. > 1. No Need for Node.js: Keeping Development Simple You can have code that requires a server or build script with and without web components. You can have code that doesn't require those with and without web components. > 2. Native Browser Support: No Server-Side Rendering Head…
Believe it or not, there are other server-side languages apart from node. Without Node, you can't SSR in any of those frameworks, so i don't know how that changes my point
>This is the point that makes the least sense. You can opt out of server-side rendering when using a non-WC framework, and you lose the headaches.
But you miss out on performance... without SSR you are bypassing the html parser and just abusing JS to manipulate the DOM.
> Duplicate of #1. smh
If you insist.
> The API doesn't provide a whole lot. That's why a lot of people are using Lit.
Oh no, a js library.
Your other points aren't even worth responding to.
Re: The Case for Web Components: A Simpler, Framework-Free Future for the Web
#14Re: The Case for Web Components: A Simpler, Framework-Free Future for the Web
#15Earlier quoted context omitted.
I must be missing something. Could you point me to the section(s) in any of those that make the same point I'm trying to? Or, how many more words do I need to use to say 'Web components don't force you to use Node and don't require a build step'?
Isn't that what people already know about webcomponents? So you'd need to instead write about why that matters?
Re: The Case for Web Components: A Simpler, Framework-Free Future for the Web
#16Earlier quoted context omitted.
It seems like it was written by ChatGPT.
How so?
There were lots of turns of phrase that didn't feel natural in a technical blog post but are common in ChatGPT's prose. But honestly the bigger red flag for me was the listicle format, with a numbered 6-point outline fleshed out with a few paragraphs per heading and no transitions or relationships of any kind between sections. It felt like something written in chunks and stitched together afterward, which is a common artifact of a ChatGPT workflow (since it produces small chunks of text at a time rather than whole coherent essays).
Re: The Case for Web Components: A Simpler, Framework-Free Future for the Web
#17Earlier quoted context omitted.
Here's my quick rebuttal, as someone who likes/uses parts of Web Components but knows it's no panacea. ChatGPT could improve on it I'm sure. > 1. No Need for Node.js: Keeping Development Simple You can have code that requires a server or build script with and without web components. You can have code that doesn't require those with and without web components. > 2. Native Browser Support: No Server-Side Rendering Head…
>You can have code that requires a server or build script with and without web components. You can have code that doesn't require those with and without web components. Believe it or not, there are other server-side languages apart from node. Without Node, you can't SSR in any of those frameworks, so i don't know how that changes my point >This is the point that makes the least sense. You can opt out of server-side r…
Re: The Case for Web Components: A Simpler, Framework-Free Future for the Web
#18Earlier quoted context omitted.
How so?
Was it? I confess that I initially downvoted them on principle but came back to remove the downvote after reading the article because it did have strong LLM vibes. There were lots of turns of phrase that didn't feel natural in a technical blog post but are common in ChatGPT's prose. But honestly the bigger red flag for me was the listicle format, with a numbered 6-point outline fleshed out with a few paragraphs per h…
Re: The Case for Web Components: A Simpler, Framework-Free Future for the Web
#19Earlier quoted context omitted.
>You can have code that requires a server or build script with and without web components. You can have code that doesn't require those with and without web components. Believe it or not, there are other server-side languages apart from node. Without Node, you can't SSR in any of those frameworks, so i don't know how that changes my point >This is the point that makes the least sense. You can opt out of server-side r…
Ah, I see the point about SSR. Yes, frameworks like React and Vue make it less obvious how to do non-framework SSR. However, they don't make it impossible. You can have React and Vue render on an individual element and not the whole document. The HTMLElement part of web components are actually a decent way to do that. You can make a thin wrapper HTMLElement that runs createRoot. https://react.dev/reference/react-dom/…
Re: The Case for Web Components: A Simpler, Framework-Free Future for the Web
#20Been hearing the case for web components for a very long time. Are there any implemented well? Last I looked at shoelace/web awesome, using a single component brought in 40k+ of JS
We use them pretty frequently and are even working on releasing our own web component library. I wouldn't recommend using it yet, it needs to be documented better, but here it is if you want to check it out. https://github.com/outerbase/astra-ui