Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Continued comments ...
Message
De
21/03/2000 12:09:00
 
 
À
21/03/2000 10:17:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00348010
Message ID:
00348451
Vues:
27
>Paul,
>
>>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.
>
>Good answer. I've done quite a bit of work on OPC's (other people's code) and I do appreciate at least some header comments about the purpose of the program or function, the parameter specs (although they're usually easy enough to figure out), return values, and any revision history.
>
>A simple comment here and there related to overall program flow and logic is also appreciated, along with detailed comments about any unusual logic or bug workarounds.
>
>But I agree that nothing beats honing your abilities in reading the code and doing your own analysis of it.

Oh, you'd just love to see the uncommented version of a block of code I wrote yesterday:
oRegExp = CREATEOBJ('Vbscript.RegExp')
oRegExp.global = .f.
oRegExp.Pattern = "[^:]//(\w+[\w-]*\w\.)*\w+"
lcRandomPlaceToStuffAString=oRegExp.Replace(this.Value,"WinNT://$1")
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform