Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why design patterns are easier in dynamic languages
Message
De
10/02/2008 14:35:15
 
 
À
10/02/2008 13:56:34
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01291156
Message ID:
01291231
Vues:
14
<s> One of the things I've come to love in VFE is having remote views with dynamic params on the foxpro side. I can have 12 params on a view in VFP, give them all to the user and only include the ones the user chooses to set as part of the SQL statement that goes to the backend. And of course since I also have metadata and classes with hooks on those params I can massage how each is used before it even becomes part of the statement created by the parser. This is very different even than what SQL considers 'dynamic views' on the back end.

Strataframe uses business objects which persist dataretrieval SELECT statements, of course, so that is theoretically possible there as well, but there is a ways to go before it has anything near this capability. But the first step is an awareness that it *can* be done and that it *should* be done.

Most VFP developers don't actually seem to expect the kind of power and flexibility VFP is capable of. I think a lot of folks don't even know what a sophisticated framework does ( I know I certainly wouldn't have if I hadn't had the good sense to seek out people who knew how to build one )


>>Anyway, I am very used to having a metadata store and data-driving a lot of stuff in VFP and have been looking for places in .Net where that would be appropriate.
>
>You mean, possible? ;)
>
>>I realize this is kind of an amorphous question, but any thoughts you have ( or references to things you or others may have written on the subject ) about metadata in .Net would be most welcome.
>
>Can you imagine what a deja vu am I having in this thread? I had the same one back in 1991 with a prominent Clipper guru back home, where I specifically asked whether it is possible in clipper to call a function whose name was retrieved from a table. The guy wiggled for about a week and eventually fired The Question (qv elsewhere in my posts for this weekend ;): "why would you need that at all?".
>
>Of course, I didn't tell him why until he confessed that nope, that can't really be done in Clipper (I'm still confused on that, as IIRC Clipper had & but don't remember what its limitations were, and my knowledge doesn't go beyond '87 edition). At that time, I was replacing the generated menus with data driven dynamic menus. And then we got 2.0 with name expressions, textmerge etc... the whole story just got more interesting. A whole world completely beyond reach of static languages.
>
>So, no matter how hard the Gang of Four may try to make their patterns language independent, they are succeeded as much as Fox is OS independent. Specially the factory pattern, which is implemented in 50 lines in Fox (from Define Class to EndDefine) with just about six fields in a factory.dbf, whereas the chapter in the GoF's book is much longer than that, because they think in C, or any other static language.


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform