Article: Composite Oriented Programming with Qi4j
The goal of modeling domain concepts through objects set by OOP has for a long time been handled in insufficient ways. What is the fundamental problem with how we have tried to do this so far? Is there a better way to deal with it? In this article we introduce the concept of Composite Oriented Programming, and show how it avoids the issues with OOP and reignites the hope of being able to compose domain models with reusable pieces.
Read: Composite Oriented Programming with Qi4j
Nice..
by
Sony Mathew
Get a feeling how it works ...
by
Georg Ragaller
Interesting to compare with...
by
Stephen Palmer
Actor-Role and object inheritance patterns in Nicola's Streamlined Object Modeling (www.streamlinedmodeling.com) ...
... and with the Party,Place,Thing - Role pattern in Peter Coad's Java Modeling in Color with UML (dn.codegear.com/article/29871)
Where is it useful?
by
Gregory Mostizky
Gregory
Re: Nice..
by
Rickard Öberg
Re: Ruby mix-ins
by
Rickard Öberg
Re: Where is it useful?
by
Rickard Öberg
For this reason I think the approach is generally applicable. It also allows you to think more in terms of roles (i.e. "how does the CLIENT want to perceive this object?") rather than the usual class-oriented thinking (i.e. "what am I?"). Role oriented modeling, which by nature is heavily interface-oriented, leads to better separation of concerns and more reusable code.
Persistense issues
by
Ricardo Di Pasquale
Thanks
Sounds like Traits, as implemented in Scala
by
Dean Wampler
"Classes are dead" ...
by
Joubin Houshyar
@Mixins({DeveloperMixin.class, SpeakerMixin.class, AlumniMixin.class})
public interface HumanComposite
extends Developer, Speaker, Alumni, Composite
{}
Related:
www.howtodothings.com/home-and-garden/a4417-how...
Classes are dead. Long live interfaces!
Related?
www.youtube.com/watch?v=mriBc6NjUhg
Educational Content
Building Hypermedia APIs with HTML
Jon Moore Jun 19, 2013
Deleting Code at Nokia
Tom Coupland Jun 19, 2013
Intro to CLP with core.logic
Ryan Senior Jun 18, 2013
Spock: A Highly Logical Way To Test
Howard Lewis Ship Jun 18, 2013
Java Garbage Collection Distilled
Martin Thompson Jun 17, 2013




Hello stranger!
You need to Register an InfoQ account or Login to post comments. But there's so much more behind being registered.Get the most out of the InfoQ experience.
Tell us what you think