- Comparing code with and without new programming constructs can help:
- students understand new constructs by mapping them back to the existing constructs.
- motivate new programming construct by helping students see how it makes the code easier to understand.
- Note from the CSTeachingTips Team: Check out these specific tips on how to introduce new concepts by comparing code with and without it.
- Introducing methods
- Introducing inheritance
- Introducing loops
- Introducing switch statements