The current trend is to maximize readability in development and then to use a build pipeline to remove as much of that readability as possible and optimize for size in production.
There is only a very loose relationship between what code looks like when you're writing it and what actually pops out of a compiler or bundler to go to production. You could write something close to plain English these days (literate programming with something like Observable), with a ton of dependencies, and still get a reasonably well-optimized website after a bundler does some tree-shaking, dead code removal, transpiling and minification.
It's complicated, sure, but your complaint here is the exact reason why it's complicated. We want to easy to write and understand human-optimized code for dev, and to use that to deliver an Internet- and browser-optimized bundle to the user. The step in the middle of those is complex.
Even static page generators seem a bit too complicated at time.
The only exception to that is adverts. There's a ton of code delivered in websites that isn't necessary, and it's mostly for displaying ads and tracking people so the ads can be optimized for better conversion.
It kind of makes me want to get a giant ink jet plotter and set it up at an art gallery printing tweets / tiktoks / etc and instead of a catch bin for the prints it just goes directly into a shredder.
https://instant.page/ https://github.com/turbolinks/turbolinks or turbo/hotwire/stimulus.
They are bloated as fuck. Go to an interview for any react job and they'll ask you about what to do when react fucks up the DOM with all its bullshit. Try making an HTML page that is just HTML and see how many millions of elements you have to have on the page until it starts acting like react. React/Angular/etc are just bloat.
It's like seeing a "modern" iOS app with Dependency injection and asking yourself how often this team swaps out the database on its iOS to make DI necessary. Like what do they have in the back, a Wheel O' Database and spin it every week to find out what DB they should use until next week?
Makes me glad that my career focus is security not web development...
I don't think many web developers would argue downloading 10MB of JS code is appropriate. The problem is that people who argue that websites are bloated often include images, video, fonts, and more in their numbers, and assets like that take up space. Most web apps are a lot smaller than 10MB. Even a giant one like Github Codespace is 'only' 8MB, and that's a full IDE and git client in your browser.
If you're seeing something that's got 10MB of code in it then the developers have failed (or it's a very complex app).
Here's the platforms you need if you're not 20,000 strong: https://motherfuckingwebsite.com/
http://programming-motherfucker.com/
Arguments like this do you no favors. There are hundreds of thousands of developers using React today. They aren't all wrong.
There are legitimate reasons to use it, it works very well, and code written with it is not 'garbage'. It certainly has its flaws too of course. However, while any website that's using React appropriately could be written in vanilla JS instead, after a while the code would start to look like a poor quality React implementation. This is obvious, because what React is doing - abstracting the process of inter-component communication, and giving developers tools to solve common problems within components - is actually very common in app development. Leveraging React rather than reinventing that particular wheel is a good idea.
Did you take a look at the links OP posted? I interpret their comment very much tongue-in-cheek.
:)
The focus these days is on tooling instead of code, and that has resulted in fragile infrastructures serving massive amounts of code in order to provide relatively little functionality for the end user -- all because we'd rather use some extra cheap electricity than actually learn how to write highly-performant code. I'm really not sure why you view that as a positive.