Everything you need before the bell rings
Learning Objectives
Students will be able to…
- ✓Know what a comment is.
- ✓See the computer ignores it.
- ✓Write useful comments.
- ✓Check what you know.
You open code you wrote months ago and cannot remember how it works, and a short note in the code could have saved you. What are comments, and why do programmers write them?
Comments Check
Project this and answer each question about comments and how they make code easier to understand — read the explanation after each one.
50 minutes, five moves
Tap any phase to open the teacher moves and student actions.
Hook — Notes for Humans
You open code you wrote months ago and cannot remember how it works. A short note left in the code could have saved you. What are comments, and why do programmers write them?
👩🏫 Teacher Moves
- Show code with and without comments.
- Ask which is clearer.
- Set the goal.
🎒 Student Actions
- Think.
- Share.
- Get ready.
Use — Comments Check
Students answer questions about comments.
👩🏫 Teacher Moves
- Send students to the Comments Check.
- Answer each question.
- Read the why.
🎒 Student Actions
- Answer.
- Check.
- Read it.
Modify — Comment the Code
Students add a helpful comment.
👩🏫 Teacher Moves
- Read a line of code.
- Write a comment for it.
- Say what it explains.
🎒 Student Actions
- Read.
- Write.
- Say.
Create — My Commented Program
Students comment a short program.
👩🏫 Teacher Moves
- Take a short program.
- Add a comment at the top.
- Explain the tricky parts.
🎒 Student Actions
- Take.
- Add.
- Explain.
Reflect — Writing for People
Students reflect on comments.
👩🏫 Teacher Moves
- Does the computer run your comments?
- What makes a comment helpful?
- Complete the exit ticket.
🎒 Student Actions
- Say it.
- Say it.
- Complete the exit ticket.
Built to the standards you report on
Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students.
Document a program with comments to make it easier to follow.
Systematically improve and maintain programs for others to use.
Describe how documentation helps people work together on code.
Computational Thinker: create and document clear, reusable solutions.
One lesson, every learner
Multilingual Learners
- Code snippet cards.
- Sentence frame: “This comment explains ___ .”
- Answer one question at a time.
Support & Access
- Start with what a comment is.
- Add one comment together.
- Review one idea at a time.
Stretch & Extend
- Rewrite a weak comment into a useful one.
- Comment a short program fully.
- Explain when a comment is not needed.
What to gather
- 📽️Projector / board
- 🖼️Code snippet cards
- 💻Comments Check
- 💻A short sample program
- ✏️Pencils
- 🎫Exit-ticket slips
Key terms — hover for a quick definition
Exit Ticket
Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.
Create: my commented program.
Have students take a short program, add a comment at the top, and explain the tricky parts, so writing for people becomes part of coding. A printable code-comments worksheet is in the Computer Science library.
Study the key terms
Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.
Nice work!
Check your understanding
A quick self-check with instant feedback, drawn from this lesson’s key terms.
Nice work!
Printable worksheet
A print-and-go review sheet with a built-in answer key. Tap “Show answer key” to reveal answers, or print the clean version for students.
Part A · Write the word that matches each meaning
- easy for a person to understand
- to keep code working and up to date over time
- to work together on the same code
- too much that gets in the way of reading
- notes that explain how a program works
- the symbols that mark a comment in a language
- a note in code for people, ignored by the computer
- the instructions that make up a program
Part B · Show what you learned
- Does the computer run your comments?
- What makes a comment helpful?
- Why do comments help a team of programmers?
Part B: 1) No. Comments are notes for people; the computer ignores them when the program runs. 2) It explains why the code does something or clears up a tricky part, instead of just repeating what each line obviously says. 3) They let everyone understand and build on each other's code quickly.