Role-oriented programming: Difference between revisions

Content deleted Content added
No edit summary
m Reverted edits by 199.0.136.162 (talk) to last version by 70.20.120.74
Line 1:
'''Role-playingoriented programming''' is a form of [[sexprogramming language|computer programming]] aimed at expressing things in terms which are analogous to our [[concept]]ual understanding of the world. This should make peopleprograms easier to understand and maintain.
 
The main idea of role-playingoriented programming is that humans think in terms of [[role]]s. This claim is often backed up by examples of [[social relations]]. For example, a student attending a class and the same student at a party are the same person, but yet plays in two different roles. In particular, the interactions of this person with the outside world depends on his current role. The roles typically share features, e.g., the intrinsic properties of being a person. This sharing of properties is often handled by the [[delegation]] mechanism.
 
In the older literature and in the field of [[databases]], it seems that there has been little consideration for the context in which roles interplay with each other. Such a context is being established in newer role- and aspect-oriented programming languages such as Object Teams [http://www.objectteams.org/].