Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Method names suggestion
Message
De
14/03/2013 17:39:38
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
 
 
À
14/03/2013 17:18:56
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:
01568425
Vues:
50
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform