Question · Vibe coding with Claude Code course · Module 12: Medium clone

Who guards the clap limit

Where in Captain's Chronicle must the clap limit of one reader be checked?

Answer options

  • Only in the button, through the disabled attribute
  • In the route POST /api/articles/[id]/clap on the server, and the button also disables itself for convenience
  • Only in the reader's browser localStorage
  • In CLAUDE.md, so that Claude remembers the limit

You can check the correct answer by solving this task in the CodeWorlds game.