UX: Immediate Intent vs. Optimistic Update

romshark 31 points 21 comments November 27, 2026
romshark.github.io · View on Hacker News

Discussion Highlights (8 comments)

romshark

I've grown tired of explaining to frontend devs why "optimistic updates" are harmful and why immediate intent is always better, so I invested a couple hours of my life and some amount of Claude tokens to explain this once and for all. Let's not make software bad by design, let's make good reliable software we can trust. P.S. maybe I'm wrong? Challenge me in the GitHub issues!

Spivak

Now do why showing the user the actual error is better than "something went wrong" every time.

dutchCourage

This is nicely done, I like the animated examples! I somewhat disagree with the premise. I would distinguish between Web behaviors and App-like behaviors. On the web, when submitting a form or clicking a "cancel subscription" button, we absolutely need confirmation that the thing we want to do has happened, otherwise it's lost. When building a web app, the right way to go is generally offline first. I would argue that the behavior you show in the to-do list examples is very much optimistic updates, even when you choose to display that syncing is in progress. It's also the right way to go for the pill example. What if I take my pill while commuting underground with bad reception. I'd prefer the action to be saved locally and synced later. The "like" action is an exception here. Ideally it would also be instant and synced later, but the approach most apps take is that they can afford to lose a "like" if something goes wrong. It's not a critical action. They trade off accuracy for simplicity of implementation.

greatgib

It is the AI generated slope standard page template. Turn me down immediately and for good reason: You have a wall of text, and image and animations, 2km long, all blinking in my face, when just one graph and 10 lines of text would have carried the same content in a better way.

Aeseir

forgive my ignorance, but what is the difference between this and pessimistic UI with state?

omeid2

I like the presentation and like everything there can be too much of Optimism in Optimistic UIs. I would call this State Transparent Optimistic ui. STO!

fugaziboutit

This really depends on how edge-case-y a failure is. If it succeeds 999 times out of 1000, you absolutely should display the optimistic state but throw a toast message for a failure. The alternative is making the other 999 users wait for something that virtually always succeeds. There's no justification from a UX POV for keeping those 999 users on the green path in a wait loop -- it's annoying on the vector of 'some people have weaponised shoes therefore we must all take off our shoes at the airport.'

Panzerschrek

> Get there for real, with a faster backend and servers close to your users. This doesn't work as expected if network connection isn't stable. One should not assume minimal latency.

Semantic search powered by Rivestack pgvector
4,908 stories · 45,036 chunks indexed