Courtesy, adding comments to code
Hi.
can we make a common courtesey rule? will you code junkies please comment your code when you post it so we newbs can decifer what the blocks do so we can more easily modifie it for our specific needs? It would be very helpful to know what we can and cannot cut form the code you post as well as knowing what the specific block is looking for/at or doing.
From all Newbs Everywhere, Thankyou
RE: Courtesy, adding comments to code
Quote:
Originally Posted by wbreedveld
That would be very nice/helpful/interesting/informative indeed.
Agreed.
Quote:
Originally Posted by wbreedveld
On the other hand.. we shouldn't forget that the code is provided tot us (newbies) for free, by people who are visiting this forum in their own (or boss's) time and are taking time to provide us with (working) code.
Well said.
Quote:
Originally Posted by wbreedveld
Their code, their rules :)
A small correction here. "Their code, forum rules"
Quote:
Originally Posted by wbreedveld
So... if people do not want to bother documenting their code, it's their own choice.
Thanks for the support.
Quote:
Originally Posted by wbreedveld
The F1-button will then hopefully be a good friend ;-)
This is the best point so far. ;)
IMHO, our primary goal is to learn and share knowlege and experience than helping somebody to accomplish a task (that's also a factor, but not primary). I agree that a well documented code will defenitely be a positive step. But, as compared to software development, forums are really interactive. That means, if you are unable to follow any part of the code, you can raise your doubts anytime and most of the cases (as far I have seen) you will get a pretty good explanation from the OP or somebody else (Which is, in my openion far superior to a few lines of comment.). Moreover ,normally you see some comments about the task above or below the code tags. I haven't seen anybody posting only code unless otherwise it's clearly self explanatory.
That's something quite personal.
:)
RE: Courtesy, adding comments to code
Quote:
Originally Posted by T.Willey
I can't see myself doing this. I post code to help people out. It is all in the help files,
Yes it is, but the help files are written for programmers and if you are coming from a background of a designer who works more with images than words then the help files are not much help. But if you don't want to comment your code it is your choice. We newbs can just ask questions about what each line does and whether it is safe to remove/modify that line for our specific needs. And most of you are very good about answering those questions. Which takes more time comment the code to start with or reading through our qestions and then aswering them? So this is just my view if someone is willing to teach it would be nice if they were also willing to explain. Few people are willing to follow without question. Thats how thins get messed up. And just to prove my sincerity I have posted to the lisp section my favorite animation code, fully commented, which I wrote over a year ago. I hope every body likes it and will follow my example when post code.