Earlier quoted context omitted.
yes, from reading the docs, there's a websocket. Making a 'server call' on each interaction is also what web apps used to do before SPAs were a thing. And in many cases it's what SPAs do as well. Of course, it depends what counts as an 'interaction', but that's been the case since JavaScript existed.
Yep. And nowadays you can deploy apps really close to users so latency is really low. If you have <100ms you don't really notice the latency.
React, but in Python
21–30 of 179 posts
Re: React, but in Python
#22I thought generating html from function calls went out with the dinosaurs. We back doing it again?
I mean, react does it. It never left. JSX compiles to function calls.
Re: React, but in Python
#23I thought generating html from function calls went out with the dinosaurs. We back doing it again?
https://htmx.org/ Says otherwise, so does https://blog.appsignal.com/2022/07/06/get-started-with-hotwi...
Re: React, but in Python
#24Re: React, but in Python
#25Earlier quoted context omitted.
Yep. And nowadays you can deploy apps really close to users so latency is really low. If you have <100ms you don't really notice the latency.
But... 99% of insert-startup-product-built-on-React (or honestly, any framework) is typically super slow (for whatever reason that might be). Sluggish, not super responsive, laggy UI, however you want to describe it. A far cry from the snappiness of desktop apps from 25+ years ago. Something or some collection of people are doing something wrong, somewhere in the chain. So isn't this just yet another way to further e…
Was insert-startup-product-built-on-.NET fast 15 years ago, for example?
Not trying to be controversial, just wondering.
I agree that a product built by clueless developers stringing together random libraries or bad custom code in React would create slow products.
In your spirit, I might argue that thinking "reactively" and client-centric tends to lead to unneeded requests.
Developing without meaningful API contracts or basic CS skills also makes it easy to unintendedly blow up network payloads.
Caching is hard though.
Have you worked on bad PHP applications that reload on every interaction without caching?
Re: React, but in Python
#26Earlier quoted context omitted.
Why?
He means API calls, obviously overloaded the term "function calls" a bit In this case, I think it's also clear that most things you'd call an "application" abhor this behavior, which is why heavy clients are so popular, and small shops without frontend engineering talent are making a big push away from heavy clients which raises all the hubbub about HTMX etc
Re: React, but in Python
#27Earlier quoted context omitted.
Yep. And nowadays you can deploy apps really close to users so latency is really low. If you have <100ms you don't really notice the latency.
But... 99% of insert-startup-product-built-on-React (or honestly, any framework) is typically super slow (for whatever reason that might be). Sluggish, not super responsive, laggy UI, however you want to describe it. A far cry from the snappiness of desktop apps from 25+ years ago. Something or some collection of people are doing something wrong, somewhere in the chain. So isn't this just yet another way to further e…
Re: React, but in Python
#28Earlier quoted context omitted.
Why?
He means API calls, obviously overloaded the term "function calls" a bit In this case, I think it's also clear that most things you'd call an "application" abhor this behavior, which is why heavy clients are so popular, and small shops without frontend engineering talent are making a big push away from heavy clients which raises all the hubbub about HTMX etc
No they literally meant generating html like h1() rather than in something like jsx templates
(I initially wasn't sure if they were talking about the model of server side rendering with client side events passed back to the server through a websocket either though)
Re: React, but in Python
#29Nice! I believe this is a really good approach for making web apps. Best part is probably that you save time by not having to implement some sort of JSON API for your frontend to communicate with your backend. I've been working on a similar thing in Ruby. https://github.com/mayu-live/framework