Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Are w***() functions OOP?
Message
From
12/08/2003 08:54:05
 
 
To
11/08/2003 19:30:41
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00819160
Message ID:
00819315
Views:
9
I think on a theorhetical level, it is a question of language design. C# ( where I am painfully feeling my very beginner way ) for example is supposed to be one of the oopiest of languages - everything is an object. The STR() function we would use is incarnated as a .Tostring method of the integer object. Kind of cool when you think about it.


>Hi Craig,
>That actually makes sense to me. But it leaves a few questions.
>
>To borrow a quote from Marcia Akins.
>Does OOP demand that we "crack walnuts with a sledge hammer" rather than use one of those functions that you have to throw data at?
>
>Example:
>It appears that there is no 'simple' way to replace wParent() and wExist() in OOP. It's possible to design an 'window tracking system' to get at that information, but it's overkill unless you need that system for other things.
>IOW: Designing a 'window tracking system' for the SOLE purpose of replacing wParent() seems to violate a more basic principle; "KISS".
>
>
>
>>The way it was explained to me is that OOP is doing things upside down. Instead of taking a function and throwing data at it, you take data (or an object) and throw a function at it. In otherwords, an object should be responsible for itself. For example,
>>
>>? WVISIBLE("MyForm") as opposed to ? MyForm.Visible
>>
>>>I've been told that w***() functions (wontop(), wparent(), etc) are not OOP, but I don't understand why.
>>>
>>>It seems to me that the arguments that I've heard could be applied to just about any function that existed before OOP.
>>>ie: "srows()" existed before OOP, so does that make it non-OOP?
>>>How is that different than "wparent()"?
>>>
>>>What am I missing?
>>>
>>>TIA


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.
Previous
Reply
Map
View

Click here to load this message in the networking platform