Re: Topic-Organized Object-Oriented Programming




Booted Cat wrote:
I propose an extension to object-oriented programming: topic-organized
object-oriented programming.

It is, simply, classifying all of a class' member variables and member
functions into hierarchical categories by topic.

Trees are usually a poor categorization structures beyond the trivial.
I suggest you read:

http://c2.com/cgi/wiki?LimitsOfHierarchies

I find sets a much more powerful categorization tool. I agree they can
take longer to get one's head around, but power does not always come
cheap.



Member variables and functions under the same topic tend to be invoked
closely. Therefore, if the class manufacturer explicitly declares
which variables and functions are in the same category, it could help
the compiler to optimize user programs which make use of this class,
because loading of data and code in categories unrelated to the
currently active category can be delayed, while data and code right in
or related to the currently activated category can be preloaded and
pre-initialized.

Organization by topic also helps in the coding phase because the class
user no longer has to face a very long list of member functions and
variables when he enters the name of an object instantialized by this
class. He can specify the "currently active topic" and only see
members belonging to this topic. He could switch to a related topic by
following a link designed by the class manufacturer. For example,
suppose the class is "Human" (a class with member functions
corresponding to almost every conceivable verb) and the currently
active topic is "Car Accident", related topics could be causal-
relation topics such as "Hospitalization" and "Lawsuit".

Regards,
Yao Ziyuan

-T-
oop.ismad.com

.



Relevant Pages

  • Topic-Organized Object-Oriented Programming
    ... I propose an extension to object-oriented programming: ... It is, simply, classifying all of a class' member variables and member ... related topics could be causal- ...
    (comp.object)
  • Re: Topic-Organized Object-Oriented Programming
    ... object-oriented programming. ... It is, simply, classifying all of a class' member variables and member ... related topics could be causal- ...
    (comp.object)
  • Re: Topic-Organized Object-Oriented Programming
    ... object-oriented programming. ... It is, simply, classifying all of a class' member variables and member ... programming, since in procedural, everything is logically organised. ...
    (comp.object)
  • Re: CLOS and C++
    ... > But Scott Meyers is not advocating making all class member variables ... (defclass-with-privates foo () ...
    (comp.lang.lisp)
  • Re: Visual C Cdialog.DoModal()
    ... The fast solution is to simply declare the dialog in the ... But unless this function needs access to class member variables (in which case ... Essentially, there is no need, as far as I can tell, to have the dialog member in the ... without a class instance there simply isn't ANY member variable you can talk about. ...
    (microsoft.public.vc.mfc)

Quantcast