Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP and SQL at the same time
Message
De
14/01/2019 08:32:24
 
 
À
13/01/2019 19:35:02
Mike Yearwood
Toronto, Ontario, Canada
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:
01665373
Vues:
94
>>Yes, but since I don't like procedure files being hard to manage, I prefer them to exist as separate prg files (like even a few lines of procedure might be a separate file). Mike Yearwood was suggesting this and I was objecting, thinking it is better to have less files but in time, I saw he was right :) Sometimes I have a few procedures in the same file if they are closely coupled. These are all separate prg files (SQLQueryInto.prg for example).
>
>Glad you came around. It's not important what files we have. It does not really matter how things are stored at design time. It's important that the bits of code are reusable, how they are available at runtime. The only drawback is that the project manager is tied to source safe and it's slow with lots of files.
>
>Encapsulation is not about how things are stored at design time.
>
>I don't have to tell FoxPro I want to access a date function library before x=date(). Likewise I really do not want to say SET PROCEDURE or SET CLASSLIB.
>
>I want to say x=MyCode() or oClass=MyClass(). Clean and simple. Yes - I want MyClass to be the name of a class definition and I want oClass to use an object factory to determine what class to instantiate.
>
>With many things aggregated into big files, multiple developers cannot simultaneously work in different parts of those files without source control/merging. Sharing the code is a design time thing and so should not be impacting the execution at runtime.
>
>The code is a blueprint. The exe is the physical manifestation of the code.

Just want to point out that my code for splitting a procedure file into individual PRGs is now in the Thor Repository. My article about it, including the reasons I don't like procedure files, is here: http://www.tomorrowssolutionsllc.com/Articles/Splitting%20a%20Procedure%20File.PDF

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

Click here to load this message in the networking platform