News for hackers. Stuff that matters.
Re:Clojure: Realtime collaborative web apps without ClojureS... by dominicrose on Friday April 11, 2025 @07:45AM (#43652758)
It still means less real-time and less interactive and likely more costly. Separating front and server is not a bad thing even if it brings some kind of duplication.

With .cljc files you can avoid the duplication anyway.

Re:Clojure: Realtime collaborative web apps without ClojureS... by lukev on Friday April 11, 2025 @08:49AM (#43653196)
I've had quite my fill of "real time" and "interactive" web pages. Slow, bloated, terrible UX as often as not.

Even Datastar/HTMX might be too much. Server-side HTML can get you very, very far in most applications. It's faster, lighter, and looks and feels cleaner.

Case in point: do you really prefer a heavy, real time interactive message board like the default interface of Reddit? Because we're talking on HN, which is super fast, light, usable, and completely server-side.

Re:Clojure: Realtime collaborative web apps without ClojureS... by recursivedoubts on Friday April 11, 2025 @11:21AM (#43654870)
you might want to consider fixi, our ultra-minimalist implementation of general hypermedia controls:

https://github.com/bigskysoftware/fixi

Re:Clojure: Realtime collaborative web apps without ClojureS... by Capricorn2481 on Friday April 11, 2025 @11:17AM (#43654796)
Htmx is the exact opposite of what they're talking about. There are two concepts here: how you render and where you keep state.

HTMX is real time in the sense that it updates over the wire, but you're still keeping all state on the server side.

I don't want to reload the page to open a drawer. You'll notice HN isn't exactly mobile friendly because that requires hiding enough options that you need drawers or other ways to shrink and expand. You can do that with CSS, but that's still state, just state localized to that page load.

And there are sites that have unavoidably complex session state. You can have a resource that's on half the pages but is expensive to compute. I don't want to load it every time when almost none of it changes. I don't want to cache it on the server if it's a big payload

There's a world of difference between no state and over bloated SPAs