by Alifatisk · 1mo ago · 0 comments
React? We can all criticize it, but it has revolutionized the web. Llama. Did you forget what sparked the whole open-weight wave? It was that. I dislike Meta, but I would not criticize the engineers competence. They have done impressive things, check out their blog if you genuinely are curious.
Now to load a simple website that in the past was a few kB of HTML, CSS and JS you need to download Mb of JS code. Now the browser needs to use Mb of RAM just to display a stupid webpage.
For what? It was better when we had PHP pages that did produce HTML on the server side.
Another thing to me that we have to get Meta discredit for, not something good in any way.
Personally I hate what react has done to the web.
For how unoriginal, unreactive, and mind-numbingly iterative over virtual DOM React is, it should be named Repeat.
"Things seem to hang on in computing just because they work a little bit." -Alan Kay
https://news.ycombinator.com/item?id=8841428
Alan Kay also said this about his famous "Point of View is worth 80 IQ points" aphorism, which I think poignantly explains why React costs a net of 160 IQ points compared to Svelte:
>I have been keeping to "80" IQ points in the saying (thus avoiding inflation). However very few people have noticed there is no sign bit in the aphorism, and that it works just as well for "poor perspectives being worth negative 80 IQ points" (and I think we could claim inflation of stupidity in many bad directions these days ...).
Rich Harris: Rethinking Reactivity:
https://svelte.dev/blog/svelte-3-rethinking-reactivity
>There are some important technical differences (as I explain in the video above, React is not reactive) but conceptually it’s the same thing.