0% found this document useful (0 votes)
18 views9 pages

Commenting and You

This document discusses comments in code and their purpose. It states that comments are for communicating with other programmers and yourself. The best time to comment is before writing the code so others understand your intent. Comments do not affect how fast code runs; they run at the same speed. The document recommends using comments appropriately to help other programmers understand the code.

Uploaded by

Luca Kab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views9 pages

Commenting and You

This document discusses comments in code and their purpose. It states that comments are for communicating with other programmers and yourself. The best time to comment is before writing the code so others understand your intent. Comments do not affect how fast code runs; they run at the same speed. The document recommends using comments appropriately to help other programmers understand the code.

Uploaded by

Luca Kab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Module 2

First C# Program

Lecture
Commenting and You

Module 2 Learning Objectives
In-Lecture Quiz

Comments are:

A: a haze
B: the stupidest idea Ive ever heard of
C: totally awesome and I cant wait to try them
D: for geeks, not me


What are comments
for?
Communicate with
other programmers
Communicate with
yourself!

In-Lecture Quiz

The best time to comment is:

A: before you write the code youre commenting
B: after you write the code youre commenting
C: never
D: December 3
rd


Rants on the web
about commenting
When people write
stupid comments,
those comments
dont help
Professors ruin
programmers by
making them write
comments

In-Lecture Quiz

Comments make the code run:

A: faster
B: slower
C: at the same speed
D: not at all


Recap
Comments can be useful and you should use them
Professional programmers use comments
(appropriately)
Next Time
Ones and Zeros

You might also like