From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Vocabulary matter: Component vs Element vs Item
Date: Fri, 26 Jul 2013 21:29:27 +0200
Date: 2013-07-26T21:29:27+02:00 [thread overview]
Message-ID: <op.w0ugfdeuule2fv@cardamome> (raw)
In-Reply-To: op.w0ud8vcjule2fv@cardamome
Le Fri, 26 Jul 2013 20:42:21 +0200, Yannick Duchêne (Hibou57)
<yannick_duchene@yahoo.fr> a écrit:
> Would be nice if there were some explanation somewhere, about how the RM
> choose to assign their signification to Item and Element. Whether the
> thing is named from the point of view of whom send or whom receive the
> thing, is probably important too. You hardly follow a convention if you
> don't understand it :-D
What about this one, which is fortunately compatible with choice made for
the Ada standard containers:
* Component, Element and Item, are all constituents of
some kind of aggregate.
* A Component is a big Element, an Element is a more
rudimentary thing than a Component.
* A component may be made of Elements. An Element is
not said to be made of Components (there may be rare
exceptions). An Element may still be made of Elements.
* An Item is not a kind of thing, but a status.
* An Item is an Element or Component of particular attention
or which receive some kind of focus at some or time.
* The type of an Item is either that of an Element or
a Component.
It's compatible with:
* XML wordings
* wording used to talk about menus and UIs
* Ada standard containers naming convention
* UML wording
* Current and obsolete meaning of Item
* Close meanings of Element and Component
Above all, this would explain why for Ada containers, an Item argument is
of an Element_Type: it's an Element, which receive a particular attention
at some point.
So I was wrong with my idea of defining an Item_Type first and then a
subtype of it named Element_Type. There is just an Element_Type, whose
instances may be generically named either Element or Item.
--
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University
next prev parent reply other threads:[~2013-07-26 19:29 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-25 16:38 Vocabulary matter: Component vs Element vs Item Yannick Duchêne (Hibou57)
2013-07-25 19:01 ` Simon Wright
2013-07-25 19:29 ` Jeffrey Carter
2013-07-25 20:12 ` Yannick Duchêne (Hibou57)
2013-07-26 7:59 ` Simon Wright
2013-07-26 18:42 ` Yannick Duchêne (Hibou57)
2013-07-26 18:53 ` Yannick Duchêne (Hibou57)
2013-07-26 19:29 ` Yannick Duchêne (Hibou57) [this message]
2013-07-27 3:42 ` Randy Brukardt
2013-07-27 8:18 ` Simon Wright
2013-07-27 3:35 ` Randy Brukardt
2013-07-27 15:57 ` Shark8
2013-07-26 9:56 ` Manuel Collado
2013-07-26 17:24 ` Charles H. Sampson
2013-07-26 18:29 ` Adam Beneschan
2013-07-26 19:12 ` Yannick Duchêne (Hibou57)
2013-07-26 19:56 ` Adam Beneschan
2013-07-29 20:25 ` Eryndlia Mavourneen
2013-07-29 22:30 ` Yannick Duchêne (Hibou57)
2013-07-30 13:46 ` Eryndlia Mavourneen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox