Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why are my method names converted to lower case
Message
 
À
05/09/2001 11:27:15
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00552197
Message ID:
00552863
Vues:
13
>>>>I would like to use mixed case method and property names. Why does VFP insist making them lower case? Is there some innane reason?
>>>
>>>Inane? Dunno as the quality of the reason. It just is. Perhaps it's because Fox isn't case sensitive, which most people would probably agree is a good thing. But, really, it's just so. FWIW, that is one kinda silly reason I like programmatic classes. Completely non-functional reason, but it suits my esthetics, too.
>>
>>Is inane a word? Maybe I meant insane :). Actually its more than esthetics at stake. Readability of code is a big factor. Take a method name example this.atPutAll(object) vs. this.atputall(object). And anyway, the built in methods and properties are in mixed case. So why should my additional ones be any different.
>>
>>>>>Also when I create a property in why can't I initialize it from the properties window?
>>>
>>>Do you mean from the define properties window? That would be convenient. Make a wish for 8.0?
>>
>>Hey there is a name for 8.0? The Genie. This way we can all get our wishes.
>>
>>costas
>
>
>yeah, 'inane' is a word, it means 'silly' or 'asinine'. which to use,
>inane or asinine ? depends who you're talking to and what you think
>of them ;)

I hope I did not offend anyone.

>
>completely agree with you that capitalization in names is preferable.
>i note you don't use underscores in your names, which i find improves
>readability a lot too. also, i prefer built-ins typed in all
>UPPERCASE.

I hate underscores. Except when I really want to mangle the variable in case where a runtime custom script will be in use. You would not want someone's script having a variable called Temp and you have an interal variable called Temp clobbering each other.

In this case I would call mine __Temp 'cause no normal programmer would call theirs __Temp. Get it? (I had to read this twice)

>just because VFP decapitates your names in PEM list, doesn't keep
>you from writing them in that style in your code.

Yes it does. Intellisense screws it up for me. I would rather use auto completion than type even at the expense of ruining my looks (ok, my program's looks).

>here's a wish list item for you Genie too ... if i change the spelling
>of a user-defined property or method, let the VFP IDE find all occurences
>in the code and update, possibly with confirmation. something like that
>would save me a lot more time than 'code completion'.

That would be good but you are pushing it. I would be happy if the Genie gave me a simple project search and replace.

Regards,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform