Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Method names suggestion
Message
De
15/03/2013 02:09:45
 
 
À
14/03/2013 17:39:38
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01568344
Message ID:
01568470
Vues:
54
>>>>Lately I've been experimenting with a variation: RecordPositionSave() and RecordPositionRestore(). This follows a logical ( to me ) hierarchy of Object.Attribute.Action. But I'm finding the greatest benefit is this puts related methods next to each other when listed alphabetically, which makes them easier to find.
>>>
>>>Full ACK: I started with "ordered methods" when refactoring large methods, dividing them into smaller methods usually named
>>>
>>>LargeMethod
>>>LargeMethod_EntryCheck
>>>LargeMethod_DoOnething
>>>LargeMethod_DoSomethingElse
>>>
>>>and so on. xxxGet and xxxSet were next from that ;-)
>>
>>That's exactly what prompted me to start doing this.
>>
>>>Java and C# translation can be machine-supported ;-)
>>
>>How so?
>
>Ruleengine for renaming methods or creating wrappers

Is that 3rd-party, or something you wrote yourself?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform