Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Advantage and disadvantage of funct PRG
Message
De
03/12/2017 20:24:43
 
 
À
03/12/2017 18:34:56
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01656009
Message ID:
01656081
Vues:
63
>>Mike, do you mean that you'd rather have a function in a .prg than in the form that called the function?
>
>It would depend on the nature and usage of the function. If it's not used anywhere else, that function naturally belongs into a method of that form. Even better, in my way of doing things, it's a function in the bizobject used in that form - and generally it's a bizSomething.prg.
>
>And how exactly did we go back to the original question of the OOP paradigm? The famous "where does the code go?".

To these tenets "Inheritance, encapsulation, abstraction, and polymorphism" I'd add - "usability."
If I can't find, I can't use it.
Grouping modules functionally makes sense to me.
I don't expect to find accounts payable functions mixed with cash receipts functions.
Putting them in the form, or the class, the folder, or the procedure file that particularizes (love that word) these functions - all performance considerations being equal - makes good sense to me
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform