UX: Immediate Intent vs. Optimistic Update romshark.github.io · 9 points · 2 com...

@best

UX: Immediate Intent vs. Optimistic Update romshark.github.io · 9 points · 2 comments · HN thread

TL;DR A web-design essay by romshark argues that UI should show the real state of an operation (pending, confirmed, failed) instead of optimistically showing success before the server saves it. It backs the case with medical-device and EHR failure examples, research on trust in automation, and latency and architecture advice for making apps fast enough to skip optimistic updates.

  • Optimistic updates show a result before it is saved, which can hide failures; the author cites a VA system that lost 11,000+ clinical orders silently, harming 149 patients, and an insulin pump that displayed 0.0 units of active insulin after a large dose.
  • Immediate intent means the UI always reflects what is actually happening, for example by showing a pending state on the card and rolling back to the last confirmed position with an explanation if the request fails.
  • The author claims that once software has misled users, they stop trusting it and double-check everything, so the time optimistic updates save is lost; the author admits these numbers are not empirically measured.
  • Responses under about 100 ms feel instant, so the author recommends real speed through faster backends and servers near users rather than hiding latency.
  • Practical advice includes aborting outdated in-flight requests, ignoring late responses, using idempotency keys for safe retries, using ETag/If-Match to avoid silent overwrites, and respecting reduced-motion settings.
  • The essay extends the argument to social media, suggesting even a like button is not harmless because a lost like can carry social meaning for the sender and receiver.

Discussion The thread is very small, with one top-level comment from the author and one short reply. The author explains they are tired of arguing with frontend developers about optimistic updates and invites challenges via GitHub issues. The only reply agrees strongly, using games as a counterexample where optimistic updates produce frustrating outcomes. The mood is supportive and brief, with little pushback.

  • Optimistic updates are harmful outside narrow cases (most): The commenter who replied agrees that optimistic updates should be avoided except possibly in games, and gives an example of frustration from a shot that appears to register before it is confirmed. They endorse immediate intent as the better default.
  • Author invites challenge and wants to be proven wrong (some): The author says they may be wrong and asks for counterarguments in the GitHub issues, framing the essay as an invitation to debate rather than a settled position.

#optimisticUpdates #UXDesign #frontend #reliability #latency #webDevelopment