Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it okay to name a function True()
Message
De
17/02/2006 09:36:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Database:
Firebird
Divers
Thread ID:
01097002
Message ID:
01097040
Vues:
20
isBlue is safe. Just avoid TRUE.

>Hi Craig
>
>Thanks for responding.
>
>>Code Complete is a great book that is full of suggestions to make your code better. One suggestion is that method and function names be a verb/noun combination. For example, ShowName(), PrintInvoice(). Following this idea, your code becomes more self documenting. Just having a function named True() doesn't tell me anything. If I were looking at the code, I would expect it to always return .T.
>
>Actually I have run out of ideas for this functions name. True() become .T.() of 1() if I have #define True 1 or #define True .T. So is IsTrue(), Is1() or Is.T.(). TrueBlue() is also 1Blue() or .T.Blue()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform