News for hackers. Stuff that matters.
Re:Why does everyone suddenly hate Single Page Apps? by DoesntMatter22 on Friday February 24, 2023 @09:00PM (#34933007)
I've built so many spa's in virtually every popular framework.

I'm over it. Even the simplest SPAs end up being way more effort than they are worth IMO. I'd write thin API layers and it seemed great.

Recently though. I moved to all backend with some jQuery. I render all the views on the backend and if they need to be swapped out I make a simple ajax call to pull the rerendered days and swap the div. It's like 2 lines of code for me.

Everything is so much faster, primarily because JS has so many gotchas. And so many times where you wonder "wait why isn't the data right here? Shouldn't this have blown up".

There is no appreciable difference to the user here but I can work in a backend lang and sparingly use JS and it's a pleasure.

Re:Why does everyone suddenly hate Single Page Apps? by 88913527 on Friday February 24, 2023 @09:04PM (#34933029)
jQuery codebases are great at 2 LOC and complete nightmares at 2M LOC.
Re:Why does everyone suddenly hate Single Page Apps? by DoesntMatter22 on Friday February 24, 2023 @09:27PM (#34933183)
Any codebase is a nightmare at 2 million lines don't kid yourself
Re:Why does everyone suddenly hate Single Page Apps? by sebazzz on Saturday February 25, 2023 @02:49AM (#34934782)
> Recently though. I moved to all backend with some jQuery. I render all the views on the backend and if they need to be swapped out I make a simple ajax call to pull the rerendered days and swap the div. It's like 2 lines of code for me.

Sounds like one of those bad SPA in the making. You know, without browser navigation, without an url that can be revisited.