Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy classes to new applications or use central classes
Message
De
07/10/1998 23:58:20
Jim Underwood
Apollo Information Systems, Inc.
Houston, Texas, États-Unis
 
 
À
07/10/1998 08:59:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00144539
Message ID:
00144898
Vues:
20
Hi Afier,

>Now we would like to know if it is better to copy all the framework-classes to the new application or that we will use the classes from the framework directory<

It looks like my opinion is going to be different from everyone else's. <g>

I believe in more strict adherence to OOD/OOP principles. If you design your framework right, then you can have a base set of classes from which ALL app classes are subclassed. The first thing you would do for each new app, is to create a set of sub-classes from all your base framework classes. This way, if you have make any bug fixes/enhancements to your framework, you only have to make the change in one place. Of course, all changes to the base framework are carefully reviewed and exhaustively tested before releasing to your production framework.

IMO, making copies of classes breaks the OOP methodology.

Another way to look at it is from the old procedural POV. Most developer's I know maintained a library of common procedures/functions that were generic enough to be used in most any app. I can't imagine maintaining a separate copy of my procedure lib for each app. This would be a maintenance nightmare.

Best Regards,
jmu
Best Regards,

Jim Underwood
Apollo Information Systems, Inc.
Houston, TX
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform