Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Yet Another VFP6 tip
Message
De
14/07/1998 08:46:43
 
 
À
14/07/1998 07:32:28
Jeroen Naus
Harte-Hanks Europe
Hasselt, Belgique
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00117011
Message ID:
00117085
Vues:
17
>Is hardcoding classnames the way to go ? What if I change the name of a class or want to add in another layer does this means I need to edit all my code.

Check out creating an Abstract Factory pattern object for your aps. This will allow you to hardcode the class 'token' which the AF looks up in your 'lookup' table to determine the true class name.

See _Design Patterns_ by Gamma, Helm, Johnson, Vlissides

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform