Re: Topic-Organized Object-Oriented Programming
- From: "topmind" <topmind@xxxxxxxxxxxxxxxx>
- Date: 7 Feb 2007 08:29:01 -0800
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
.
- Follow-Ups:
- Re: Topic-Organized Object-Oriented Programming
- From: Diego
- Re: Topic-Organized Object-Oriented Programming
- From: Booted Cat
- Re: Topic-Organized Object-Oriented Programming
- References:
- Topic-Organized Object-Oriented Programming
- From: Booted Cat
- Topic-Organized Object-Oriented Programming
- Prev by Date: Re: Client/Service relationships & Flow of Requirements.
- Next by Date: Re: Topic-Organized Object-Oriented Programming
- Previous by thread: Topic-Organized Object-Oriented Programming
- Next by thread: Re: Topic-Organized Object-Oriented Programming
- Index(es):
Relevant Pages
|