04
Next, try a task that is small enough to review
A useful prompt says what the code does, what needs to change, and what must stay unchanged. For example:
Explain what this function returns when the input list is empty. Do not change the project. Point out which lines determine the result.
This is a learning request rather than a request for a finished assignment. Once the explanation makes sense, a follow-up could ask for one local change, such as handling the empty-list case while keeping the function’s existing inputs and outputs. State the expected behavior in plain language so the suggestion can be checked against the exercise.
Give the assistant only the project context needed to answer. A focused code fragment and a brief description may be enough for a basic explanation. Do not paste unrelated files, credentials, private data, or classmates’ work. GitHub’s documentation on model hosting and data handling explains relevant data considerations; review the current terms and your school’s policy before sharing project material.
When a suggestion appears, read it before accepting it. Look for changes that introduce unfamiliar types, alter a function’s behavior, or edit files unrelated to the request. If the suggestion is hard to explain, ask for an explanation of the specific code or leave it unapplied. The purpose of using Copilot for Xcode student programming is to support understanding, not to hide code that the student cannot defend or maintain.
| Practice approach |
Review effort |
Learning value |
Main risk |
| Ask for an explanation of a small existing function |
Compare the explanation with the visible code and test a simple case |
Builds understanding without immediately changing the project |
The explanation may omit an edge case |
| Ask for one local implementation suggestion |
Inspect the exact proposed edit and test the expected behavior |
Offers a concrete example to study |
The change may exceed the exercise or alter nearby behavior |
| Ask for a complete assignment solution |
Review a large result that may touch multiple parts of the project |
Harder to connect the code to the lesson |
May violate course rules and leave the student unable to explain the work |
The table is a choice guide, not a promise that any prompt will produce correct code. Even a short suggestion needs review. If the goal is learning, start with the explanation or local-change approach and expand only when the student can explain the previous result.