top | item 45495221

(no title)

thebigkick | 4 months ago

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.

discuss

order

jerojero|4 months ago

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".

b_e_n_t_o_n|4 months ago

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.

array_key_first|4 months ago

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

nicce|4 months ago

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

intrasight|4 months ago

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