- Explain to students why choosing certain variable names.
- For example,
ageholds the person’s age, and
isOpenholds 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.