Topic-Organized Object-Oriented Programming
- From: "Booted Cat" <yaoziyuan@xxxxxxxxx>
- Date: 7 Feb 2007 08:00:21 -0800
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.
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
.
- Follow-Ups:
- Re: Topic-Organized Object-Oriented Programming
- From: AndyW
- Re: Topic-Organized Object-Oriented Programming
- From: H. S. Lahman
- Re: Topic-Organized Object-Oriented Programming
- From: Dmitry A. Kazakov
- Re: Topic-Organized Object-Oriented Programming
- From: Cagdas Ozgenc
- Re: Topic-Organized Object-Oriented Programming
- From: ggroups
- Re: Topic-Organized Object-Oriented Programming
- From: Thomas Gagne
- Re: Topic-Organized Object-Oriented Programming
- From: andrew queisser
- Re: Topic-Organized Object-Oriented Programming
- From: topmind
- Re: Topic-Organized Object-Oriented Programming
- Prev by Date: Re: Enforcing domain rules
- Next by Date: Re: Relational-to-OOP Tax
- Previous by thread: Survey about Architecture and Design Patterns
- Next by thread: Re: Topic-Organized Object-Oriented Programming
- Index(es):
Relevant Pages
|