[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Free chapter of my book



Will McGugan wrote:
Horst JENS wrote:
I think that either the comment should say "in 10 frames"
or the randint statement should be randint(1,10).
    

correction:

or the ranint statement should be randint(1,20)

  
Ack! Well spotted. Never hard code values in to comments!

Will
A former employee where I work once said that it's better not to comment at all because all comments are fundamentally redundant and might become inconsistent with the code.  He proceeded to remove all comments.  Naturally, he was a perl programmer :-)

Ken