Information générale
Catégorie:
Programmation Orientée Object
Titre:
Library objects or library routines ?
Hi,
I am deciding where to place routines: in library objects or library routines.
In 2.6 I use PROCEDURE files or otherwise place them in the calling path. In VFP, USE PROCEDURE ADDITIVE seems a very attractive alternative because it allows organization of routines. However, many say that the OOP way is to keep routines as methods of objects.
I understand that Drew Speedy prefers library routines over library objects unless you anticipate subclassing them in the future. Among his reasons are speed and the fact that they automatically participate in the data session in which they are called.
What do people here actually DO ?
TIA,
Alex
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement