Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
If you code like this.... you might be a crappy coder
Message
De
27/05/2021 21:48:48
 
 
À
26/05/2021 23:07:29
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01680754
Message ID:
01680803
Vues:
75
Not in my POV. Esp. when working on code in use with many local (or even private) declaration my practice is to group the variables according to their datatype (and hungarian notation) into specific lines or line groups and initialize those lines or line groups with 1 statement each. That way often "forgotten" var inits are retrofitted.

Of course old style functions with 50+ variables most of the time are better broken up into smaller functions each sporting only a handful of variables.

>Its very bad advice to use STORE of many variables over the individual initialization of variables.
>Individual initialization allows for better readability, especially when values might change over time.
>
>True it has some performance advantage, but it is so tiny that has no practical use except in the utmost extreme cases.
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform