Put in order · Vibe coding with Claude Code course · Module 5: Reddit clone
Sorting: Test first, code second
Order the Claude Code steps for the applyVote function as in the lesson:
Items to put in order
- Run the tests and see them pass
- Ask for the function code without changing the tests
- Ask for the tests and an empty function skeleton
- Run the tests and see them fail
- Write down the voting rules (six transitions)
You can check the correct answer by solving this task in the CodeWorlds game.