News for hackers. Stuff that matters.
Re:HTML First – Six principles for building simple, maintain... by codeptualize on Monday November 13, 2023 @03:05AM (#38248033)
How are you going to do the updates without FE logic? Refresh the page constantly?

The client being able to fetch just updates is a lot more efficient. If you open a web socket the server can even push.

You make a great point why we use client side solutions.

Re:HTML First – Six principles for building simple, maintain... by listenallyall on Monday November 13, 2023 @03:23AM (#38248137)
> How are you going to do the updates without FE logic? Refresh the page constantly? The client being able to fetch just updates is a lot more efficient. If you open a web socket the server can even push.

That's exactly why HTMX has gained immediate traction so quickly, it solves many of these exact problems elegantly and easily, much of the time without a single line of JS.