News for hackers. Stuff that matters.
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by lazypenguin on Saturday May 03, 2025 @03:48PM (#43881621)
That’s absurd, that’s like saying we should only use C++ for backend code because my CRUD business app might one day scale to infinity. Better be safe than sorry and sling pointers and CMake just in case I need that extra juice!
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by willsmith72 on Saturday May 03, 2025 @03:59PM (#43881747)
Not really. If you use react router, you can have a client side js app and add SSR with a couple of hours work. You have your cake and eat it
Re:We Fell Out of Love with Next.js and Back in Love with Ru... by quantadev on Saturday May 03, 2025 @08:31PM (#43883510)
imo, even if the only "interactivity" a web app has is just a login page, then even that alone is enough to warrant using a framework rather than doing direct DOM manipulation (or even worse, full page refreshes after a form submit).

It's not about using the most powerful tool always, it's about knowing how to leverage modern standards rather than reinventing and solving problems that are already solved.

Re:We Fell Out of Love with Next.js and Back in Love with Ru... by yawaramin on Friday May 09, 2025 @04:21PM (#43940544)
> ...a web app has is just a login page, then even that alone is enough to warrant using a framework rather than doing direct DOM manipulation (or even worse, full page refreshes

Maybe, but it doesn't necessarily need to be a SPA framework though. There are simpler libraries/frameworks like htmx that considerably reduce complexity and also let you avoid direct DOM manipulation.

Re:We Fell Out of Love with Next.js and Back in Love with Ru... by quantadev on Sunday May 11, 2025 @11:07AM (#43954321)
Yeah, the debate about which framework is best is like debating which programming language is best, in that they all have pros and cons, that can be debated endlessly.

However, in general, whatever's most popular is a strong signal (like a crowd-sourced signal) that it's probably indeed "the best" all around, which are two words that can also, of course, be debated endlessly based on one's personal definition of "best".