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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,229ea0001655d6a2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!r35g2000prh.googlegroups.com!not-for-mail From: "andrew.carroll@okstate.edu" Newsgroups: comp.lang.ada Subject: Re: Generic Package Date: 26 Apr 2007 08:31:24 -0700 Organization: http://groups.google.com Message-ID: <1177601484.444701.171560@r35g2000prh.googlegroups.com> References: <1177539306.952515.222940@s33g2000prh.googlegroups.com> NNTP-Posting-Host: 139.78.128.110 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1177601491 15363 127.0.0.1 (26 Apr 2007 15:31:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 26 Apr 2007 15:31:31 +0000 (UTC) In-Reply-To: <1177539306.952515.222940@s33g2000prh.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: r35g2000prh.googlegroups.com; posting-host=139.78.128.110; posting-account=Kq9unQ0AAADh_grEViI3JGqegXKDDjxt Xref: g2news1.google.com comp.lang.ada:15309 Date: 2007-04-26T08:31:24-07:00 List-Id: I discovered a possble design mistake in the program I wrote for my Master's course this semester. It's working and all that but I think I could have saved myself many hours of work had I recognized (and regurgitated from my undergraduate knowledge in 2002) the "is a" concept. With respect to databases a tuple "is a" collection of attributes and a table "is a" collection of tuples and a schema "is a" collection of tables. I could have used a generic "collection" to satisfy tuple, table and schema and I wouldn't have had to write code to iterate, add, delete, etcetera from them. Does that help explain it? I think the Booch components may have something I'm looking for. Even though this site http://www.adapower.net/booch/overview.html says it would be better to use a "collection" (there's the word again) than a linked list I think I could have used the generic linked list for my purposes. I wish the site had given more information as to what a "collection" is and where to find more information about it. Then again, I didn't read the whole thing. So what would be best to choose?