Secondary schools should teach computing with AI by developing students who can specify a problem, understand an algorithm, read and modify code, examine data, test results and explain the consequences of a system. A generated program may be useful, but it does not establish that its author understands the logic or that the program behaves correctly. Computing education becomes a way to direct, inspect and create intelligence rather than simply request code.
This international guide uses a fictional school-resource tagging exercise to connect programming foundations, classification, evaluation and human review. It includes worked tests, a transfer task, a four-week studio and a progression from a single instruction to institutional and civilisation-scale digital capability. Vocabulary Coding and Engineering and EnDist are developing eduKate frameworks; the classroom activity is a proposal, not a validated intervention.
- Teach computational thinking, algorithms, data and code reading as foundations.
- Use AI for bounded assistance, code explanation, test generation and comparison.
- Distinguish explicit rules from learned classification and generated responses.
- Define labels, units, inputs and expected outputs before testing.
- Inspect errors, missing cases, permissions, privacy and downstream effects.
- Assess what students can explain and modify, not simply whether code runs.
SECONDARY SCHOOLS AND TEACHERS WITH AI · ARTICLE 29
Choose your reading route
Start with the question closest to yours, or read in order.
Chapter index
Chapters 1–5: Understand computing in the AI age
Chapters 6–10: Build precise and testable programs
Chapters 11–15: Evaluate a fictional classification system
Chapters 16–20: Teach debugging, design and responsibility
Chapters 21–26: Extend reliable systems across zoom levels
International edition. All worked cases are fictional; teaching sequences are proposals to adapt and evaluate locally.
CHAPTER 1 OF 26 · Understand computing in the AI age
1. Why writing code is no longer the only question
A learner can request a program and receive something that appears to run. The harder questions are what the program is supposed to do, which cases it handles and whether the student can identify a failure. Computing education should make these questions visible rather than measure progress only by the length of a generated script.
The purpose is to develop people who can understand, create and maintain systems. AI may lower the barrier to making a prototype; verification and responsible use still require knowledge.
CHAPTER 2 OF 26 · Understand computing in the AI age
2. Teach the enduring computing concepts
The 2026 CSTA PK–12 standards organise computing around algorithms and design, programming, data, systems and security, and computing’s relationship with society. AI-related content runs through these concepts rather than being treated as an isolated subject. The standards are a model that schools may adapt, not a universal mandate.
A secondary teacher can preserve foundational concepts while introducing AI as a new context in which students apply them.
CHAPTER 3 OF 26 · Understand computing in the AI age
3. Read programs before generating more
The CSTA explanation of the updated standards retains programming while giving attention to reading, evaluating, changing and debugging code. Ask learners to trace a small program and predict its output before running it.
A student who can locate a faulty condition and explain the repair demonstrates understanding that a copied program cannot show. Teach syntax, control flow, variables and data types progressively.
CHAPTER 4 OF 26 · Understand computing in the AI age
4. Understand algorithms and learned systems
An explicit rule might classify a document as a timetable when its verified category is timetable. A learned classifier instead estimates a label using patterns acquired during training. A generative assistant may produce a free-text response. These mechanisms can be combined but are not interchangeable.
For beginners, contrast a decision table with a set of predicted labels. Ask where the rule comes from and what happens when the input is ambiguous. The design determines how the system can be checked.
CHAPTER 5 OF 26 · Understand computing in the AI age
5. Specify the task in ordinary language
In eduKate’s proposed Vocabulary Coding and Engineering, consequential words have definitions, examples, boundaries and tests. A specification for a resource sorter must define what counts as a resource, a valid label and an unknown category.
Natural language is not executable code simply because it resembles an instruction. Students should connect the specification to the program’s actual logic and check that both produce the intended behaviour.
CHAPTER 6 OF 26 · Build precise and testable programs
6. Decompose the task into functions
Separate receiving an input, validating it, choosing a label and displaying the result. Each step has a purpose and a test. A learner can draw this process on paper before implementing anything.
If a program fails, the decomposition makes it easier to locate the problem. An AI-generated solution that merges everything into one opaque step may be harder for a beginner to inspect than a small hand-written function.
CHAPTER 7 OF 26 · Build precise and testable programs
7. Define the data types and missing values
A Boolean value, a number, a string and a missing field represent different kinds of information. An empty description does not mean the resource is unimportant. A missing label does not mean the correct label is ‘other’.
Use invented records and define the expected behaviour for incomplete inputs. The program should return a clear review status rather than inventing a fact. Students should explain why a missing value needs a different treatment from a valid negative result.
CHAPTER 8 OF 26 · Build precise and testable programs
8. Construct test cases before trusting code
Write ordinary, boundary and invalid cases before accepting a generated implementation. A rule requiring a word count of at least 100 must accept 100; one requiring more than 100 must reject it. Test below, at and above the boundary.
Ask students to predict each expected result independently. Then compare the program’s output. This is a small application of test-driven thinking, not a promise that a finite set of tests proves every possible input.
CHAPTER 9 OF 26 · Build precise and testable programs
9. Use AI as a reviewer and explain the repair
A useful request is: ‘Here is the specification and a short program. Identify one test case that may fail. Explain why without replacing the entire program.’ The student traces the relevant logic, verifies the failure and makes a targeted repair.
Require an explanation of what changed and why. If the model supplies code the student cannot interpret, break it into smaller parts or return to a teacher-checked example.
CHAPTER 10 OF 26 · Build precise and testable programs
10. Keep prototypes separate from live systems
Use fictional data and a local or school-approved practice environment. A resource-classification exercise does not need access to real student records, school accounts or external publishing tools. A prompt saying not to send data is not a substitute for technical permissions.
Teach the difference between a program’s possible capabilities and its authorised actions. Real deployment requires appropriate review, maintenance and school approval.
CHAPTER 11 OF 26 · Evaluate a fictional classification system
11. Worked example: classify fictional learning resources
A fictional resource collection contains 20 documents. The teacher supplies reviewed reference labels: eight are practice guides, and twelve are not. An imaginary classifier predicts that nine documents are practice guides. Of those nine, six really are practice guides according to the reference labels.
The task is to inspect the classifications, not identify or label pupils. The figures are invented, not results from any named AI product. A practice guide means a document whose main purpose is to provide guided or independent exercises under this exercise’s definition.
CHAPTER 12 OF 26 · Evaluate a fictional classification system
12. Build the four classification counts
Six documents are correctly labelled as practice guides, known as true positives. Three of the nine predicted guides are not guides, or false positives. Of the eight actual guides, two were missed, or false negatives. Of the twelve non-guides, nine were correctly rejected, or true negatives.
Check the totals: 6 + 3 + 2 + 9 = 20; predicted guides total nine; actual guides total eight. The table must agree with the supplied labels before any performance calculation.
CHAPTER 13 OF 26 · Evaluate a fictional classification system
13. Calculate three different measures
Accuracy is the proportion of all correct labels: (6 + 9) divided by 20 = 75 percent. Precision for the practice-guide label is six divided by nine, or about 66.7 percent. Recall for that label is six divided by eight, or 75 percent.
Precision asks how many predicted guides actually qualify; recall asks how many actual guides were found. Here accuracy and recall both equal 75 percent, but they measure different quantities. Students should explain the denominators rather than memorise three names.
| Reference label | Predicted guide | Predicted not guide | Total |
|---|---|---|---|
| Practice guide | 6 | 2 | 8 |
| Not a practice guide | 3 | 9 | 12 |
| Total | 9 | 11 | 20 |
CHAPTER 14 OF 26 · Evaluate a fictional classification system
14. Compare an alternative fictional classifier
A second imaginary system marks seven of eight actual guides correctly and marks five non-guides incorrectly as guides. It has seven true positives, five false positives, one false negative and seven true negatives. Its accuracy is 14/20 = 70 percent; precision is 7/12, about 58.3 percent; recall is 7/8 = 87.5 percent.
The second finds more of the guides but creates more incorrect suggestions. The preferred choice depends on the intended purpose, the cost of missed material and the review burden. A single accuracy figure cannot settle that trade-off.
CHAPTER 15 OF 26 · Evaluate a fictional classification system
15. Transfer to an unfamiliar record
In a new fictional dataset of 30 resources, ten are guides. The classifier predicts 12 guides; eight of those are correct. The remaining counts are four false positives, two false negatives and 16 true negatives. Accuracy is 24/30 = 80 percent, precision is 8/12, about 66.7 percent, and recall is 8/10 = 80 percent.
Ask a learner to reconstruct the table and identify which measure addresses a user who wants to find as many guides as possible. This task tests understanding rather than recall of the earlier numbers.
CHAPTER 16 OF 26 · Teach debugging, design and responsibility
16. Investigate errors rather than only counting them
A document may contain both a timetable and exercises. The original label definition may not handle mixed-purpose resources. Examine a few invented borderline records, decide whether the specification needs a revision and record the reason.
A correction to the reference label is different from a correction to the model. Rerun relevant tests after a definition changes. The test set’s quality matters as much as the calculation.
CHAPTER 17 OF 26 · Teach debugging, design and responsibility
17. Use an explicit rule when it is sufficient
If the collection already includes an authoritative category field, a simple filter may be enough. Adding an AI classifier can introduce uncertainty and review work without helping the recipient. Compare the simpler method with an AI-assisted alternative.
The student should explain which part benefits from flexible language understanding and which part is better handled by deterministic logic. Choosing not to use AI for a task can demonstrate mature computing judgement.
CHAPTER 18 OF 26 · Teach debugging, design and responsibility
18. Design the interface for the recipient
A resource sorter should display the suggested label, the basis available for checking and an option to mark uncertain cases for review. Avoid representing a provisional label as confirmed. The user should understand what the output does and does not establish.
Invite a classmate to inspect a fictional example and explain what action they think the system permits. Revise ambiguous wording or inaccessible presentation.
CHAPTER 19 OF 26 · Teach debugging, design and responsibility
19. Teach security as a design constraint
Computing systems handle data and permissions. A school prototype should use only the information necessary for the stated task and should avoid connecting to real accounts or sensitive records without appropriate approval. Text found in an input file is not automatically an authorised instruction.
Use a harmless paper exercise in which a resource description tries to change the labelling rule. Students should distinguish data being analysed from instructions given by the authorised designer.
CHAPTER 20 OF 26 · Teach debugging, design and responsibility
20. Assess computing competence separately from the artefact
Ask the learner to trace one algorithm, explain a variable, reconstruct a test and modify a condition. Give them a new classification table with the assistance rules stated in advance. A working generated program does not establish that the student can maintain it.
Preserve agreed accessibility supports. Assess problem specification, code understanding, testing, communication and responsible judgement. Avoid treating a person’s prompt count as a proficiency score.
CHAPTER 21 OF 26 · Extend reliable systems across zoom levels
21. Retool computing teachers around inspected practice
Teachers can review a small generated program together, locate a failure, write an expected test and decide how to explain the repair. Record the version, learning objective and assumptions before sharing the example.
The UNESCO student framework provides a broad direction for ethical AI application and creation. A school should test its own teaching designs rather than treating a framework as proof of effectiveness.
CHAPTER 22 OF 26 · Extend reliable systems across zoom levels
22. Follow computing across the zoom levels
At word level, define positive and missing. At algorithm level, specify conditions. At learner level, trace and debug. At team level, share tests and code. At school level, govern systems and preserve usable documentation. At institutional level, cooperate with appropriate domain and technical expertise.
At civilisation scale, digital systems can project useful capability or multiply errors. The pathway from a school exercise to that outcome requires fresh evidence and accountable direction at each scale.
CHAPTER 23 OF 26 · Extend reliable systems across zoom levels
23. Use EnDist to examine the useful result
EduKate’s EnDist lens asks whether usable capability reaches people after correction, misunderstanding and rework. A classifier can produce many labels while imposing substantial review on the librarian. A smaller, checked output may be more useful.
EnDist is not physical energy or an established numerical intelligence metric. Track corrected suggestions, missed resources, recipient understanding and maintenance effort separately. Ask who benefits and who carries the burden.
CHAPTER 24 OF 26 · Extend reliable systems across zoom levels
24. Preserve systems that another class can maintain
Keep the specification, source schema, expected tests, program or paper procedure, observed failures and correction owner. Mark the current version and the limits of its intended use. A new class should be able to run the checks without guessing what earlier authors meant.
Retire a prototype if it no longer serves the purpose or cannot be maintained appropriately. Preservation is a responsibility, not a requirement to keep every generated file.
CHAPTER 25 OF 26 · Extend reliable systems across zoom levels
25. Run a four-week computing studio
Week 1: teach variables, algorithms and explicit rules; create paper test cases. Week 2: reconstruct the fictional classification records and compare performance measures. Week 3: inspect a simple implementation or simulated workflow, challenge missing inputs and revise it. Week 4: solve the transfer case and hand over a checked specification.
Review student understanding, access and staff preparation effort. Adapt the sequence to curriculum and resources. It is an original teaching proposal rather than a validated schedule.
CHAPTER 26 OF 26 · Extend reliable systems across zoom levels
26. Begin with a test you can explain
Choose one modest problem whose expected answer can be checked. Have students specify inputs and outputs, predict a test, inspect the result and explain a repair. AI can assist at a clearly defined step.
The future of computing education is not a competition against the speed of code generation. It is the development of people who can design, inspect and sustain useful systems, and decide when those systems should or should not act.
Continue the secondary schools and AI series
Continue with the other subject guides in this four-part sequence: computing, arts and music, physical education, and economics and financial literacy.
- Article 30: How Should Secondary Schools Teach Art, Music and Cultural Expression When AI Can Generate Creative Media?
- Article 31: How Should Secondary Schools Teach Physical Education and Sport When AI Can Analyse Performance?
- Article 32: How Should Secondary Schools Teach Economics and Financial Literacy When AI Can Calculate, Compare and Recommend?
Earlier articles: purpose, teaching, mastery, collaboration and subject guides
- Article 1: What Are Secondary Schools For When AI Can Produce Answers?
- Article 2: How Should Secondary Teachers Retrain to Multiply Student Intelligence?
- Article 3: How Can Schools Assess Real Learning, Judgement and AI Mastery?
- Article 4: How Can Secondary Schools Project Intelligence into Society, and Who Decides Its Direction?
- Article 5: How Should Secondary Schools Rebuild the Curriculum Across the Years of Adolescence?
- Article 6: How Can Schools Build Teacher Learning Studios That Turn AI Experiments into Shared Expertise?
- Article 7: How Can Secondary Students Progress from AI Beginners to Responsible High-Capability Users?
- Article 8: How Can Secondary Schools Move from Isolated AI Experiments to a Complete Education Programme?
- Article 9: How Can AI Personalise Secondary Learning Without Labelling or Limiting Students?
- Article 10: How Can AI Help Secondary Students Connect Knowledge Across Subjects and Transfer It to Real Situations?
- Article 11: How Can Secondary Schools Teach Students to Direct AI Instead of Letting AI Direct Them?
- Article 12: What Should Secondary Teachers Become When AI Can Explain, Demonstrate and Generate Practice?
- Article 13: How Can Secondary Schools Teach Precise Language for Clear Thinking and Better AI Use?
- Article 14: How Can Students Learn to Think Together When Every Team Member Has AI?
- Article 15: How Can Secondary Students Build Useful AI Workflows and Agents Without Handing Over Responsibility?
- Article 16: How Can Schools Preserve and Improve Knowledge as Students, Teachers and AI Systems Change?
- Article 17: How Can Secondary Schools Teach Students to Investigate Questions That Have No Ready-Made Answer?
- Article 18: How Can Secondary Students Learn to Make Decisions Under Uncertainty With AI?
- Article 19: How Can Secondary Schools Close the AI Capability Gap Without Lowering the Ceiling for Students?
- Article 20: How Can Secondary Schools Prepare Students for Work and Further Education That Will Keep Changing?
- Article 21: How Can Secondary Schools Teach Students to Judge Sources When AI Can Produce Convincing Information?
- Article 22: How Can Secondary Schools Develop Creative Intelligence With AI Without Making Every Student Think Alike?
- Article 23: How Can Secondary Schools Connect AI Intelligence to Practical Skills and the Physical World?
- Article 24: How Can Secondary Schools Measure Whether AI Is Increasing Real Learning and Useful Intelligence?
- Article 25: How Should Secondary Schools Teach English and Language When AI Can Write, Translate and Explain?
- Article 26: How Should Secondary Schools Teach Mathematics When AI Can Calculate, Solve and Generate Proofs?
- Article 27: How Should Secondary Schools Teach Science When AI Can Explain Phenomena and Generate Scientific Models?
- Article 28: How Should Secondary Schools Teach Humanities When AI Can Summarise History, Compare Perspectives and Propose Policies?
Connect the wider eduKate ideas
- Vocabulary Coding and Engineering
- EnDist: the developing useful-capability framework
- Who decides where expanded intelligence goes?
Sources and evidence limits
- CSTA 2026 PK–12 Computer Science Standards. A model standards framework, not a prescribed worldwide curriculum or evidence for this classroom activity.
- CSTA: About the 2026 Standards. Explains continued emphasis on programming, algorithms and reading, evaluation, modification and debugging.
- UNESCO AI competency framework for students (2024). Curricular reference for AI applications, ethics and system design; not a trial of this lesson.
Vocabulary Coding and Engineering and EnDist are developing eduKate frameworks, not validated universal measures. Classroom methods and worked examples are original proposals, not reported findings.
