Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prgs vs Methods
Message
De
15/01/1999 13:26:19
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00176041
Message ID:
00176608
Vues:
38
Hi, Dan.

Interesting thread. This strikes to the heart of the antipattern I just read about (SET EVANGELICAL ON :-) called "Functional Decomposition" by Brown, et. al. in AntiPatters: Refactoring Software, Architectures, and Projects in Crisis. (SET EVANGELICAL OFF :-). They say:

"Functional Decomposition is good in a procedural programming environment. It's even useful for understanding the modular nature of a larger-scale application. Unfortunately, it doesn't translate directly into a class hierarchy, and this is where the problem begins."

Some of the consequences they point out include the inability to take advantage of inheritance and polymorphism and little hope of software reuse. There's more...It's an anti-pattern I succumb to all the time. Now, they are specifically talking about the abuse of method code, but I believe it is similar to using procedural code in place of class design.

Really you touch on an age old problem of expediancy ("easier") vs. long term viability. What is "cheaper" today, usually ends up costing 3 times as much in the long run. While we do live in the real world and compromise our principles every day (well, maybe not all of us!) it's no good denying that nature of these compromises, is it?

P.S. Every positive point you apply to PRGs is also valid for classes...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform