News for hackers. Stuff that matters.
Re:Facebook just updated its relationship status with Web Co... by wokwokwok on Tuesday May 07, 2024 @08:35PM (#40293136)
They won't last longer than a react component (that's not even the claim the linked post is making); you can just use them in a different framework, if you care about that.

...which is the point the parent comment was making.

Re:Facebook just updated its relationship status with Web Co... by sdwr on Tuesday May 07, 2024 @10:35PM (#40293819)
> code saved on laptops that hadn’t been turned on in a full decade. The more dependencies a website had, the more difficult it was to restore

is the crux for me. When I clone one of my Vue projects from a few years ago and try to run it, it is always broken. My (new) node version is incompatible with a Vue core library, then updating the core library breaks some other libraries and requires config file changes.

Re:Facebook just updated its relationship status with Web Co... by danielheath on Tuesday May 07, 2024 @11:02PM (#40293944)
I wish vendoring dependencies wasn’t viewed with such suspicion in tech.

I store dependencies in-repo whenever I can get away with it; it eliminates whole classes of devops/CI issues.

Re:Facebook just updated its relationship status with Web Co... by djbusby on Tuesday May 07, 2024 @08:43PM (#40293191)
I read the point as WebComponents will last longer because "a standard" while React is "a Facebook standard".
Re:Facebook just updated its relationship status with Web Co... by hn_throwaway_99 on Tuesday May 07, 2024 @08:57PM (#40293268)
There's also the "React is the industry standard that tons of developers and companies use" vs. the "WebComponents is the 'official' standard that nearly nobody uses".

Yes, I'm being hyperbolic. But if you're worried about longevity I would certainly hitch my wagon to React before I hitched it to WebComponents.

Re:Facebook just updated its relationship status with Web Co... by croes on Tuesday May 07, 2024 @09:40PM (#40293517)
React is like JQuery.
Re:Facebook just updated its relationship status with Web Co... by afavour on Tuesday May 07, 2024 @11:36PM (#40294091)
Unfortunately I don’t think that comparison quite holds. jQuery is mentioned less and less because core browser APIs implemented a lot of what it does and made it unnecessary.

Even if Web Components solve the “create a component” part of React there’s still an absolute ton of stuff it provides that Web Components don’t. I tend to think of WC as a low level API you want a library interfacing with rather than your own code, e.g. the way Svelte exports web components.

Re:Facebook just updated its relationship status with Web Co... by Dylan16807 on Tuesday May 07, 2024 @10:30PM (#40293791)
If it's a choice between removing the JQuery dependency from old JQuery code, or updating equally old vanilla javascript, I'm going to be picking the first option a lot.
Re:Facebook just updated its relationship status with Web Co... by sdwr on Tuesday May 07, 2024 @10:40PM (#40293835)
The point isn't that it's a standard, it's that it's implemented in browser (not in a framework), and is a lot closer to the web equivalent of "bare metal". There are less moving pieces that will break backwards compatibility in the next 10 years (is the hope)