Role-oriented programming: Difference between revisions

Content deleted Content added
Antonielly (talk | contribs)
m Bot: http → https
 
(55 intermediate revisions by 38 users not shown)
Line 1:
{{Short description|Programming paradigm based on conceptual understanding of objects}}
'''Role-oriented programming''' is a form of [[programming language|computer programming]] aimed at expressing things in terms which are analogous to our [[concept]]ual understanding of the world. This should make programs easier to understand and maintain.
{{Use mdy dates|date=January 2019}}
{{Use American English|date=January 2019}}
 
'''Role-oriented programming''' isas a form of [[programming language|computer programming]] aimedaims at expressing things in terms whichthat are analogous to ourhuman [[concept]]ual understanding of the [[world]]. This should make programs easier to understand and maintain.{{citation needed|date= August 2016}}
The main idea of role-oriented 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.
 
The main idea of role-oriented 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 playsthat inperson plays two different roles. In particular, the interactions of this person with the outside world dependsdepend 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_(programming)|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/].
 
In the older literature and in the field of [[databasesdatabase]]s, it seems{{or|date=March 2018}} 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]]. Compare the use of "role" as "a set of software programs (services) that enable a server to perform specific functions for users or computers on the network" in [http://www.objectteams.org/[Windows Server]] jargon.<ref>{{cite book
Many researchers have argued the advantages of roles in [[Computer model|modeling]] and implementation. Roles allow objects to evolve over time, they enable independent and [[Concurrency (computer science)|concurrently]] existing views (interfaces) of the object, explicating the different contexts of the object, and separating concerns. Generally roles are a natural element of our daily concept forming. Roles in programming languages enable objects to have changing interfaces, as we see it in real life - things change over time, are used differently in different contexts, etc.
| last1 = Carpenter
| first1 = Tom
| title = Microsoft Windows Server Administration Essentials
| url = https://books.google.com/books?id=6_mmL45Zw0IC
| series = Sybex Serious Skills
| date = July 18, 2011
| ___location = Indianapolis
| publisher = John Wiley & Sons
| publication-date = 2011
| page = 9
| isbn = 9781118148693
| access-date = 2018-03-07
| quote = [...] a server role is a set of software programs (services) that enable a server to perform specific functions for users or computers on the network.}}</ref>
 
Many{{quantify|date=March 2018}} researchers have argued the advantages of roles in [[Computercomputer model|modeling]] and implementation. Roles allow objects to evolve over time, they enable independent and [[Concurrency (computer science)|concurrently]] existing views (interfaces) of the object, explicating the different contexts of the object, and [[separation of concerns | separating concerns]]. Generally roles are a natural element of ourhuman daily concept -forming. Roles in programming languages enable objects to have changing interfaces, as we see it in [[real life]] - things change over time, are used differently in different contexts, etc.
 
==Authors of role literature==
* [[Trygve Reenskaug]] [http://www.informatik.uni-trier.de/~ley/db/indices/a-tree/rp/ReenskaugPernici%3ATrygve3ABarbara.html Barbara Pernici]
* [http://www.mip.sdu.dk/people/Staff/bbk.html Bent Bruun Kristensen]<ref>{{cite web |url=http://www.sigmod.org/dblp/db/indices/a-tree/k/Kristensen%3ABent_Bruun.html |url-status=dead |archive-url=https://web.archive.org/web/20070927210129/http://www.sigmod.org/dblp/db/indices/a-tree/k/Kristensen:Bent_Bruun.html |archive-date=September 27, 2007 |title=DBLP: Bent Bruun Kristensen}}</ref>
* Georg Gottlob [http://www.informatik.uni-trier.de/~ley/db/indices/a-tree/g/Gottlob%3AGeorg.html]
* [https://existentialprogramming.blogspot.com/search/label/roles Bruce Wallace]
* Bent Bruun Kristensen [http://www.sigmod.org/dblp/db/indices/a-tree/k/Kristensen%3ABent_Bruun.html] [http://www.mip.sdu.dk/people/Staff/bbk.html]
* [[Charles Bachman]]<ref>{{cite web |url=http://www.computerhistory.org/events/lectures/bachman_04162002/bachman.shtml |title=Computer History Museum - Lectures - Charles W. (Charlie) Bachman |access-date=2013-01-03 |url-status=dead |archive-url=https://web.archive.org/web/20130103023948/http://www.computerhistory.org/events/lectures/bachman_04162002/bachman.shtml |archive-date=2013-01-03 }}</ref>
* Kasper Østerbye [http://www.informatik.uni-trier.de/~ley/db/indices/a-tree/=/=Oslash=sterbye%3AKasper.html] [http://www.itu.dk/people/kasper/]
* Friedrich Steimann [http://www.informatik.uni-trier.de/~ley/db/indices/a-tree/s/Steimann%3AFriedrich.html] [http://www.kbs.uni-hannover.de/~steimann/ Friedrich Steimann]
* Stephan Herrmann [http://www.informatik.uni-trier.de/~ley/db/indices/a-tree/hg/HerrmannGottlob%3AStephan3AGeorg.html Georg Gottlob]
* [https://www.itu.dk/people/kbilsted/ Kasper B. Graversen]
* Barbara Pernici [http://www.informatik.uni-trier.de/~ley/db/indices/a-tree/p/Pernici%3ABarbara.html]
* Kasper B. Graversen [httphttps://www.itu.dk/people/kbilstedkasper/ Kasper Østerbye]
* Georg Gottlob [http://www.informatik.uni-trier.de/~ley/db/indices/a-tree/gh/GottlobHerrmann%3AGeorg3AStephan.html Stephan Herrmann]
* Barbara[[Trygve PerniciReenskaug]]<ref>{{cite [web |url=http://www.informatik.uni-trier.de/~ley/db/indices/a-tree/pr/PerniciReenskaug%3ABarbara3ATrygve.html] |title = dblp: Trygve Reenskaug}}</ref>
* [https://wwwpub.zih.tu-dresden.de/~s4560758/ Thomas Kühn]
 
==Programming languages with explicit support for roles==
* [[Cameleon_(programming_language)|Cameleon]]
* [https://www.eclipse.org/epsilon/ EpsilonJ]
* [[JavaScript#Delegative|JavaScript Delegation - Functions as Roles (Traits and Mixins)]]
* [https://www.eclipse.org/objectteams Object Teams]
* [[Moose (Perl)#Roles|Perl (Moose)]]
* [[Raku (programming language)#Roles|Raku]]
* [http://portal.acm.org/citation.cfm?id=1141277.1141606 powerJava]
* [https://github.com/max-leuthaeuser/SCROLL SCala ROLes Language]
 
==See also==
* [[Aspect-oriented programming]]
*[[Object Oriented Role Analysis Method]]
* [[Data, context and interaction]]
*[[Object role modeling]]
* [[Object Oriented Role Analysis Method]]
*[[Aspect-oriented programming]]
* [[SubjectObject-orientedrole programmingmodeling]]
* [[Subject (programming)]]
* [[Subject-oriented programming]]
* [[Traits (computer science)]]
 
==References==
{{reflist|30em}}
 
==External links==
* [ftphttps://web.archive.org/web/20060910101027/http://ftp.ccs.neu.edu/pub/people/lieber/appcs.pdf Adaptive Plug-and-Play Components for Evolutionary Software Development], by Mira Mezini and Karl Lieberherr
*[http://doi.ieeecomputersociety.org/10.1109/COOPIS.1999.792181 ROPE: Role Oriented Programming Environment for Multiagent Systems]
* [http://www.iit.edu/~concur/asc/cassservices.html Context Aspect Sensitive Services]
* [https://www.itu.dk/people/kbilsted/graversen06thesis.pdf Overview and taxonomy of Role languages]
[ftp://ftp.ccs.neu.edu/pub/people/lieber/appcs.pdf Adaptive Plug-and-Play Components for Evolutionary Software Development], by Mira Mezini and Karl Lieberherr
* [httphttps://doi.ieeecomputersociety.org/10.1109/COOPIS.1999.792181 ROPE: Role Oriented Programming Environment for Multiagent Systems]
 
{{Programming paradigms navbox}}
{{compu-prog-stub}}
 
[[Category:Object-based programming languages]]
[[Category:Programming paradigms]]