From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_05 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 15 Aug 91 15:40:21 GMT From: portal!cats.com!andy@apple.com (Andy Davidson) Subject: Re: c++ vs ada results Message-ID: <1991Aug15.154021.24043@cats.com> List-Id: In article <1991Aug14.182554.16576@software.org> smithd@software.org (Doug Smit h) writes: > >There are several ways that the Booch Components use generics that >create an excessive amount of code. As an early attempt to use generics >for a library of reusable code, they have stood up very well. But >as an example of what can be accomplished with generics, they are >slightly dated. > >As relates to this thread, there is excessive duplication of code to >handle the same algorithms. For example, several of the generics that >use linked list implement traversing, constructing, etc. similarly. > >It is possible to take an algorithmic approach to building these >utilities. This creates a smaller library of generics that provide the >same capabilities. If my memory serves, a conservative estimate was a >reduction from 1000+ to about 150 generic packages. I would also >predict an increase in the number of utilities that could be constructed >from the 150 generics. > >Although I did not attempt to convert the Booch library to an >algorithmic approach, I did build a memory management library which >consisted of 8 packages (2 + 3 + 3) that could construct 18 (2 * 3 * 3) >utilities. They were used on a project and worked fine. What exactly do you mean by an "algorithmic approach"? Do you mean a structured design approch?? Can you elaborate on your statement "It is possible to take an algorithmic approach to building these utilities. This creates a smaller library of generics that provide the same capabilities." Thanks in Advance Andy -- ----------------------------------------------------------------- "bede-bede-bede Thats all Folks" Porky Pig