Earlier quoted context omitted.
A JavaScript framework, built by a person who hates JavaScript doesn’t sound right
With additional swipes at ecosystems and ‘must be written in go’ with no real justification as to _why_ more than the developers preference
Datastar: Web Framework for the Future?
111–120 of 161 posts
Re: Datastar: Web Framework for the Future?
#112Future? Looking at some of the examples, this seems a lot like the same old web server frameworks we had like 15 years ago, maybe more. Granted they didn’t have SSE but regardless the DX was pretty bad. I don’t see a compelling reason to go back.
People with 15+ years of experience are not the target audience for this framework.
I feel if anything Datastar is targeted ad veteran devs who are done with endless ecosystem churn, who want to use their favorite backend language and to make performant fullstack realtime collaborative apps.
If you haven't run the gauntlet you probably won't see the appeal.
Re: Datastar: Web Framework for the Future?
#113HTMX's OOB swap appears to be an after thought.
Re: Datastar: Web Framework for the Future?
#114> Backend Setup
> Data star uses Server-Sent Events (SSE) to stream zero or more events from the web server to the browser. There’s no special backend plumbing required to use SSE, just some syntax. Fortunately, SSE is straightforward and provides us with some advantages.
As a django developer, this is very far from true. With htmx i get almost no backend changes (mainly in template code), where datastar would require me to rewrite it and may not be possible to implement at all.
Re: Datastar: Web Framework for the Future?
#115From datastar's docs: > Backend Setup > Data star uses Server-Sent Events (SSE) to stream zero or more events from the web server to the browser. There’s no special backend plumbing required to use SSE, just some syntax. Fortunately, SSE is straightforward and provides us with some advantages. As a django developer, this is very far from true. With htmx i get almost no backend changes (mainly in template code), where…
If laravel can do it django can.
Re: Datastar: Web Framework for the Future?
#116Nitpicking but > SSE enables microsecond updates, challenging the limitations of polling in HTMX. How is this true? SSE is just the server sending a message to the client. If server and client are in opposite sides of the world, it will not be a matter of microseconds...
Say your ping is 100 (units are irrelevant here). It will take you 100 before you see your first byte but if the server is sending updates down that connection you will have data at whatever rate the server can send data. Say the server sends every 10.
Then you will have updates on the client at 100 110 120 130 etc.
Re: Datastar: Web Framework for the Future?
#117Earlier quoted context omitted.
Well obviously there's a difference between latency and throughput. Of course it's going to be microsecond plus your rtt/2. Sorry, we can't beat physics.
Can't beat physics but can write better copy.
Re: Datastar: Web Framework for the Future?
#118Earlier quoted context omitted.
Well obviously there's a difference between latency and throughput. Of course it's going to be microsecond plus your rtt/2. Sorry, we can't beat physics.
Everyone knows no one can beat physics. That doesn't excuse claiming you can beat physics.
Re: Datastar: Web Framework for the Future?
#119Re: Datastar: Web Framework for the Future?
#120Earlier quoted context omitted.
With additional swipes at ecosystems and ‘must be written in go’ with no real justification as to _why_ more than the developers preference
Robust performance, error handling that's not stuck in 1982, and cross platform would be my guesses, but agree the OP could be more spicific as there are more benefits.
There's built in cross compilation for building a static binary across window/mac/linux.
It's the number 1 feature in Go, lol.