Glossary

The words, without the shrug

Every term the courses use, defined in one line and then in a paragraph. Written to be read out of order.

Clear

Showing 2 of 2 matching “Optimistic update”

Optimistic update

Frontend

Showing the result before it is confirmed.

Updating the screen immediately on the assumption the request will succeed, reverting if it does not. Right for likes and checkboxes, wrong for payments and deletions. The revert path is the one nobody tests.

See also Pending state, Rollback

Pending state

Frontend

Shown, but not yet confirmed.

The honest middle ground for an optimistic update: display the change immediately, but mark it as unconfirmed. A failure then becomes a change of state rather than a contradiction.

See also Optimistic update, Loading state