Question · Vibe coding with Claude Code course · Module 12: Medium clone
An optimistic counter
What does it mean that ClapButton raises the clap counter optimistically?
Answer options
- The counter grows only once the server confirms the clap
- The counter grows right after the click, before the server answers, and rolls back when the server refuses or the network fails
- The counter grows by two to make up for the network delay
- The counter never rolls back, because the server always accepts claps
You can check the correct answer by solving this task in the CodeWorlds game.