Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Continued comments ...
Message
From
21/03/2000 09:01:28
Paul Frost
Instem Computer Systems Ltd
Stone, United Kingdom
 
 
To
21/03/2000 08:36:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00348010
Message ID:
00348310
Views:
27
>Paul,
>
>>Seems comments cause all sorts of problems, it's probably best to avoid using them.
>
>ROFL! (You are kidding, right?)

Of course, I think.

Though over the years some of my worst problems have been due to the presence of comments, rather than the lack of them. There's a tendency to believe the comments rather than the code & I've found that many programmers (not me, honest!), in the heat of the moment of fixing a bug, are likely to disregard updating the comments as well as fixing the bug.

Some years ago, my company required a C library to access FoxPro databases, one of the requirements was provision of source code. A short while into the project, a problem was found with the library chosen & due to the response time of the company involved, we looked at the code ourselves only to find no comments. On complaining about the stripping of comments, we were told that the company policy was not to use comments at all - it gave an incentive for their programmers to fully understand all of the code written by the company.

I had another programmer working for me who presented code with apparently no comments - when I complained he showed me the comments were there, they were just written off screen, because they made the code look untidy.

Enough horror stories about comments.

USE THEM & KEEP THEM WELL MAINTAINED.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform