Commenting code BY SANJAY AND ARVIND SESHAN Lesson
1 / 1

Commenting code BY SANJAY AND ARVIND SESHAN Lesson

Author : lindy-dunigan | Published Date : 2025-05-17

Description: Commenting code BY SANJAY AND ARVIND SESHAN Lesson Objectives Learn how to comment code Learn the importance of commenting code Learn what makes useful comments Copyright 2020 Prime Lessons primelessonsorg CCBYNCSA Last edit

Presentation Embed Code

Download Presentation

Download Presentation The PPT/PDF document "Commenting code BY SANJAY AND ARVIND SESHAN Lesson" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Transcript:Commenting code BY SANJAY AND ARVIND SESHAN Lesson:
Commenting code BY SANJAY AND ARVIND SESHAN Lesson Objectives Learn how to comment code Learn the importance of commenting code Learn what makes useful comments Copyright © 2020 Prime Lessons (primelessons.org) CC-BY-NC-SA. (Last edit: 1/9/2020) 2 Why bother with comments? Comments in code help the author of the code remember what they were trying to accomplish. You can use them to record the goals or pseudocode for the code. It makes it easier to debug You could use it to take notes on values More importantly, comments allow someone other than the author of the code to understand the program. Get into the habit of adding comments to your code Copyright © 2020 Prime Lessons (primelessons.org) CC-BY-NC-SA. (Last edit: 1/9/2020) 3 Adding Comments Right click on any block to add a Comment Copyright © 2020 Prime Lessons (primelessons.org) CC-BY-NC-SA. (Last edit: 1/9/2020) 4 Type your comments and resize and move the box as needed You can also right click anywhere on the Programming Canvas to create a Comment box What are useful comments? Make comments count: Comments should not repeat the contents of the block. Comments can be used to summarize the code/document the pseudocode you wrote Comments can be used to document values you are trying out in the code Note: In our lessons, we do not use comment blocks only because it makes it harder for our collaborators to translate. Instead, we used text boxes in PowerPoint. Copyright © 2020 Prime Lessons (primelessons.org) CC-BY-NC-SA. (Last edit: 1/9/2020) 5 CREDITS This lesson was created by Sanjay Seshan and Arvind Seshan for Prime Lessons More lessons are available at www.primelessons.org Copyright © 2020 Prime Lessons (primelessons.org) CC-BY-NC-SA. (Last edit: 1/9/2020) 6 This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Download Document

Here is the link to download the presentation.
"Commenting code BY SANJAY AND ARVIND SESHAN Lesson"The content belongs to its owner. You may download and print it for personal use, without modification, and keep all copyright notices. By downloading, you agree to these terms.

Related Presentations

Arvind Kumar Founding Member  CEO Attune Arvind Kumar The EPR Paradox: Einstein Scrutinises Quantum Mechanics Arvind obtaine Visio Services 2013 ASL Class PROJECT LOON Gyro Sensor Revisited By Sanjay and Arvind Gyro Sensor Revisited By Sanjay and Arvind Course File Presentation Random Block By Sanjay and Arvind Gyro Turns By Sanjay and Arvind CURRICULUM VITAE Dr D Y Patil Vidyapeeths pseudocode BY SANJAY AND ARVIND SESHAN Lesson