Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best Practices
Message
De
18/06/2001 11:44:59
 
 
À
18/06/2001 10:45:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00519494
Message ID:
00520632
Vues:
17
>Good point, I don't generally get that carried away, but I have notice silly examples in the past, such as declaring variables in more than one line:
>
>PUBLIC gcVar1
>PUBLIC gcVar2
>PUBLIC gcVar3
>
>Stuff like that.
>
>Kev

I've come across odd ones like that too. I was thinking of one or two more controversial examples, but I didn't want to start another long drawn out discussion. Less controversially, there was a recent thread on nested iif's, which can be confusing, an example of where (IMHO) 3 lines are preferable over 1.

What I've tended to do in the past (especially for new projects) is to use a set of guidelines of (best ?) practices that should be applied to the particular project. Ideally, all coding/documentation/etc will adhere to these guidelines, but if the programmer finds it necessary to go against the guidelines & can justify to me (& the rest of the team - I have occassionally been known to be democratic) why the guidelines should not be used, then I will accept it.
Len Speed
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform