I know there are many papers describing these three paradigms but I'm looking for a schematic explanation.

There are a few very good descriptions of aspect-oriented programming on here so I'm asking this question in the hope to get the kind of high-quality answer people at Stack Overflow are used to delivering.

  • This is probably more of a programmers.se question, but it is also really open-ended. See stackoverflow.com/faq#dontask - "Your questions should be reasonably scoped. If you can imagine an entire book that answers your question, you’re asking too much." Commented Nov 19, 2011 at 7:29
  • I'd start by reading the original Thomas Kuhn: amazon.com/Structure-Scientific-Revolutions-Thomas-Kuhn/dp/…
    – paulsm4
    Commented Nov 19, 2011 at 7:34
  • I can also imagine a short answer to my question. For instance, here is how I would describe Aspect-oriented-programming: It's a way to add "processing-units" called aspects in a modular way before and after other processing-units by the means of pointcuts. To me it looks a lot like rule-based programming, for instance the Inform7 programming language. inform7.com/learn/man/doc188.html
    – Peter Fountain
    Commented Nov 19, 2011 at 7:45

1 Answer 1


One can answer this by writing a book on this. However, here is a basic comparison

1. Subject oriented Programming

Subject-Oriented Programming is radical departure from the Object oriented as follows. In OO, objects are defined in terms of intrinsic (i.e. based on a model that independently describes it). and based on this its attributes (properties) and methods (behavior) are derived. The application makes only the use of these properties and behavior. Contrary to this, in subject oriented programming, no object exists (and modeled) in such an isolation. In the process, but behaviors of the objects is been provided by the various other "subjects” of the objects which are beyond the scope and control of the author of the original object. Think of it as a way of extending various "independently definable behaviors" on the object. I think this would be way beyond defining templates of inheritance compared to what is being discussed here.

The undisputed origin of terms (and concept) comes from the paper "Subject Oriented Programming: A Critique of Pure Objects, William Harrison and Harold Ossher". Here is another good paper. Though personally i believe this is a theoretical framework. I don't know if there are any languages/implementation

See this, this and this for more info.

2. Aspect Oriented Programming

Aspect oriented programming has originated from the concept of "Separation of oncerns". Basically it extends the either procedural or object oriented programming for concerns which are cross-cutting. Over simplifying one can say that software has functional requirements and non-functional ones. These cross cutting requirements includes examples like logging, exception handling, thread synchronization, memory management, optimization and so on. These cross cutting ASPECTS should be expressed and implemented separately and independently to any other functional parts.
A comprehensive work in this area is from IBM; basically each such concerns or aspects can be independent from each other forming multidimensional "concern space". , (read this).

Some of the good practical implementations of Aspect Oriented are AspectJ and AspectC++ and many more. See this.

3. Role Oriented Programing
As we evolve towards agents, many a times it is necessary to define "roles" and objectives where as exact activities that agent ends-up performing depends on the environment it is in. This is analogous to human conceptual understanding.

The primary objective is to decouple objective of task from it's co-operation capability by defining explicit construct called cooperation processes. A role is modeled as a set of the capabilities and an expected behavior. however, these approaches also allow modeling of the execution environment and how agent/object can perceive the environment as well. See this.

There are various frameworks proposed in the research for role based modeling and implementations. A few of them are ROPE, BRAIN, ALAADIN and more.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.