When you are coding programms... do you use comments?
When you are coding programms... do you use comments?
Yes, of course, i comment my programs..That makes them readable not only for others but also for me when i see them after a gap of some months or so.
Code:>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.
If you don't comment, you're either lazy or an idiot. Probably both.
-Govtcheez
[email protected]
I comment only extreme stuff, that isn't recognizable at first look.
lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu
Well, mostly I comment but I understand my last scipt totaly now, so right now I am to lazy to comment.
>>> but I understand my last scipt totaly now,
Will you when you suddenly and urgently need to modify it in 6 months time?
Of course I comment, only fools do not.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
I don't comment, I enjoy the hours of painfully looking at my code trying to figure out my logic from months ago.
i do too.Originally Posted by PJYelton
lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu
Yes.
To code is divine
Even when something makes sense, if it's old or not your code then your going to have to spend some time figuring out what is happening, how long that takes depends on how well you name stuff and how complex your problem is/was.
I always comment my code, even the obvious stuff, it really doesn't slow down or hinder my abilities.
when naming stuff properly and creating classes, there is no much need for commenting...
but it's fun anyway
lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu
what a stupid thread...
lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu
Of course.
I've always done concept commenting. I'm trying to get into documentation commenting. Thats where you explain the purpose, results, and such of a function, class, and such. Its very useful so you can use javadoc to make a document out of it, and because in real programs people (and yourself in 6 months) need to know the concepts behind your program functions. If it takes you a week to come up with a framework of classes for a game, you aren't going to just leave it and not comment the concept you resulted with are you? After all it did take you a week to come up with.. Theres plenty of reasons of why commenting is good, but none on why they are bad, so just write them out when you're thinking about what to do next in your program.
Warning: Have doubt in anything I post.
GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101
Well, my script isn't that difficult yet!Originally Posted by adrianxw
I am to noob to make a difficult script right now.
BTW: I used php, I learned putting comments in my script because else I was looking hours to figure out what has gone wrong.
I enjoyed it, yes! But it just took me to long... Sometimes I had only about an hour and still it wasn't finished, the next morning I forgot where I was...
So I had to start over again