From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Vocabulary matter: Component vs Element vs Item Date: Tue, 30 Jul 2013 00:30:46 +0200 Organization: Ada @ Home Message-ID: References: <4e50e46b-d133-4513-bb78-7331807224c2@googlegroups.com> NNTP-Posting-Host: Q+yAf+3rQiqRKw0/oBD3Eg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:16607 Date: 2013-07-30T00:30:46+02:00 List-Id: Le Mon, 29 Jul 2013 22:25:19 +0200, Eryndlia Mavourneen = a =C3=A9crit: > 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 type= s = > 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, t= he = > 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. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity