Let there be light.
doco
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Check out my kickstarter CLICK HERE
My book, my movies, my videos, my podcasts, my events ... the big collection of paul wheaton stuff!
Let there be light.
doco
Originally posted by Dirk Schreckmann:
When it comes to translating the various relationships into code, aggregation and association relationships are implemented in exactly the same fashion; in fact, one could argue that aggregation could be left out of the UML without any significant loss, since an association could certainly be labeled "has a".
I do think that distinguishing between aggregation and assiciation is useful in a few situations, including when trying to understand a developing solution design and discovering what design patters might fit well.
Sometimes it's just useful to know whether something uses another thing or whether it actually is composed of it. For instance, a car and a road both interact with car tires. At times, it's useful to distinguish that the car is partly composed of the tires and the road just interacts with them. I don't think I'd like to say the road "has a" car tire in this relationship.
The lil' thing that just kinda bugs me about UML is the distinction between aggregation and composition. At the moment I don't recall what the big deal is all about that these need to be distinguished.
But we can spend days stumbling over semantics and such over in the OO, Patterns and UML forum...
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Rufus BugleWeed:
He claims the hollow diiamond is going away in UML 2. Like Ilja he says the black diamond is important to C++.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ilja Preuss:
But would you really *code* it differently?
Help me!Help you!!!
Originally posted by william kane:
I did not get what you are trying to say here Ilja Are u saying that because one may not implement association and aggregation diffently in terms of code one need not model it diffently???
Please clarify
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ilja Preuss:
I am not totally sure. What do we model for?
42
Originally posted by Ilja Preuss:
I am not totally sure. What do we model for?
Help me!Help you!!!
Originally posted by Ilja Preuss:
I am not totally sure. What do we model for?
Help me!Help you!!!
Originally posted by william kane:
In my opinion modelling 'uses a' relationship different from a 'has a' relationship is useful in better expressing the problem and therefore better solving the problem.At this point i dont think abt how i implement the realtionships.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus