Questions tagged [cop]

COP, aka. Composite-Oriented Programming, is a programming paradigm based on the concept of "composites", assembled from "fragments", structured in "applications". COP aims at fixing classic OOP (Object-Oriented Programming) flaws and is heavily influenced by DDD (Domain Driven Design).

Resources

11 questions
15
votes
1 answer

What is the difference between an Abstract Class and a Mixin?

I just found an article on a framework in Java that apparently allows it to support Mixins and something called Composite Oriented Programming (which for all I know might even be the same thing...) I've also heard of/worked with AOP, and I'm not…
leeand00
  • 25,510
  • 39
  • 140
  • 297
11
votes
6 answers

Anybody using Qi4J

I was reading an InfoQ article on Composite Oriented Programming earlier on: http://www.infoq.com/articles/Composite-Programming-Qi4j I was interested in finding out whether anybody is currently using (or has used) the Qi4j framework at all? How…
Jonathan Holloway
  • 62,090
  • 32
  • 125
  • 150
7
votes
5 answers

Make object dynamically implement an interface in code

I want to make this test pass - anyone got an idea how to do that? public class Something { public string Name {get; set} } public interface IWithId { public Guid Id {get; set} } public class IdExtender { public static Object…
Jan
  • 6,532
  • 9
  • 37
  • 48
7
votes
3 answers

Composite Oriented Programming (COP), .NET 4.0, MEF, and the Oslo Repository

There seems to have been some interest over the past year around COP within the .NET community (ala Qi4j). A few folks have rolled there own COP frameworks (see links below) and it would appear .NET 4.0's Dynamic Dispatch and MEF might have a…
J Healy
  • 2,332
  • 1
  • 18
  • 13
3
votes
2 answers

Role Based Programming Framework / Composite Oriented programming Framework in Scala

From where I can get Composite Oriented Programming Framework in scala -- Qi4j or similar? For reference : www.qi4j.org What is Qi4j™? - [Brief Introduction taken from www.qi4j.org] The short answer is that Qi4j™ is a framework for domain centric…
Optimight
  • 2,989
  • 6
  • 30
  • 48
3
votes
2 answers

Objective-C and component programming

I am trying to implement the concept of component programming while writing my iOS game. In the book "Component Software: Beyond Object-Oriented Programming" by Clemens Szyperski, he mentions a tactic: (not quote) Start with a Duck class, which adds…
C-A
  • 699
  • 1
  • 6
  • 11
1
vote
3 answers

Copying a pointer of a pointer (matrix) values in C

The problem is the following: I created a dynamic matrix, using pointer to pointer matrix1 I want to create a copy of this matrix into another, matrix2 I want to do that so I can mess with matrix2 without messing with matrix1 So I tried to do the…
Hirosam
  • 13
  • 1
  • 7
0
votes
1 answer

Serializing Composed Objects

I see Composite Oriented Programming and DCI as interesting techniques to use within a rest framework, but have run into an issue. Is it possible to serialize a mixin object and get all it's properties? For example: public class IHasOwner { …
Bless Yahu
  • 1,331
  • 1
  • 12
  • 25
0
votes
2 answers

Ruby reflection composition: call original method from redefined method

A bit of context first I have a class Phone that defines a method advertise like this: class Phone def advertise(phone_call) 'ringtone' end end I would like to have some adaptations for this method. For example when the user is in a quiet…
foobar443
  • 2,339
  • 3
  • 23
  • 31
0
votes
0 answers

What are the benefits to these forms of message passing in IPC?

Direct vs Indirect communication and Synchronous vs Asynchronous Communication? In direct communication, it gives the name of the process you are communicating with such as send(destination-process, message) and receive (source-process, message).…
Terry Light
  • 109
  • 1
  • 7
-1
votes
1 answer

Is javax.ejb still in used today?

I am working on a project to build a stateless ejb calculator component and my very first error is that the javax.ejb package does not exist (even after I looked for and included the jar). The thing is all solutions I am seeing online are…
Ingasha
  • 1
  • 1