4 ms·
Server-side apps cannot provide optimistic UI. No matter how you feel about it, they are limited in this capability compared to client-side apps. The user doesn
by fogzen 3y ago
Server-side apps cannot provide optimistic UI. No matter how you feel about it, they are limited in this capability compared to client-side apps. The user doesn’t care about the technology. For example, imagine a todo app that shows a new todo immediately. Or form validations that happen as soon as data is entered. That’s a superior experience to waiting on the server to continue interaction. Whether that’s harder to engineer is irrelevant to the user. We should be striving for the best possible user experience, not what we as engineers personally find easy or comfortable.
HTMX is cool. HTMX may fit your needs. But it’s not enough for providing the best possible user experience.
- adamckay 3y agoYou don't have to be restricted to just using htmx, you can use it with client side Javascript to give you that interactivity you need in the places you need it. Indeed, the creator of htmx has created another library called hyperscript which he's described as a companion to htmx. https://hyperscript.org/ https://hyperscript.org/
- sublinear 3y agoAwful. The last thing we need is another layer further away from plain javascript cluttering up web pages.