Live data from Hacker News

Datastar: Web Framework for the Future?

chrismalek.me

91–100 of 161 posts

Re: Datastar: Web Framework for the Future?

#91
post #72

Reading tfa I kept wondering "is this yet another framework where every click is a server round trip?" Judging by the demos¹, the answer is yes? If this is "the Future", I'm branching off to the timeline where local-first wins. ¹. https://data-star.dev/examples/click_to_edit

A JavaScript framework, built by a person who hates JavaScript doesn’t sound right

Re: Datastar: Web Framework for the Future?

#92

Earlier quoted context omitted.

Hello, I've heard of Datastar before but didn't really pay attention to it since all the air in the room was sucked up by HTMX. I tried HTMX and I found that it is really, really hard to manage complexity once the codebase gets big. Is there an example of Datastar being used with Go in a highly interactive application that goes beyond just a TODO app so I could see how the project structure should be organized?

the site is just a Go app, https://github.com/starfederation/datastar/tree/develop/site

oh my

Re: Datastar: Web Framework for the Future?

#95

Nitpicking 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...

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.

> Sorry, we can't beat physics.

In a way, you can with optimistic updates. That requires having a full front end stack, though, and probably making the app local-first if you really wanted to hammer that nail.

There's always the cost of the round trip to verify, which means planning a solid roll-back user experience, but it can be done.

Re: Datastar: Web Framework for the Future?

#96
post #80

Future? 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.

Re: Datastar: Web Framework for the Future?

#97
post #72

Reading tfa I kept wondering "is this yet another framework where every click is a server round trip?" Judging by the demos¹, the answer is yes? If this is "the Future", I'm branching off to the timeline where local-first wins. ¹. https://data-star.dev/examples/click_to_edit

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

Re: Datastar: Web Framework for the Future?

#98

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

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.

Re: Datastar: Web Framework for the Future?

#99

Nitpicking 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...

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?

#100

Earlier quoted context omitted.

I'm very much of the opinion that progressive enhancement leads to lowest common denominator and you should just do a static MPA (nothing wrong with that). Modern browsers are a combination of HTML+CSS+JS and you should just embrace that as what modern hypermedia is. We aren't fighting against the browser. If you want just links and forms, you should just do that and have less code to maintain. But in my experience t…

> But in my experience that's not what most are looking for in their apps. What are they looking for (in your experience)? In my experience, most people use an app (website) to solve some problem (buy something, pay taxes, whatever). They care more about functionality than how smooth the loading animation and transition was. Progressive enhancement seems like a very good way to build something people actually use (an…

Progressive enhancement is about accommodating JS being disabled. You have missed, in your description of what users care about, anything about disabling JS. Having JS disabled is a preference observable among Opinion Havers which crawl out of the woodwork on HN, but not observable among your target audience, even when your target audience is mostly HN.
Post reply on HN