HagiCode Fullstack

修复一个故意留下的问题

Draft: this lesson is an outline and will be expanded.

Real projects always have problems. In this lesson the course gives you an app with a problem planted in it, and you practise the most useful skill of this course: noticing a problem, describing it to the AI assistant, and checking that the fix really works.

What you will do

  1. Open the app that the course provides for this lesson, and run it as you ran yours.
  2. Use it until you find the problem. Use your done checklist: which “I can” sentence fails?
  3. Describe the problem to your AI assistant in three parts: what you did, what you expected, and what happened. If an error message appears, copy it exactly.
  4. Read the fix that the AI proposes. Ask: “What did you change, and why?” Do not accept a fix you cannot explain in one sentence.
  5. Run the app again and repeat the steps that showed the problem. It must be gone.
  6. Check that nothing else broke, by going through the whole checklist again.
  7. If the same problem is still there after three tries, stop. Go back to your last commit in GitHub Desktop, and describe the problem in a different way.

Never run a command you do not understand just because an AI suggested it, especially one that deletes files or changes system settings.

Check yourself

  • You found the problem yourself, from the checklist.
  • The problem is gone after the fix, and the rest of the checklist still passes.
  • You know what to do when three tries do not work: go back to the last commit and start again.