Re:A single-page app is almost always worse than a multi-pag...
by thecatspaw on Tuesday October 30, 2018 @11:52AM
(#18337892)
having worked with JSF, I can safely say that me and server side rendering with peristent client connection to push updates are ... not friends.
You have multiple scopes in the same document. You have the jsp scopes which gets rendered once, when the client requests the page, and the jsf scope which lives longer. Initially when rendering these scopes seem to share variables, but after the request is rendered, the jsp scope gets removed
Re:A single-page app is almost always worse than a multi-pag...
by toolz on Tuesday October 30, 2018 @12:07PM
(#18338078)
I promise you that your complains are with the abstractions chosen and implementation and not the concept. Texas doesn't have any of the issues you're talking about. You don't even worry about the data that populates the view. You simply write view code like any other templating engine that knows how to render itself and when data changes you send a small message to a process that handles updating the client and texas handles all the logic for efficiently updating its client.
Re:A single-page app is almost always worse than a multi-pag...
by sj3k on Tuesday October 30, 2018 @10:54AM
(#18337033)
Is this kinda how next.js works? I have not used it myself but I think it looks neat.
Here's a thread I posted about some FOSS I've been working on that relies entirely on the server for rendering and using VDOM diff/patching on the server for updates. I'm definitely biased, but in my opinion this approach is vastly more user friendly because it enables realtime data updates as easily as request/response style updates.
here's the thread https://news.ycombinator.com/item?id=18318415
if you need some click bait, here's a gif of me in seattle over cell phone internet interacting with a SSR realtime app with the server in cali. https://imgur.com/z8pKt8t - all operations going round trip, with no application level JS written