Commenting and You
Commenting and You
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