Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you ask it to build a headless frontend web app, it immediately starts generating code with Next.js. I’ve always wondered how it was trained to default to that choice, given the smorgasbord of web frameworks out there. Next.js is solid, but it’s also platform-ware, tightly coupled to commercial interests. I wish there were more bias toward genuinely open-source technologies.


There's probably different ways the LLM converged to it.

One could be for example: from people asking online which tools they should use to build something and being constantly recommended to do it with Next.js

Another could be: how many of the code that was used to train the LLM is done in Next.js

Generally, the answer is probably something along the lines of "next.js is kind of the most popular choice at the time of training".


To me it feels like the default choice in the industry, perhaps it's not and I'm wrong but if I could have that feeling I can see how the AI can as well.


I've never seen next.js in the wild. I have seen plain React plus dotnet, though, a million times.


It is a trap. But once you realise that you are already too deeply invested.


Just append to your prompt "not using a framework developed by a company that supports a genocidal fascist regime"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: