- Jul 12, 2001
- 10,142
- 2
- 0
so frustrating, reading a program with the only comments being things like //BOB!! edit this line out later
Originally posted by: EmperorIQ
i usually only comment when it is needed, like
//temp string for testing purposes, try to dynamically allocate later
but commenting is important and easier for others, wouldn't it be? No matter how good you are at programming, if you're working in a team with others you have to comment, people's approaches to problems are always different. by commenting you will save the person trying to fix your code a lot of time.
on a side question, does anyone get lazy when naming variables?
like using string a; instead of string UsrName;
Originally posted by: FoBoT
lets all post our source code! :thumbsup:
Originally posted by: FFMCobalt
I've never commented my proggies. I don't understand what the deal with comments is anyway. What are you going to comment? The way a program works? Read the code. What you plan to have for dinner? Your shoe size? Why use comments at all?
Originally posted by: Shanti
I've been burned a few times when I went back to look at my own code 6 months later and wondered "WTF was I trying to do here".
Not to mention how much worse it is to look at someone else's code and wonder wtf they were thinking.
So while I am coding, I try to think about whether something will be clear to other developers, and if not, I comment it.
Not commenting = job security :evil:Originally posted by: FrustratedUser
Originally posted by: FFMCobalt
I've never commented my proggies. I don't understand what the deal with comments is anyway. What are you going to comment? The way a program works? Read the code. What you plan to have for dinner? Your shoe size? Why use comments at all?
Hahaha!
I hope you are joking. The point od comments is to make it easier for someone else to understand the code just in case YOU are replaced or YOU work in a team.
Originally posted by: Skoorb
Not commenting = job security :evil:Originally posted by: FrustratedUser
Originally posted by: FFMCobalt
I've never commented my proggies. I don't understand what the deal with comments is anyway. What are you going to comment? The way a program works? Read the code. What you plan to have for dinner? Your shoe size? Why use comments at all?
Hahaha!
I hope you are joking. The point od comments is to make it easier for someone else to understand the code just in case YOU are replaced or YOU work in a team.
Originally posted by: Skoorb
Not commenting = job security :evil:Originally posted by: FrustratedUser
Originally posted by: FFMCobalt
I've never commented my proggies. I don't understand what the deal with comments is anyway. What are you going to comment? The way a program works? Read the code. What you plan to have for dinner? Your shoe size? Why use comments at all?
Hahaha!
I hope you are joking. The point od comments is to make it easier for someone else to understand the code just in case YOU are replaced or YOU work in a team.
Originally posted by: Skoorb
Not commenting = job security :evil:Originally posted by: FrustratedUser
Originally posted by: FFMCobalt
I've never commented my proggies. I don't understand what the deal with comments is anyway. What are you going to comment? The way a program works? Read the code. What you plan to have for dinner? Your shoe size? Why use comments at all?
Hahaha!
I hope you are joking. The point od comments is to make it easier for someone else to understand the code just in case YOU are replaced or YOU work in a team.
