Question · Vibe coding with Claude Code course · Module 8: Slack clone

Quiz: A channel without copied data

Why does the Channel type in Ship's Comms hold only memberIds, and not copies of members or a list of messages?

Answer options

  • Because a JSON file cannot store nested objects
  • Changing a member's name does not require fixing every channel, and messages will be a separate list, like a separate table in a database
  • Because TypeScript does not allow objects in an array
  • So that a private channel loads faster than a public one

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