Assign students to add comments to code their peers wrote that is void of comments to test students ability to understand the code as well as their peer’s ability to write clear code.

  • Activity:

    • Have students write code without comments or make a copy of an existing, completed assignment and remove their comments.

    • Give students a commentless code project, created by one of their classmates, to add comments to.

    • Return the code to the original author and have students read and discuss the comments made.

More about this tip

External Source