Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro substitution
Message
De
27/12/2002 08:50:39
 
 
À
27/12/2002 07:50:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00735756
Message ID:
00736030
Vues:
25
>Peter / Cetin
>
>Like so many issues of this type there is no right or wrong answer. Like the discussion on CDX bloat vs. performance thread its often a case of what's theoretically "right" vs. real world deployment issues which often make the point mute.

I understand what you're saying, but I tend not to agree.

First, with regard to this issue, there is a right and a wrong answer.

Second, probably, what you're seeing as the 'theoretically "right"' standpoint is what I'm seeing as the 'real world deployment'. And the other way around: What I'm seeing as the 'theoretically "right"' standpoint, is seen be you as the 'real world deployment'. Translated:
Those who think that macros should be avoided (according to theory), notice that macros are widely used in the real world, and they either don't mind too much or tell those developers that they ought not do so ("shame on you").
And the other way around: Those who think that macros are legitimate and occasionally even the better solution (according to theory), notice that a lot of developers don't dare to use macros in the real world, and they either don't mind too much or tell those developers that it's okay to use macros ("relax, it's okay").

IMO, it's not a mute point.


>Macro substitution is slower than the other solutions offered but, as Peter points out, if macro substitution is used in a small loop then the speed difference will not be noticeable, especially when combined with today's fast processors.
>
>In respect of readability - I agree, like Cetin, that readability is in the eye of the beholder.
>
>Macro substitution is obviously a legitimate programming technique and one which I think is awesomely powerful. However, it is also a very often miss-used technique.

No, it is a very often not-used, but legitimate, technique!

Regards :)
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform