Summary
In this lesson, you learned that:
- A coding agent doesn't only answer: it works on the files of your project in steps. It reads and changes them, runs commands, reads what they print and decides on the next step. The AI in this course's chat isn't one.
- An agent's change is in your file before you've read it, and whatever the task doesn't say, it decides by itself. While you're learning, let it ask before it saves a change or runs a command, and give it a copy of your project.
- Read every change before you keep it:
-lines were taken out,+lines put in. An agent sometimes changes more than you asked, and a run with the program's own data may not show it. - An agent's summary says what it meant to do. Check the change yourself, with the case the task was about.
- Passwords, sign-in codes and keys don't go into a chat, and everything in a file goes with it, comments too. Take them out before you attach a file, and keep them out of a project an agent reads.
- A program can change and delete files. When you can't read code, ask what it does before you run it, and say yes to an agent's command only once you know what it does.
- Keep to your school's rules about AI, and say how it helped.
Practice two of them at once. Mia asked an AI for a program that starts a new week, and got the one in the editor. It has her password in it again, and lines you haven't learned.
Next comes the course's last lesson, Final Project: The Invoice, where you build a customer's monthly invoice with an AI, from the first description to the feedback on your code.
Instructions
- 1
Delete the line with Mia's password from
script.py. Then, before you run the program, attach it and ask what it does, and what it does to the files on the computer it runs on. Send it.