Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Advantage and disadvantage of funct PRG
Message
From
04/12/2017 07:22:33
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
03/12/2017 22:03:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01656009
Message ID:
01656097
Views:
54
>>I disagree. The people who started arbitrarily collecting stuff into prgs did so to get around the 8.3 filename limit. At the time, that only gave an 11 char uniqueness. That was done in the 80s if I remember.
>
>embolded straw man argument ;-)
>
>>Declaring something as a function has next to no value in Fox. This is where the phrase a difference which makes no difference is no difference, not in performance. The use of Function makes no difference versus prg, so why bother? Keeping an eye out for performance improvements always makes a difference, despite what some people think. It means you never can write a piece of code that takes 10 hours while someone else does the same results in 15 minutes.
>
>for me the method signature with function name AND parameters on a single line is good enough argument -
>as a single grokkable line and cut&paste template if Alzheimer crept up on spelling and/or parameter order ;-)

I use lparameters for that. The function name is not needed to make it grokable. I've seen a ton of other people's code over the years. There is no real logical, nor standard means of collecting stuff. It has always been done purely from habit and from nothing more than - "that's the way we've always done it". The alzheimer argument applies to "which procedure library is GetDate in?" - long before you worry about the parameters.
Previous
Reply
Map
View

Click here to load this message in the networking platform