by ilrwbwrkhv · 1y ago · 0 comments
I know for a fact a bunch of kids now do not even know that HTML is what gets rendered in the browser. They think that React is itself what browsers render.
Not to mention the absolute idiot of a CEO of Vercel who thinks React is the Linux kernel of development.
https://news.ycombinator.com/item?id=42824720
I have been around for long enough to remember the vanilla js, jQuery, Knockout, and Angular 1 days and it always came with a baseline mess.
React (sometimes just JSX) can be used sensibly.
Instead, I blame VC-backed tooling like Vercel, Next, Apollo, Prisma, and all the other rubbish Webdevfluencers are paid to fill the web with.
Come to think of it, every part of building software is bloated. From Notion boards to questionable DB choices.
I would like to add as someone would has no problems working without any library that the DOM is one of worst APIs ever invented by humankind and that "reactive programming" is a superior model to what we used to do before.
That being said: - NextJS rolled back years of tooling improvements, it's much slower than Vite - I just statically built a NextJS and a page that has no interactivity downloads 100KB of JS to do nothing with it - Facebook decided to make a "compiler" for React instead of just not pointlessly re-rednering components by default - Compared to Preact which is almost a drop in replacement, React is huge! This shows how little Facebook cares.
Ironically, they are right and you are wrong.
HTML is a serialization format, which browsers use to construct a DOM in memory.
React renders directly to the DOM without ever serializing anything to HTML.
The fact that you got this wrong and are so highly upvoted really drives home the “old man shakes fist at clouds” nature of this thread.
My understanding is that HTML is an input to the browser, which is translated to the DOM. (Which is then translated to painting the screen, handling inputs etc.) This is an important distinction in context of your point. React (Or any VDOM or similar JS lib) isn't creating HTML; it's creating a set of DOM manipulation instructions in JS.
I think many of Blow's points are good, but that he overlooks that much of the degradation isn't a facet of some kind of generational drift or information entropy but is straight up malevolence on the part of people making the decisions.
So it's not hidden in react itself but rather in the constructed-on-page-load-and-hard-to-disable-just-parts-of space which react creates.
I'll confess to not having merely read about this skulduggery and not analyzed it myself. But it certainly explains why Facebook open sourced react and also why those things are everywhere. Is there a better explanation?
My kingdom for native JSX in the browser. That would be awesome.
Something similar to how we have WebGL and Canvas, but for pure JavaScript UI without the extra step of DOM reconciliation.
There’s a small (and growing) cohort of people working on rendering React Native directly on canvas or webgl (I think). Supposedly gives you super smooth UX, but I haven’t knowingly tried it yet.
I just threw up in my mouth a little. I can’t wait to:
- not be able to double click to highlight text a word at a time, because the developers of the “super smooth UX” didn’t know that’s what typical text does.
- or triple click to highlight a paragraph at a time
- or have the standard menu available when I highlight text (which I often use to look up words, etc)
- or have text editing support any of my OS’s key bindings, like ctrl-left to move the caret one word, ctrl-shift left to highlight in the process, etc etc
- or any one of the hundreds upon hundreds of common control behaviors, accessibility behaviors, system-wide settings on text behaviors, etc etc etc be respected
Of course if they’re anything like the Flutter folks, they’ll look at every one of these things and say “well, I guess we gotta implement all that” rather than understanding the basic fact that common UI elements offered by the OS should actually be reused, not reimplemented poorly.
I really worry about what software will look like 20 years from now. At this rate we’re just going to forget every thing we learned about how it should behave.
Maybe then the circle(jerk) will be complete.
Ugh.
I think typical front end developers (or the managers they report to) don't really know what smooth UX is. They keep reinventing things like scrolling.
Seriously, anyone who things software as a discipline is bad, well, they're right, but they have no appreciation for how appalling "UX" is today vs even 1990.
Sounds terrible for accessibility.
JSX is one of those technologies that was clever for what it was, but should have never caught on. Adding another layer of abstraction on top of JSX is the type of behavior at the root of the civilizational collapse argument.
Just because you can doesn't mean you should.
If someone want to build horrific abominations in rheur spare time at home, I won't stop them. They might become better engineers through that experience. But don't come to me suggesting actually using one of these horrors.
And while I despise react for its architectural delusions, I still use a js framework to render my webapps. I also don’t see any bloat or something, they all render instantly on both my pc and my phone.
That's because both our phones and computers have multicore CPUs running billions of instructions per second per core. So all the bloat gets executed quickly, and we don't get to notice that it's there.
But it's there. And it's dirty.
A new web browser or another JS runtime won't be the solution to the current mayhem. What could actually be helpful is an alternative to the "web browser" that operates on an entirely different stack than the currently JIT overdosed JS engines. But since everybody is well accustomed to and excited about improvements within the current madness(like this comment), adaptation of any alternative web browser like software will be highly unlikely even if it were several folds better at transferring media and rendering graphics with a much simpler approach and high performance. We are officially fo*ked.