Re: Separation of concerns
- From: Alexandr Savinov <spam@xxxxxxxx>
- Date: Thu, 29 Mar 2007 11:08:41 +0200
Thomas Kowalski schrieb:
Hi everyone,
I am currently quite confused about the separation of concerns things
and search here for enlightenment.
I have some classes. lets say A and B that shall implement a certain
interface (e.g. Drawable).
Now it would not be very nice if A and B would implement then directly
or?
Should I subclass like A_Draw and B_Draw or what is the current
pattern to solve this?
You can use AOP (aspect-oriented programming), mixins (abstract subclasses) or CoP (concept-oriented programming) or may be some other approach or technique (like inner methods). OOP is known to be inappropriate for this problem. In other words, in OOP it is not possible to effectively separate concerns (as this problem is currently interpreted).
Thanks a lot in advance,
Thomas Kowalski
--
http://conceptoriented.com
.
- References:
- Separation of concerns
- From: Thomas Kowalski
- Separation of concerns
- Prev by Date: Re: Double Dispatch Problem: Mobile Creatures and Projectiles in a Game World
- Next by Date: Re: Separation of concerns
- Previous by thread: Re: Separation of concerns
- Next by thread: Double Dispatch Problem: Mobile Creatures and Projectiles in a Game World
- Index(es):
Relevant Pages
|