4 ms·
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 wr
by DoesntMatter22 4y ago
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.
- 88913527 4y agojQuery codebases are great at 2 LOC and complete nightmares at 2M LOC.
- DoesntMatter22 4y agoAny codebase is a nightmare at 2 million lines don't kid yourself
- sebazzz 4y ago> 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.