166k views
5 votes
What are some kinds of comments that might be useful for a programmer to include in a program?

User Weibo Li
by
4.0k points

2 Answers

4 votes
Also any that explain a line of code for example

print(“Hello World!”)
#outputs Hello World! Onto users screen


This is useful when there’s a complex chunk of code which needs separating without interference - it makes it easier for others to read and comprehend!
User Ryan Durrant
by
4.6k points
1 vote

Answer:

First, BUG, meaning a known bug that should be corrected. Next, FIXME, meaning should be corrected. Also, HACK, meaning a workaround. Finally, TODO, meaning something to be done.

Explanation: Here is a compleat sentence vertion of the person of me.

User Kender
by
3.6k points