Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it okay to name a function True()
Message
From
17/02/2006 09:36:32
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
Database:
Firebird
Miscellaneous
Thread ID:
01097002
Message ID:
01097040
Views:
21
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()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform