Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP and SQL at the same time
Message
De
15/01/2019 13:13:20
 
 
À
15/01/2019 10:41:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Divers
Thread ID:
01664796
Message ID:
01665439
Vues:
91
>>>Why use classes? Procedural code gets the job done, right?
>>
>>Classes are for when there's data that must travel with the code. No point using a class for a bunch of functions that don't share data.
>>
>>Tamar
>
>I've you're talking about VFP classes, OK. If you mean classes in general and the foundations of OOP, that's a different story and I would disagree. They can work with the implementation of interfaces. If that last statement you made were true across all of OOP arenas, then certain frameworks would really never exist. :)

Yep, classes to implement interfaces make sense, too. I've done that, but rarely enough that it didn't come to mind.


Anyway, I'm happy to modify my original comment to say that in VFP, there's no point using a class for a bunch of functions that don't share data, unless you're implementing an interface. The point I'm trying to make is that putting a bunch of functions, even related functions, into a class simply to have them together isn't, in my view, a good approach.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform