hn.today

UX: Immediate Intent vs. Optimistic Update

romshark.github.io23 points14 comments
Screenshot of UX: Immediate Intent vs. Optimistic Update

The central argument is that networked apps should distinguish between showing a requested action and claiming that it has succeeded. An optimistic update immediately displays the expected outcome before the server confirms it; the proposed “immediate intent” pattern instead makes the action visible as pending, preserving the last confirmed state until the change is saved. If it fails, the interface explains what happened and restores the confirmed state. The distinction matters most when a server is the system’s source of truth; offline and local-first apps have different constraints and trade-offs. A medication tracker illustrates the risk: a user may believe a dose was recorded when the update never reached the server. Examples involving lost clinical orders and insulin-device software show how missing or misleading feedback can have serious consequences.

The case against optimistic updates also rests on trust: after seeing software fail, people may avoid it or check it more closely, while repeated checking can undermine confidence in their own memory. Rather than conceal delay, the piece argues, teams should reduce it through faster backends, profiling, and infrastructure closer to users, while acknowledging that responses under roughly 100 milliseconds can feel immediate. Pending actions need not freeze an interface: a moved card can show intent while remaining in place, then return to its confirmed position if the request fails. The guidance also covers canceling outdated requests, ignoring late responses, safe retries, conflict detection, accessible animation, and pending indicators. Even “harmless” likes can carry social meaning, so lost updates may affect both the person liking and the recipient.

Read on romshark.github.io14 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Web

European Commission Declares Browser Competition a Digital Markets Act Priority

European Commission Declares Browser Competition a Digital Markets Act Priority

The European Commission says browser competition is a Digital Markets Act priority and is discussing ways for rival browsers to compete effectively with Safari on iPhones and iPads. Open Web Advocacy says its open letter calling for greater browser and web app competition has attracted support from consumer, rights, publishing, startup, and technology groups. (open-web-advocacy.org)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.