Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does a PRG class execute faster than a VCX based class?
Message
De
15/08/2005 07:13:49
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
14/08/2005 21:34:07
Jet Eloriaga
JetSpeed Solutions, Inc.
San Juan, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01040117
Message ID:
01040900
Vues:
29
>Hey Mike,
>
>Thanks a lot! I feel like I'm being naive or something.
>Anyways I think that if I can afford it, I'd prefer
>finding out the hard way. :)
>
>Btw, do you mean that what I am thinking is not practical
>when it comes with VFP? You mentioned there had been a lot
>of code generators in VFP. I really do not understand
>why you would call the idea terrible. I mean, not having
>to do all those classes by hand - making about seventy percent
>of the work done by the program instead?

Code generators have a serious drawback. If you change the code, the generator becomes useless for maintaining that code. Then you have to manually fix many many pieces of code.

It is far better to create well-designed objects that you can assemble into a final product than to generate code. Then you use a builder to create the VCX. Look at everything else that is built except programs. It is composed of distinct parts. A factory can speed up the assembly.

>
>I don't know, maybe it's really just me, but I hate the
>idea of doing the same stuff over and over - especially
>if I know that it can be done by the computer. :)
>
>Again, thanks a lot for the feedback. I really need it. :)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform