Question · Vibe coding with Claude Code course · Module 10: TikTok clone
createStitch and the fragment limit
What does createStitch do when it gets a fragment longer than MAX_STITCH_SECONDS?
Answer options
- Throws an error and does not create a stitch
- Saves the fragment unchanged and only the server checks the limit
- Trims the fragment to the limit and makes sure it does not run past the length of the original
- Splits the fragment into several stitches
You can check the correct answer by solving this task in the CodeWorlds game.