8 ms·
Dead Framework Theory
- gibbitz 1y agoThis is the AI apocalypse. Not AI nuking us, but nuking choice.
- grebc 1y agoJust write some code that uses your preferred framework?
- Cthulhu_ 1y agoNothing different then - before AI it would have been search engines or social networks / upvotes of the masses. The common factor is the reader, taking what the search engine, SO commenter or AI takes as gospel. A good software developer can judge multiple inputs on their own. And if someone doesn't care what an AI does it really isn't important what they are having it build or what tool it uses, clearly.
- add-sub-mul-div 1y agoThat was depressing as shit.
- tow21 1y agoOn the plus side, maybe this means the endless churn of JS libraries will finally slow down and as someone who isn’t a JS developer but occasionally needs to dip their toe into the ecosystem, I can actually get stuff done without having to worry about 6-month old tutorials being wrong and getting caught in endless upgrade hell.
- grebc 1y agoFor what it’s worth - vanilla JS is pretty darn good and if you’re only dipping in for some small functionality I highly doubt a framework brings much benefit.
- jfengel 1y agoI find vanilla JS unusable for anything bigger, though. It was designed for quickie scripts on throwaway web pages, but it's not great for anything you'd call a web app. Typescript, however, does scale pretty well. But now you've added a compiler and bundler, and might as well use some framework.
- grebc 1y agoRight tool for the right job. I’ve written some pretty complicated vanilla JS and it works fine. I’m not dealing with other people crappy code however so YMMV.
- andrewl-hn 1y agoHas this actually been true, though? I admit I don’t write JavaScript much recently, but to me it feels like things have pretty stabilized. React released hooks in early 2019 before Covid, and after that things don’t really change much at all. At this point there are several large Rust UI libraries that try to replicate this pattern in web assembly, and they all had enough time to appear and mature without the underlying JSX+hooks model becoming outdated. To me it’s a clear sign that JS world slowed down.
- xerox13ster 1y ago
- simonw 1y agoThe argument here is that React has permanently won because LLMs are so heavily trained on it and default to it in their answers. I don't buy this. The big problem with React is that the compilation step is almost required - and that compilation step is a significant and growing piece of friction. Compilation and bundling made a lot more sense before browsers got ES modules and HTTP/2. Today you can get a long way without a bundler... and in a world where LLMs are generating code that's actually a more productive way to work. Telling any LLM "use Vanilla JS" is enough to break them out of the React cycle, and the resulting code works well and, crucially, doesn't require a round-trip through some node.js build mechanism just to start using it. Call me a wild-eyed optimist, but I'm hoping LLMs can help us break free of React and go back to building things in a simpler way. The problems React solve are mostly around helping developers write less code and avoid having to implement their own annoying state-syncing routines. LLMs can spit out those routines in a split-second.
- michaelyin 1y ago[dead]
- jq_2023 1y agowhat about the value of abstraction to readability and maintainability? Do you really want to be stuck with debugging/upgrading and generally working with such low level vanilla js code when elegant abstractions are so much more efficient ?
- Fire-Dragon-DoL 1y agoTo be fair, React is a very leaky abstraction, I wouldn't define it "elegant". It does work at simplifying things for certain usecases though
- simonw 1y agoI've been leaning more on web components as an abstraction here, once an LLM can take care of their boilerplate they're a pretty nice way to modularize frontend code.
- 1y ago
- timinou 1y agoI don't buy it either. I've been building my own backend framework for the past 2.5 years, and even though it's a DSL over Python and there's no documentation online and barely one in my computer, Claude Code understands it with enough usage examples in my codebase. In front-end as well—I've been able to go much farther for simple projects using alpine than more complex frameworks. For big products I use Elm, which isn't exactly the most common front-end choice but it provides a declarative programming style that forces the LLM to write more correct code faster. In general, I think introspectible frameworks have a better case, and whether they're present in training data or not becomes more irrelevant as the introspectibility increases. Wiring the Elm compiler to a post-write hook means I basically have not written front-end code in 4 or 5 months. Using web standards and micro frameworks with no build step means the LLM can inspect the behaviour using the chrome dev tools MCP and check its work much more effectively than having to deal with the React loop. The ecosystem is so fragmented there, I'm not sure about the "quality because of quantity of training data" argument.
- kinlan 1y agoAuthor here. This is a fair comment. If you have a corpus that can be used as context already it's not like the LLMs will be forcing you in to React, there's probably enough bias (in a good way) to ensure the tool continues to be useful. What I was trying to get at in the post is that net new experiences is where I see a massive delta
- timinou 1y agoYeah for sure but I think frameworks will adapt. It's like going back to 2002 and saying that it's better to program in Java because of all the IDEs available and all the corporate money being poured into having the best developer experience there can be. But since LSP arrived, developers choosing a smaller language suffer much less. The 'LSP' that would allow new frameworks or languages to shine with coding agents is already mostly here, and it's things like hooks, MCPs, ACP, etc. They keep the code generation aligned with the final intent, and syntactically correct from the get go, with the help of very advanced compilers/linters that explain to the LLM the context it's missing. That's without hypothesising on future model upgrades where fine-tuning becomes simple and cheap, local, framework-specific models become the norm. Then, React's advantage (its presence in the training data) becomes a toll (conflicting versions, fragmented ecosystem). I also have a huge bias against the javascript/typescript ecosystem, it gives me headaches. So I could be wrong.
- miffy900 1y agoI feel like there could be a loophole here for the new-framework-author. Stick to using JSX for the view; JSX is just syntax sugar for built in react functions for constructing a tree, which can be easily swappable with your own implementation. I recall years ago using a babel plugin that just emitted static HTML from JSX. I know Vue.js v2 also had JSX support that way. I think LLMs, despite already being trained massively on React, can easily adapt their output to suit a new framework's-specific API surface with a simple adjustment to the prompt. Maybe include an abbreviated list of type/function signatures that are specific to your new framework and just tell the LLM to use JSX for the views? What I think will definitely be a challenge for new library authors in the age of LLMs is state management. There are already tons of libraries that basically achieve the same thing but have vastly different APIs. In this case, new lib-authors may be forced to just write pluggable re-implementations of existing libraries just to enable LLMs to emit compilable/runnable code. Though I dont know of any state management library that dominates the web like React does with the view layer.
- kinlan 1y agoHuh - that's actually pretty interesting and I hadn't thought of that as an option.. I know Preact was built as a faster alternative while being broadly compatible, but what you are describing is maybe even blending the technologies as that short circuit. neat.
- recursive 1y ago> Stick to using JSX for the view That's what I did. https://mutraction.dev/ https://mutraction.dev/ My framework has approximately zero users and this is not a plug, but the idea is sound and it works.
- contrarian1234 1y agoI'm not really sure why this focuses so much on React, when it's a general "issue"/"feature" More broadly, obviously there is some pressure to use a framework/library/programminglang/editor that has better LLM training. But even before LLMs.. you'd want to choose the one that has more SO questions, more blog posts and books published about it. The one where you can hire experienced programmers. New players has a certain activation energy they need to overcome - which is probably good. B/c it slows down the churn of new shiny with incrementally improvements. I think a paradigm shift is sufficient though. Programmers like new shiny things - especially the good ones that are passionate about their craft
- kinlan 1y agoI used it as an example because I felt the data was pretty clear. I also felt that it follows a very human pattern (generative tools need customers, like other tools before, so they go with what the industry is demanding).... but now we seen an acceleration.
- Incipient 1y agoI find pretty much all models in vscode decent enough on Vue+Quasar. The fact they make bad choices I don't blame on them not understanding Vue. I absolutely wouldn't be swapping because the output 'isn't good enough'.
- gdulli 1y agoAnd while the bulk of the internet stagnates into mediocrity is there a competitive advantage for people who never let their actual skills dull?
- dangus 1y agoMaybe, or maybe not. Is a welder valuable to Ford Motor Company if all their welders are robots?
- Cthulhu_ 1y agoSure. Is there a competitive advantage to people who know COBOL and never bothered to learn Java? At the moment I still consider it a tool alongside all other tool, or else a business strategy next to e.g. outsourcing. My job didn't go away because there's 1000x more of them overseas. But likewise, it also didn't go away because there's individuals 1000x better (educated, developed, paid, connected) than me in the US.
- raincole 1y agoThanks god. The days people kept inventing new JS frameworks or even dialects (coffeescript, remember?) every three months couldn't be gone fast enough.
- DemocracyFTW2 1y agoShoutout to CoffeeScript!
- Cthulhu_ 1y agoCoffeescript was great though, because at the time Javascript was growing fast but the language was developing slowly or not at all. There was also Atscript for a little while which added annotations because Typescript didn't want to add them; they eventually budged and Atscript was dead. Then there was a fork of Node because Node at the time was still tightly controlled by Joyent, whereas its fork (io.js or js.io or something) was an open governance model. It was eventually merged back into node. TL;DR sometimes you need to make an alternative to get the original to move.
- throw_m239339 1y ago> Thanks god. The days people kept inventing new JS frameworks or even dialects (coffeescript, remember?) every three months couldn't be gone fast enough. Coffeescript helped Javascript to evolve the right way, so in retrospect, it was absolutely a good thing. It's like people here don't remember the days of ES3 or ES5... And the days? Remember Typescript right now? Typescript is not Javascript.
- recursive 1y agoOne of the guiding principles of typescript is that its semantics should be consistent with ES. This was not the case for coffeescript. I think TS is doing it the right way.
- sshine 1y agoI embraced this when I had the same realisation that React will get reinforced the most, and vibe-coded something in it. I had to ditch the whole thing and rewrite it in Vue when it got big enough that I couldn’t debug it without learning React. Vibe-coding something in a stack you know or want to know means you can get off your high horse and peek into the engine. I still agree with the sentiment that React is winning; if the competition of volume. But other frameworks won’t stop existing unless you believe that people exclusively choose what is dominant. But there will always be artisans, even after all old people who learned the alternatives were flushed out.
- renewiltord 1y agoLLMs are great at HTMX and Python. Both Claude Code and Codex do well at it so I’m fine with things like that. React is fine but HTMX does well. I also frequently used to copy Claude’s generated React things into ChatGPT and ask it to rewrite them in Vanilla JS and it would work but that was a year ago when artifacts were just being launched.
- righthand 1y agoYou could always write some code in a different framework and help spread around other types of reusable template frameworks. Like in XSLT for example...oh wait... that's been killed off too.
- procaryote 1y agoIf this gets me out of the "This framework that almost everyone uses and is easy to hire for and that works well for a lot of people is literally unusable compared to this new hot framework I fell in love with recently! We need to rebuild everything!"-discussion, I'm fine with it I try to filter out such people in hiring nowadays but sometimes you miss, or come into an existing team with these issues
- the_gipsy 1y agoWhy make all these graphs to show that react is dominating, which we already know, to make a guess? Should have made graphs testing LLMs with different frameworks.
- jnewt 1y agoyup, patterns due to llms may alter languages and preferential bits quite a bit
- bubblyworld 1y agoI don't buy it, I've used LLMs (well, mostly sonnet 4.5 and sometimes gpt5) in a variety of front-end frameworks (react, vue, htmx) and they do just fine. As usual, requires a lot of handholding and care to get good results, but I've found this is true for react codebases just as much as anything else.
- mexicocitinluez 1y ago> I don't buy it, I've used LLMs ( You don't buy what, exactly? > As usual, requires a lot of handholding and care to get good results, but I've found this is true for react codebases just as much as anything else. I think you and others in this thread have either just skimmed the article or just read the headline. The point isn't that you can't use LLMs for other languages, its that the creators of these tools AREN'T using other languages for them. Yes, LLM's can write Angular. But if there's less data to train on, the results won't be as good. And because of this, it's creating a snowball effect.
- hu3 1y agoNot your parent commenter but their point was clear to me. To me, they don't buy the argument that the snowball effect is significant enough to overcome technical merits of different frontend frameworks. And I'll add that: older libraries like React have at least one disavantage: there's a lot of outdated React code out there that AI is being trained on.
- mexicocitinluez 1y agoThat makes sense. > there's a lot of outdated React code out there that AI is being trained on. Yea, but that's better than no code as far as an LLM is concerned, which is what this article is about.
- hu3 1y agoFair, but when the alternative is something like Svelte, there's a lot of new code for AI to train. And specifically Svelte has their own MCP to help LLMs https://svelte.dev/docs/mcp/overview https://svelte.dev/docs/mcp/overview I wonder if React has something to keep AI on their toes about best practices.
- phplovesong 1y agoSo its going to be just like jquery. Never really dying fully.
- Kwpolska 1y agoA blog named "AI Focus" is of course going to push LLMs and vibe coding. But here in the real world, people can still code without LLMs, or use them with a human in control, where the LLM can look at existing code written in a framework that is not React. Also, React was extremely popular before any LLMs were out there. I would not ascribe much of the growth to vibe coding.
- kinlan 1y agoJust to push back on this a tad. Yes there's growth React, it's popular, but it was consistent up until the introduction of some of the more popular code generation tools where there is a clear acceleration (if you believe builtwith.com data) in the last 9 months or so.
- jillesvangurp 1y agoAs LLMs improve, it matters less what they are trained on and more what they understand. I've used codex on some very obscure code bases and frameworks. It's fine. It understands them. It broadly does the right things. It can understand from examples in your code how to use things. To give you one example, I'm using an obscure framework called fritz2 with kotlin-js. Kotlin-js is not that widely used. And I'm probably one of a handful of active users of this Fritz2 framework in the world. There isn't a whole lot of code to train on. And what little there is is probably a bit outdated. It's fine. I've been using codex on some code bases with this with pretty alright results. I also use codex to generate typescript/react code. I'm getting similar results. I had a little wow moment when I asked it to add some buttons and then afterwards realized that it had figured out the localization framework (one of my creations) and added translations for the button labels. All unprompted. It clearly understood the code base and how I like things done. So it just went ahead and did them. The syntax is not a problem. The obscurity of the library is not a problem as long as you give it enough to work with. It does less well coding something from scratch than working on existing code. IMHO, things like react are optimized for humans. They aren't actually that optimal for LLMs to work with. It's actually impressive that they can. Too much expressiveness and ambiguity. LLMs like things spelled out. Humans don't. We're still doing things manually so it helps if we can read and edit what the LLMs do. But that won't stay like that. I think in a few years, we'll start seeing languages and frameworks that are more optimal for Agentic coding tools as they will be the main users. So, stronger typing. More verbosity and less ambiguity.
- z3t4 1y agoA built in feature with frameworks is that you constantly have to update your code to be in sync with the latest version of the framework, this create work for contractors, it's like a taxation of software.
- javcasas 1y agoThe last time we updated react we had to do it because we were using a version so old it had been unsupported for several years. While also using modern components and libraries.
- ramon156 1y agoOof, a lot of unnecessary em dashes. The content is good, I just wish people wrote in their own style.
- gitaarik 1y agoYeah, it makes sense, LLMs are trained on slop, and so they produce more slop. And then everybody uses the same slop. In the meantime real engineers still use the proper tools.
- TZubiri 1y agoThis was true when stackoverflow came out and jquery gave the best upvoteable succint answers. This too shall pass.
- hu3 1y agoSome with Windows. Sure it has a lot of staying power because of network effects (and qualities like backwards compatibility and gaming). But it's not a terminal, self-reinforcing snowball, force of nature like the article implies React is.
- TZubiri 1y agoThere's some properties that ensure it's moat. Developers need to learn React and there's not much transferability of knowledge from the underlying tech. If I know Debian, I can understand most of Ubuntu. However if I know HTML, I'll probably understand react even less. This is a great tactic of having a vendor lock in not only at the infrastructure level of a company, but at the programmer level.
- TZubiri 1y agoI noticed something similar. Even non technical clients now come with technical requirements because they use chatgpt, and it's always a react app. Poking client reqs is such a high value skill, most freelancers will just build what the client asks, "ok here's a react frontend with a postgres db and a crud app for your ecommerce website" instead of asking what the functional requirements are, maybe it can be a shopify thing, or just post it on amazon, or maybe a plain html app (optionally with js) It can be valid to ask for a brick house if you know what the other ways to build a house are, but if you just asked chatgpt for a house plan and it said "bricks", because it's the most housey thing and you said ok because it rings a bell and sounds housey, having a dev that asks and tells you about wooden houses or steel beams or concrete is the best that can happen. I appreciate when it happens the other way around, I go to a lawyer and tell them I want a corp, they start off assuming I know my shit, and after 5 minutes we are like, oh I don't want a corp
- janislaw 1y agoThe LLM owners also don't like to burn the knowledge into model weights or prompts, sharing some concerns of the post, e.g. freshness. RAG is the new hotness.
- aatd86 1y agoAs someone who is currently writing their own js framework, llms are able to generate code quite easily. So I am not worried that we will be able to see new frameworks. Now, about the incentives? Probably less inference costs for llms, which probably means that they are more legible than the current state of the art for humans as well. Less API changes than let's say react also means that the generated code as less branching although llms can adapt anyway. Cheaper. Will probably be closer to the platform too (vanillaJS).
- atmonostorm 1y agoI don’t think 2004 was an appropriate time frame for the start of a “react usage over time” graph…
- mcphage 1y agoI don’t think “React is unstoppable because a vast wave of AI slop sites were written using it” is really the argument the author thinks it is.
- w4 1y agoBecause of benchmarking LLMs have also been pushed towards fluency in Python, and related frameworks like Django and Flask. For example, SWE-Bench Verified is nearly 50% Django framework PR tasks: https://epoch.ai/blog/what-skills-does-swe-bench-verified-evaluate https://epoch.ai/blog/what-skills-does-swe-bench-verified-ev... It will be interesting to see how durable these biases are as labs work towards developing more capable small models that are less reliant on memorized information. My naive instinct is that these biases will be less salient over time as context windows improve and models become increasingly capable of processing documentation as a part of their code writing loop, but also that, in the absence of instruction to the contrary, the models will favor working with these tools as a default for quite some time.
- thr0w 1y agoLLMs will not abstract away framework choice. They will concrete it away. React is for humans. You'll know we're out of the AI stoneage when coding models just generate direct machine instruction, because their output won't need to be touched by humans.
- Artoooooor 1y ago"You’re not competing with React’s technical merits—you’re competing with React’s statistical dominance" is the industry so bad, that it can't decide framework on technical merit?
- w10-1 1y agoYes, new frameworks will have a harder time getting uptake. Worse, with LLM's easily generating boilerplate, there's less pressure to make old framework code concise or clear, and the superior usability of a new framework won't be a big draw. But coding is a primary application/profit center, and you can be sure they'll reduce the latency between release and model support, and they'll start to emphasize/suggest new frameworks/paradigms as a distinguishing feature. My concern is about gaming the system, like SEO. If LLM coding is the gatekeeper, they'll be corrupted by companies seeking access/exposure. Developer uptake used to be a reasonable measure of quality, but in this new world it might only reflect exposure.
- kderbyma 1y agoIt would be nice if JSX was natively supported in the DOM as some kind of syntactic sugar on components by the browsers and this would fix the cycle of abuse and allow us to eventually get back to less compilation except for typescript