News for hackers. Stuff that matters.
Re:It's not just you, Next.js is getting harder to use by cranberryturkey on Saturday June 29, 2024 @04:19AM (#40828654)
Checkout primatejs if you're tired of all the nonsense.
Re:It's not just you, Next.js is getting harder to use by lambdaba on Saturday June 29, 2024 @06:39AM (#40829253)
Why is it great?
Re:It's not just you, Next.js is getting harder to use by cranberryturkey on Saturday June 29, 2024 @07:30AM (#40829566)
It lets you use any ui framework you want
Re:It's not just you, Next.js is getting harder to use by moritzwarhier on Saturday June 29, 2024 @09:18AM (#40830279)
Then what does it do?

Is it similar to Vike.dev?

Re:It's not just you, Next.js is getting harder to use by cranberryturkey on Saturday June 29, 2024 @10:24AM (#40830846)
It allows you to use vue, react, svelte, angular, htmx, solid, etc....and for the backend you can use Go, python, bun/node/deno and/or typescript. We're also releasing a new version soon that will allow for native desktop apps (ie: Tauri)
Re:It's not just you, Next.js is getting harder to use by bryanrasmussen on Saturday June 29, 2024 @10:34AM (#40830918)
well.. sounds nice but some things make me worried:

1. "Use the comfort of one runtime during development and the speed gains of another in production." how is that possible without hitting all sorts of backwards/forwards compatibility issues.

2. The react example you give on the front page does not seem very react-like.

- that said "Write backend code in your language of choice, leveraging the power of Wasm. Mix routes of different backend languages, allowing your application to be written by different teams." sounds like something that you might think who the hell needs that, but I've worked on a few teams, and am on one now that could perhaps benefit from it.

instead what happens now is there is a JS api that sends requests forwards to the actual backend - maybe doing some minimal verification etc. so doubling work - not all places but certain api end points where we don't want to reveal secrets in frontend etc.

Re:It's not just you, Next.js is getting harder to use by terrablue on Saturday June 29, 2024 @11:49AM (#40831419)
Hey. Regarding 1, compatibility is handled by a separate library, Primate's only dependency, rcompat: https://github.com/rcompat/rcompat ; it's a unified compat layer around Node, Deno and Bun.

As for 2, what would you consider a React-like example? The examples on the frontend are meant to illustrate commonalities between different frontends.