← All parent guides

Parent guide · Cadet level

My child gets frustrated when code doesn’t work. Here’s what to say.

A program that fails on the first try is normal, even for professional programmers. Why it happens, and five phrases that turn frustration into debugging.

· 2 min read · ZorpCode

You hear the sigh before you see the screen. Your child pressed Run, and it didn’t work. Maybe they want to quit, or they want you to fix it for them. It’s a common moment, and it is also one of the most useful moments in learning to code.

Wrong on the first try is normal

Professional programmers rarely write a program that works perfectly the first time. They write something, run it, see what happens and adjust. Finding and fixing mistakes has its own name: debugging. It is a normal, everyday part of the job, not a sign that someone is bad at it.

Children often don’t know this. When the first attempt fails, they can take it as proof that they “can’t do coding.” Part of your job is to change the story from “I got it wrong” to “I found something to fix.”

Five phrases that help

These questions keep your child in charge of the problem. You are a calm guide, not the person who fixes it.

  1. “What did you expect to happen?” It helps your child put the plan into words, which often reveals the mistake on its own.
  2. “What actually happened?” Describing the result plainly takes some of the emotion out of it.
  3. “Which step changed things?” This points attention at one step rather than the whole program.
  4. “What is one thing you could change?” One small change is easier to try than starting over, and it shows clearly whether the fix worked.
  5. “You found the bug. That’s the hard part.” Praise the finding, not only the final success.
Try to avoid

Taking the device to fix it yourself, or saying “It’s easy, just do this.” Both send the message that the problem was too hard for your child. A question gives the problem back in a smaller piece.

When to take a break

Sometimes frustration is a sign of tiredness, not a hard puzzle. If your child is past the point of thinking clearly, it is fine to stop. Say what they figured out so far, and agree to look again later. Coming back fresh often makes the answer obvious, and that is a lesson in itself.

How ZorpCode handles mistakes

Watch Zorp hit a crater, then see how one fixed step gets him to the beacon. 33 seconds.Plays from YouTube. Nothing loads from YouTube until you press play. Watch on YouTube

We designed ZorpCode so that a wrong answer leads to another try, not a game over. In Mission 1, if your child’s program walks Zorp into a crater, Byte, the friendly robot helper, says so with a short, friendly message and invites them to try another path. The program stays on the screen, so your child can find the step that went wrong, change it and press Run again.

There are no lives to lose, no timers and no ads. Mission 1 is free, with no account and no credit card. Any beginner can start there, whatever their age. Next time the sigh comes, try one of the five phrases above.