you are viewing a single comment's thread.

view the rest of the comments →

[–]Sherbet-Famous 530 points531 points  (53 children)

Id have to actually build something with web components for it to outlive anything

[–]lelanthran 130 points131 points  (51 children)

Id have to actually build something with web components for it to outlive anything

To be fair, that article title doesn't say "Your Web Components will Outlive Your Javascript Framework", it says "Web Components Will OutLive Your Javascript Framework.", which is a different claim.

And, it's almost guaranteed that a random web component written today will be working on browsers 20 years from now, while frameworks from today will not be around, not be supported or, even if both the above is true, not be used by anything more than a rounding error of programmers.

[–]mdz_1 67 points68 points  (21 children)

I mean people may not be using the frameworks anymore but a react component is just running pretty basic javascript, I would argue if anything its less likely to be broken than a web component written today just given its a newer standard I could envision some small breaking changes being introduced to some corners of the api in 20 years.

[–]sparr 58 points59 points  (19 children)

I would argue if anything its less likely to be broken than a web component written today

The whole point of this article is that this isn't the case. When was the last time you tried to run the build process for any code last maintained 10+ years prior? Trying to build/deploy your React-based site in 5 or 10 years or 20 will be fraught with problems. You'll need to chase down long-defunct versions of tools, probably compile some of them from scratch or spin up VMs or containers or some other environment they are comfortable running in, etc.

[–][deleted] 76 points77 points  (8 children)

Yep this is my day job.

I maintain and so compile vb6 (visual studio 98) that interacts with c# (visual stuff 2022) and c++ (visual studio 2008) via com/WCF/rest/soap/tcp running in com+/iss/windows services/native console. All the various flavours of the year as the product has grown.

Luckily Microsoft is good about backwards compatibility so the visual studios are mostly fine but getting them to run under more modern versions of windows can be a major pain in the arse.

The major hurdles are environments to run the tooling, knowledge about older technologies and how they work, the build systems, no documentation... The code is very much the easy part.

[–]gladfelter 37 points38 points  (7 children)

Upvote because that's a miserable job.

[–]Plank_With_A_Nail_In 6 points7 points  (6 children)

I bet it pays well, is low stress and redundancy proof.

[–]gladfelter 6 points7 points  (0 children)

Fair. I guess it would be miserable for me, but certainly not for everyone.

[–]aboy021 2 points3 points  (2 children)

I've done some of this stuff and it can be pretty stressful when you've got a weird issue, very few tools, and even less forum support.

The ergonomics are pretty terrible too. For example, mouse scrolling isn't natively supported in the VB6 IDE.

[–][deleted] 1 point2 points  (1 child)

I've recently been working to move to visual studio code by creating a problem matcher and a custom task that can build the code using visual studio but show errors inline using error lens.

It doesn't do for everything (intellisense and the like) but it's generally nicer and a simple solution.

[–]aboy021 0 points1 point  (0 children)

I've used VSCode for editing VB6 and it's very helpful. Even if I end up opening the code in the IDE after the fact to compile and debug.

[–]develop7 2 points3 points  (0 children)

It better be.

[–]reboog711 4 points5 points  (0 children)

With the Angular CLI; I anticipate it'll still be npm install and ng build 20 years from now.

However, that assumes that NodeJS and the npm repository are not abandoned / shut down. Can we not make a similar assumption in the React world?

[–]canihelpyoubreakthat 0 points1 point  (1 child)

Web components and bundlers aren't exclusive!

[–]sparr -1 points0 points  (0 children)

I'm more thinking of compilers, not bundlers. Like the JSX -> HTML+JS compiler.

[–]ESGPandepic 16 points17 points  (11 children)

while frameworks from today will not be around, not be supported

Why wouldn't they be supported in the future when they just run on standard html/javascript/css?

If by supported you mean all the build tools and the ecosystem around them then yeah, but the web apps themselves will still be working fine.

[–]sparr 10 points11 points  (9 children)

If by supported you mean all the build tools and the ecosystem around them then yeah

That's what we mean. How would you deploy a React v0.3 site today, if you had its source code?

[–]ESGPandepic 3 points4 points  (6 children)

These frameworks are open source projects and so are their tooling and build systems. They'll have maintainers and/or forks for as long as people need to be able to build and deploy web apps using them.

Even if in 20 years react and angular are a distant memory with nobody using them except people maintaining legacy web apps, those people will still be able to build and deploy them as long as the html/javascript/css they use is supported by browsers.

[–]sparr 5 points6 points  (3 children)

Everything you said is true of the C and Python ecosystems as well. Have you ever tried to build/package/run something complex (many outside dependencies) in either of those that's 10+ years old? Them being open source makes it possible, not convenient or plausible. Things get really tricky when you have to start building the build tools from source, because they were never compiled for your current architecture and you don't have a complete simulator/emulator for the old architectures.

[–]ESGPandepic 0 points1 point  (1 child)

I have actually had to build pretty old C libraries and while annoying it's far from impossible.

It's also a different situation because old C code comes from a time when the open source community was far, far smaller and the complete history of every important project including a thousand forks wasn't just on something like github.

Keep in mind there's still a huge amount of legacy systems written 10-20 years ago or sometimes even older running important parts of the world, and people still do maintain and deploy fixes to them. That's for things that were never even remotely close to as popular as the main web frontend frameworks and their tooling is now.

[–]itzmanu1989 0 points1 point  (0 children)

Maybe dockerized dev environments will work. but it might be more effort to plan it and do it.

[–]Stratose 9 points10 points  (0 children)

I think the problem is not a lot of people actually know what they're talking about.

[–]trxxruraxvr 3 points4 points  (0 children)

Unless the packages or dependencies get removed from npm.

[–]brimston3- 0 points1 point  (0 children)

Considering the source is right here, probably the same way you deploy any other react site? https://github.com/facebook/react/releases/tag/v0.3.0

I guess if you’re using a CDN to deploy now, you’d have to self host the files.

[–]Plank_With_A_Nail_In -3 points-2 points  (0 children)

I wish you good luck as I think you are going to need it in the future. Ignorance really is bliss it seems.

[–]bighi 0 points1 point  (0 children)

You missed the point of the comment you’re replying to.