comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Vocabulary matter: Component vs Element vs Item
Date: Tue, 30 Jul 2013 00:30:46 +0200
Date: 2013-07-30T00:30:46+02:00	[thread overview]
Message-ID: <op.w0z8tkofule2fv@cardamome> (raw)
In-Reply-To: 4e50e46b-d133-4513-bb78-7331807224c2@googlegroups.com

Le Mon, 29 Jul 2013 22:25:19 +0200, Eryndlia Mavourneen  
<eryndlia@gmail.com> a écrit:

> In my own experience:
>
> 1) "Element" is one of a collection of the same or similar type of  
> thing, as in an array.  We have the chemical elements, too, which are  
> all chemically irreducible pieces of matter.
>
> 2) "Component" is a member of a construct of (possibly) differing types  
> of things.  I can have a component of a TV set, The Booch Components, or  
> a record.
>
> 3) "Item" is a selection -- could be from a menu or not.  In a loop, the  
> current constant is an item, regardless of whether it is an element, a  
> selection from a container, or eggs and bacon.
>
> -- Eryndlia (KK1T)

Your comment on Item related to loop, is clever and interesting.

About point #1, how do you relate it to #3? Do you feel as I do it's a  
matter of point of view? An item for the client adding something to a  
container, and is an element for the container, thus the Element_Type  
instead of Item_Type? I was interested in the question in a more general  
way than containers (the same question rise in other patterns too), this  
is just that the case of containers speaks easily and the Ada standard  
containers use this naming convention.

-- 
“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

  reply	other threads:[~2013-07-29 22:30 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)
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) [this message]
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