Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy Method Utility?
Message
From
01/02/2017 19:33:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
30/01/2017 19:18:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01647168
Message ID:
01647303
Views:
48
>>Fifteen years ago, when I was working for Roxanne, she had two rules about comments:
>>1) don't tell me what your code does, I can read code
>>2) do tell me when you're doing something unusual - then say why (working around a fox's bug, avoiding an obscure side effect), so the next guy doesn't try to fix it and screw everything.
>>
>>To that I've added only the rule to comment the assignments or readings of PEM things which are there to trigger an assign, access or a bound event. Which aren't obvious, the code they trigger is elsewhere.
>
>I think the main point, which is to avoid comments where possible, is well taken. That said, there are some valid use cases such as the link suggests, and some VFP-specific cases like those you've outlined.

OTOH, there are always a couple of guys on each team whose code isn't easy to read. Misnamed things, names too short, use of magic numbers (case when lnOpt=32 - what's the meaning of that 32, where is it defined?) etc. That's when I wish they never heard of this attitude towards comments.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform