Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OOP recommendations, please
Message
From
24/06/2000 19:00:12
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
24/06/2000 18:13:08
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00383528
Message ID:
00384309
Views:
27
Alejandro,

A little off topic, but you might enjoy Thread #343639 beginning with Message #343639 where I was asking about oApp.

Your library setup sounds sensible. Other libraries I have seen contain containers such as for name, address, phone, fax.


>Hi Cindy, Craig, Larry and Alex,
>
>Thinking about this subject makes me conscious how A/R I am about nomenclature and classifications. I am otherwise pretty disorganized. However, in order to get off on the right foot in this matter I'd like you opinion.
>
>What do you think of this organization for class libraries/classes:
>
>1) _base.vcx. Contains first level classes. (_txt, _frm, _cmd, etc)
>
>2) _framework.vcx. Contains classes that remain the same from project to project: for example, _app, _frmDataEntry, _report, _ds (data services), _biz (the base business object class).
>
>3) _aframework.vcx. Contains equivalent classes to those in _framework.vcx, but subclassed for this application. (_aapp,_afrmDataEntry, _areport, _ads, _abiz)
>
>4) _abizlib.vcx Contains business objects for this app. e.g. _bizEmployee, _bizTransaction, etc.
>
>Values that need to be easily accesible throughout app would be oApp properties.
>
>Thank you.
>
>Alex
>
>>Alejandro,
>>
>>One thing no one else has mentioned is the global variables. First, any variable initialized in the main program, though private by default, will function as a global variable because it will be visible to the whole application which runs from there on down.
>>
>>Many people use an application object which holds these variables as its properties.
>>
>>
>>>Lastly, I use global variables to hold some frequently used values that I do not wish to fish repeatedly from the parameter table.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform