필터와 합계 추가하기
이 레슨은 아직 번역되지 않아 영어로 표시됩니다.
Draft: this lesson is an outline and will be expanded.
A list becomes useful when you can narrow it down and add it up. In this lesson you ask your AI assistant for two features: a filter, which shows only the items that match what you chose, and a total, which adds up the numbers. For a to-do list, use “done and not done” and “how many are left”.
What you will do
- Write each feature as a sentence that starts with “I can”. Example: “I can show only this week’s expenses.” Example: “I can see the total of what is on the screen.”
- Add the sentences to your done checklist.
- Ask the AI to add the filter first. Run the app and try it with enough items to see a difference.
- Check the filter on purpose with awkward cases: an empty list, an item that matches nothing, and an item right at the edge of the filter.
- Ask the AI to add the total. Work out the correct total yourself with a calculator for three items, and compare it with the app. Do not trust the AI’s arithmetic without checking it.
- Check that the total follows the filter, as your sentence says.
- Commit after each feature, with a message that names the feature.
Do one feature at a time. If you ask for both together and something breaks, you will not know which request caused it.
Check yourself
- The filter shows exactly the items it should.
- The total matches your own calculation.
- You made two commits, one per feature.