Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code counter
Message
 
À
31/01/2003 15:09:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00747827
Message ID:
00747856
Vues:
19
>>Anyone out there know of a decent code counter that works well with foxpro. It needs to differentiate code from remarks and in-line comments as a minimum. Thanks!
>
>The general consensus is that this is not worthwhile. There are just to many arbitrary decisions that have to be made. For instance, you mention ignoring (?) comments. But the comments (and blank spaces) cost you work, and improve the quality of your program. So I decided to just include them, in my own code counter. Of course, it is relatively easy to parse the program file, to ignore lines that start with "*" or "NOTE".
>
>Another question is, how to deal with forms, reports, menus, etc.
>
>Anyway, if you are interested in my primitive prototype, see Lines of code Thread #704650 Message #704650. I decided to post this as download, but the program simply needs to many improvements yet.
>
>To ignore or otherwise segregate comments, you could use alines() to convert the program into an array (with the optimistic assumption that none of your programs has more than 65,000 lines of code), and then parse the individual lines.
>
>HTH,
>
>Hilmar.

Hilmar;

People I have worked with sometimes laugh at my code because often my comments are longer than the code I write. :)

Tom
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform