Role-oriented programming

Role-oriented programming as a form of computer programming aims at expressing things in terms that are analogous to human conceptual understanding of the world. This should make programs easier to understand and maintain.

The main idea of role-oriented programming is that humans think in terms of roles. 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, yet that person plays two different roles. In particular, the interactions of this person with the outside world depend 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. 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 Windows Server jargon.[1]

Many researchers have argued the advantages of roles in modeling and implementation. Roles allow objects to evolve over time, they enable independent and concurrently existing views (interfaces) of the object, explicating the different contexts of the object, and separating concerns. Generally roles are a natural element of human daily concept-forming. Roles in programming languages enable objects to have changing interfaces, as we see in real life - things change over time, are used differently in different contexts, etc.

Authors of role literature

Programming languages with explicit support for roles

gollark: The image is just 3 matrices of R/G/B values.
gollark: There are 129057189471894718247141491807401825701892912 random details and things but that's the gist of it.
gollark: Then, you just move it a little bit toward lower loss (gradient descent).
gollark: You have a big thing of settable parameters determining how you go from input to output. And if you know what the result *should* be (on training data), then as the maths is all "differentiable", you can differentiate it and get the gradient of loss wrt. all the parameters.
gollark: Well, you put your data into something something linear algebra and something something gradient descent, and answers come out.

See also

References

  1. Carpenter, Tom (2011). Microsoft Windows Server Administration Essentials. Sybex Serious Skills. Indianapolis: John Wiley & Sons. p. 9. ISBN 9781118148693. Retrieved March 7, 2018. [...] 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.
  2. http://www.sigmod.org/dblp/db/indices/a-tree/k/Kristensen%3ABent_Bruun.html
  3. "Archived copy". Archived from the original on January 3, 2013. Retrieved January 3, 2013.CS1 maint: archived copy as title (link)
  4. http://www.informatik.uni-trier.de/~ley/db/indices/a-tree/r/Reenskaug%3ATrygve.html
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.