School of Code Computer Lab
Calgary · Notes from the workbench
2026-11-08

If AI can write the code, what does a child still need to understand?

“If AI can write working code, why should my child learn programming?” deserves a better answer than a prediction about future jobs. Start with the word “working”. It can mean that a program runs, that it passes a few tests, or that it actually implements the intended rule. Those are different standards.

Consider a hypothetical coin-collecting game. An AI tool supplies code that adds one point whenever the player touches a coin. The game starts successfully. The player reaches the coin. Then the score climbs on every pass through the checking loop because the player is still touching it.

The machine has executed the instruction faithfully. The intended rule—one point per coin—was never fully represented.

Understanding enough programming to investigate this means asking concrete questions. When does the score change? What prevents the same coin from counting again? Does hiding or removing the coin also prevent another collection? A useful test is to touch one coin and remain in place. Another is to leave and return.

AI assistance does not remove the need to define success or examine a repair. Nor does this mean a beginner must understand every generated instruction before making anything. The scope can be small: one rule, one explanation, a few deliberate tests.

For a parent, the useful evidence is not merely a finished screen or a declaration that the code works. Ask the child to demonstrate a case that could have exposed a mistake. That gives you something more substantial to discuss than how quickly the program appeared.