News for hackers. Stuff that matters.
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by henning on Saturday May 03, 2025 @03:38PM (#43881541)
> hitting a GraphQL API (Hasura) for getting data, and caching as much as possible using Incremental Static Revalidation. The first load was often a bit slow, but caching helped.

Why do you need GraphQL here?

If your developer workstation can't send a few KB of data over a TCP socket in a reasonable amount of time due to the colossal amount of Zoomer JavaScript abstraction nonsense going on, something has gone terribly wrong.

The whole idea of needing "islands" and aggressive caching and all these other solutions to problems you created -- that you have somehow managed to make retrieving a trivial amount of data off a flash storage device or an in-memory storage system of some kind slow -- is ludicrous.

Re:We Fell Out of Love with Next.js and Back in Love with Ru... by ezekiel68 on Saturday May 03, 2025 @06:11PM (#43882779)
Yeap. Once I squinted hard enough at GraphQL, I realized it was a tantrum against coordinating front end calls with back-end API signatures efficiently, masquerading as a solution. A classic end-around.

What's funny is that people struggling after deploying it now think that they have invented the N+1 problem.

Re:We Fell Out of Love with Next.js and Back in Love with Ru... by dyogenez on Sunday May 04, 2025 @02:12PM (#43888344)
> Why do you need GraphQL here?

The app was initially client-side only. I choose GraphQL over REST because Hasura created a super quick API for the database.

Also, our API is public! We started as an alternative to Goodreads when they closed their API.