top | item 44256670

(no title)

jowday | 8 months ago

Don’t ever use Next. Terrible developer experience, vendor lock in, weird undocumented conventions that make building anything other than some kind of B2B SaaS CRUD site full of undocumented foot guns. My favorite thing I’ve encountered is the Next <Image /> tag somehow dropping the FPS on a webgl scene on the same page to 2 FPS.

discuss

order

aitchnyu|8 months ago

How was Vercel able to frog-boil normal React users with vendor lock-in? React was supposed to be Meta's baby and open source was supposed to defeat vendor lock-in.

whoisyc|8 months ago

They exert immense influence over the React ecosystem, even its documentation.

Example:

https://react.dev/learn/creating-a-react-app

If you are new to React and just figuring out how to get it running, you will likely end up on this page. The first recommendation is Next.js.

The real best way for a beginner to start is IMO Vite. Comes with everything you need to get started and lets you choose what to do next. Curiously, the link to Vite only appears at the very bottom of the page and is implied to be only for those not already served by other options. Wink wink nudge nudge.

ryandvm|8 months ago

I never understood why Facebook was so invested in React. Why can't a 2 trillion dollar company afford to build mobile apps for two platforms?

pas|8 months ago

because they pushed shiny new features that are reaaaallly good for a certain set of commercial users (think webshops, where time to first contentful paint equals time to money)

and the tech is not bad, it's just meh (immature and a bit misguided) after all

by flipping the whole thing upside down, defaulting to server-side, a lot of previously hard problems became easy (the usual glueing of different APIs - user, CMS, metadata, "security", adtech, blablabla - translate to `const user = await auth();` and so on, and still after processing the request emitting a React page is kind of nice, Server Actions are also nice because Next manages the API URLs for you), and since mobile technology (phones and networks) evolved a lot it's not a problem to do a request for each page (especially on webshops where Next prefetches the ha$$y path))

but it's still a very subpar backend framework :/

bravesoul2|8 months ago

Does Vite at least create enough competition?

shoeb00m|8 months ago

Because create-react-app was awful

toastercat|8 months ago

100%. Used it last year for the first time in a long time and was surprised by how awful the experience was. Docs were vague and hard to navigate. My web application seemed slow by default. We also had a hell of a time trying to deploy it with Docker to AWS using the sample Dockerfiles provided by Vercel (not sure if this is still the case).

koonsolo|8 months ago

Did you pinpoint the <Image /> issue, or are you just assuming it must be NextJs?

I work with NextJs, <Image> and RTF, and never encountered such problem.

jowday|8 months ago

The most confusing part is that it only happened really intensely on just one developer's machine.

I'll admit that the way we were using the image tag was a little unusual, but still something that was imminently supported by a plain HTML image tag.

My point is more that Next is such a bizarre black box that things like this were a regular occurrence.

To clarify: yes, it was the next Image tag. The moment we switched to using a plain image tag it resolved itself.