Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mdot science
Message
De
17/06/2021 07:57:45
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
17/06/2021 07:50:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01681249
Message ID:
01681302
Vues:
45
>>JR>FWIW, using private variables rather than passing parameters to functions also makes a big difference, at the cost of legibility/familiarity. Do you pass parameters? At some point, perfect becomes the enemy of good.
>>
>>>MY>I always pass parameters, because that is not perfect, it is better than what is honestly barely good enough among humans. You forget the cost of encapsulation. Something can affect the private variables leaving the calling code in a huge mess or multiple patients dying.
>>
>>I suppose I could respond by calculating a % improvement in a function with 254 parameters, said improvement available for FREE by simply using private vars or even simply assigning vars that are private by default, with this benefit missed out on by idiots. ;-)
>>
>vfp compiler allows more than parameters than vfp ?

Wasn't the number of parameters depending on some setting? I still forget which, but Rainer Becker used to mention it every conference.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform