News for hackers. Stuff that matters.
Re:Why does everyone suddenly hate Single Page Apps? by rhaway84773 on Thursday February 23, 2023 @07:44AM (#34909708)
Proper SPA frameworks have been able to do this extremely well for nearly a decade now, without any effort from the developer.
Re:Why does everyone suddenly hate Single Page Apps? by dolni on Thursday February 23, 2023 @09:45AM (#34911210)
So you now need a framework to accomplish something browsers have been able to do natively for multiple decades. And we're calling that progress.
Re:Why does everyone suddenly hate Single Page Apps? by pram on Friday February 24, 2023 @08:42PM (#34932875)
window.history is from the HTML 5 spec from 2011. It’s as native as anything else.
Re:Why does everyone suddenly hate Single Page Apps? by acdha on Friday February 24, 2023 @08:55PM (#34932969)
The API is mature but usage is not. I still see cases where companies screwed up state management on at least weekly basis so clearly the SPA-building community is still lagging behind where the server-side world was three decades ago.
Re:Why does everyone suddenly hate Single Page Apps? by berkle4455 on Friday February 24, 2023 @08:42PM (#34932882)
Just wait til you learn about SSR
Re:Why does everyone suddenly hate Single Page Apps? by rektide on Saturday February 25, 2023 @02:39AM (#34934738)
For real.

The solution to bad url routing in SPAs is distributing our work across a madcap wild ass front-end/back-end split with ill defined borders & no protocols? What's happening now is 500% more complicated.

But the magic is well packaged & available by default.

The SSR world has frameworks: but as another commenter pointed out, React stopped at being merely a library. And so it's been anarchy, deciding how to SPA, with many folks not realizing how many needs/libraries they really needed to have.

I'm hugely in favor of SPAs, but there's been a lack of well-integrated sensible approaches. The attempt to identify & only solve a narrow window of concerns has hurt our ability to imagine what apps are, left huge voids all over.

Re:Why does everyone suddenly hate Single Page Apps? by guywhocodes on Friday February 24, 2023 @09:01PM (#34933009)
And yet hardly any SPAs manage to use it