Lesson 1: Mistakes Are Clues
Estimated time: 15-20 minutes | Screen-Free Activity
What You Will Learn
By the end of this lesson, your child will be able to:
- Explain why mistakes are a normal and helpful part of learning
- Tell the story of the first computer "bug"
- Define what "debugging" means
- Choose a positive attitude when something goes wrong
Everyone Makes Mistakes
Here is something that might surprise you: the best coders in the world make mistakes every single day. Not sometimes. Every day. They write code that does not work, they forget a step, they spell something wrong, and things break.
And that is completely fine! Mistakes are not a sign that you are bad at something. They are a sign that you are trying something new and learning. Every mistake teaches you something.
Bug: A mistake or error in a set of instructions (or in code) that causes something to not work the way you expected. Bugs are problems waiting to be solved.
Debugging: The process of finding and fixing bugs. When you debug, you are a detective looking for clues to figure out what went wrong and how to make it right.
Talk About It (Parent and Child)
Ask your child: "Can you think of a time you made a mistake and learned something from it?" Maybe they fell off a bike and learned to balance differently, or they burned toast and learned to set a timer. Share one of your own mistakes too. This shows that mistakes happen to everyone.
The Very First Computer Bug
Did you know that the word "bug" in coding comes from a real bug? Here is the true story:
Grace Hopper and the Moth
In 1947, a team of computer scientists was working on a huge computer called the Mark II at Harvard University. The computer was not working right. One of the team members, Grace Hopper, helped find the problem: a real moth had gotten stuck inside the machine!
They carefully removed the moth and taped it into their logbook with a note that said they had found the first actual "bug." From that day on, finding and fixing computer problems has been called "debugging."
Grace Hopper went on to become one of the most important computer scientists in history. She helped create some of the first programming languages and became a rear admiral in the United States Navy. She was brilliant, and she knew that finding bugs was just part of the job.
Talk About It (Parent and Child)
Ask your child: "Why do you think we still call computer errors 'bugs' even though no real insects are involved?" This is a fun conversation about how words get their meanings. You might also ask: "If you found a moth in your computer, what would you do?"
Two Ways to Think About Mistakes
When something goes wrong, there are two ways to react:
Way 1: Get Upset
- "I am terrible at this."
- "This is too hard."
- "I give up."
- "I will never get it right."
This way of thinking makes you want to stop trying. It closes the door to learning.
Way 2: Get Curious
- "Hmm, that did not work. I wonder why."
- "Interesting! What happened there?"
- "I have not figured it out yet."
- "Let me try something different."
This way of thinking keeps you going. It opens the door to figuring things out.
The second way -- getting curious -- is called having a growth mindset. People with a growth mindset believe they can get better at anything with practice. They see mistakes as part of learning, not as proof that they cannot do it.
Growth Mindset: The belief that you can get better at anything through effort and practice. People with a growth mindset see mistakes as chances to learn, not reasons to quit.
The Power of "Yet"
One of the most powerful words in the world is "yet." Watch what happens when you add it to a sentence:
Adding "Yet"
- "I cannot ride a bike" becomes "I cannot ride a bike yet."
- "I do not understand loops" becomes "I do not understand loops yet."
- "I cannot find the bug" becomes "I cannot find the bug yet."
- "I do not know how to code" becomes "I do not know how to code yet."
"Yet" changes everything. It means you are on your way. You just need more time and practice.
Talk About It (Parent and Child)
Practice the "yet" game together. Take turns saying something you cannot do, then add "yet" to the end. For example: "I cannot do a cartwheel yet." "I cannot cook dinner yet." "I cannot read chapter books yet." Notice how it feels different with "yet" at the end.
Famous People Who Failed First
Almost every successful person has a story about failing before they succeeded:
- Thomas Edison tried thousands of materials before finding one that worked for the light bulb. He said he did not fail -- he just found thousands of ways that did not work.
- The Wright Brothers crashed many flying machines before their airplane finally flew at Kitty Hawk. Each crash taught them something.
- J.K. Rowling was turned down by 12 publishers before one finally said yes to the first Harry Potter book.
- Michael Jordan was cut from his high school basketball team. He used that mistake as motivation to practice harder.
Every one of these people made mistakes and kept going. They debugged their plans, tried again, and eventually succeeded. That is what debugging is all about.
Activity: My Debugging Journal
Screen-Free Activity (10 minutes)
What you need: Paper, pencil, and (optional) crayons or markers to decorate.
What to do:
- Fold a piece of paper in half to make a small booklet (or use a notebook).
- On the front, write: "My Debugging Journal" and decorate it.
- On the first inside page, write about a time you made a mistake and what you learned from it. Draw a picture if you like!
- On the second page, write three things you cannot do yet (but want to learn).
- Keep this journal throughout the rest of the course. Every time you find and fix a bug, write about it! What was the bug? How did you find it? How did you fix it?
Parent tip: Write in your own debugging journal alongside your child. Modeling the process is powerful.
Check Your Understanding
1. What is a "bug" in coding?
2. What does "debugging" mean?
3. What is a "growth mindset"?
Key Takeaways
- Everyone makes mistakes -- even the best coders in the world
- A bug is a mistake that makes something not work as expected
- Debugging means finding and fixing bugs, like a detective looking for clues
- The word "bug" comes from a real moth found in a computer by Grace Hopper's team in 1947
- A growth mindset means believing you can improve with practice
- The word "yet" changes "I cannot" into "I am on my way"
Ready for More?
Next Lesson
In Lesson 2, you will learn a step-by-step detective method for finding bugs. No more guessing!
Start Lesson 2Module Progress
You have completed Lesson 1! Three more lessons to go in Module 6.