Web development may not be your thing.
Datastar: Web Framework for the Future?
81–90 of 161 posts
Re: Datastar: Web Framework for the Future?
#82Earlier quoted context omitted.
You can disable all use of eval with htmx. The tradeoff is one has to write a bit more JavaScript. https://news.ycombinator.com/item?id=43650921
I have thoughts about a fully compliant CSP middleware, problem is it's per language so I'd probably only make for Go (maybe PHP & TS)
Re: Datastar: Web Framework for the Future?
#83It took us a while back in the day after the XHTML arc, but for sure it'll be ok.
I know this looser SGML universe might feel a little kooky, but trust me it wears baggy trousers, rocks gifs with a hard g and offers great .
Re: Datastar: Web Framework for the Future?
#84Re: Datastar: Web Framework for the Future?
#85Nitpicking 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...
Re: Datastar: Web Framework for the Future?
#86I love the idea of datastar, but wonder how does one test it without using e2e testing? Also, I think it would be amazing and so much simpler if instead of using SSE, it just included all the events in a response. Maybe with SSE as an option for those who need true server pushes? I feel like most apps don't require server push, and instead just need a list of events/things to update from an action.
Re: Datastar: Web Framework for the Future?
#87Nitpicking 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...
Re: Datastar: Web Framework for the Future?
#88Really well-written and well-structured post! I'll seriously evaluate Datastar in my next toy project because of the author's praises! For people who are looking for HTMX alternatives, I think Alpine AJAX is another choice if you are already using AlpineJS
Re: Datastar: Web Framework for the Future?
#89Re: Datastar: Web Framework for the Future?
#90Nitpicking 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.