Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do FunctionName.prg
Message
 
 
To
13/05/2021 15:52:07
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01680170
Message ID:
01680426
Views:
28
>>>The downside - for me - to place each function/procedure in a separate .PRG is a maintenance headache. I have not counted but the application probably has a couple of hundred procedures. And having to scroll through this list in the project manager (if necessary to look at the code of whatever), would increase the time of maintenance. I know many will say that instead of the Functions/Procedures I should have them in classes. And maybe so. But I started this application way before I knew anything about how to build classes. When I can and when it makes sense, I do refactor the code.
>
>"If it ain't broke, don't fix it" is a marvelous motto, as is "perfect is the enemy of good." ;-)
>
>The other good (?!) news is that the arrival of VFP Compiler changes everything again. Most functions are split out into the C++ dll whether in SET PROC or individual prg, both of which cease to exist.
>
>One reason to use Tamar's Thor routine to break large SET PROCs into individual prgs is that next time you rebuild the app, the Project Manager will include only those prgs that are actually used, not the whole forest from the SET PROC. So depending how many different purposes are packed into huge SET PROCs you may see smaller exes with smaller lists of procedures/functions internally which could affect performance.

I don't have Thor installed yet. I actually printed an article Tamar wrote about Thor but have not read it. Between tons of work and many other things I do outside work, I do not have time for anything.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform