Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy Method Utility?
Message
De
01/02/2017 19:33:38
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
30/01/2017 19:18:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01647168
Message ID:
01647303
Vues:
49
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform