- Explain to students why choosing certain variable names.
- For example,
age
holds the person’s age, andisOpen
holds a boolean that identifies if the mailbox is open. - Compare the readability of code using good variable names versus bad variable names with students.
- Assess student use of descriptive variable names in their programs explicitly to reinforce good programming habits.