comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: XML DOM Binding for Ada 95 - matter of style
Date: Thu, 31 Jul 2003 15:25:00 -0500
Date: 2003-07-31T15:25:00-05:00	[thread overview]
Message-ID: <viiulle2h3die8@corp.supernews.com> (raw)
In-Reply-To: Ly8Wa.716$jg7.380@newsread3.news.pas.earthlink.net

"Matthew Heaney" <matthewjheaney@earthlink.net> wrote in message
news:Ly8Wa.716$jg7.380@newsread3.news.pas.earthlink.net...
> "Preben Randhol" <randhol+abuse@pvv.org> wrote in message
> news:slrnbihv85.4jd.randhol+abuse@kiuk0152.chembio.ntnu.no...
> > I thought one of the problems with Booch was that it was using tagged
> > types too much. Does Charles also use this approach?

You can't use tagged types too much. IMHO, virtually everything should be
derived from Controlled or Limited_Controlled (which by definition makes
them a tagged type). But...

> One problem is that you have to make two instantiations: one for the root
> package, in which the root type is declared, and another, for the child
> package in which the actual container (derived) type is declared.  This is
a
> royal pain.
>
> Charles deliberately avoided this technique, because no inheritance is
> necessary.  Static mechanisms are used instead, which are simpler and more
> general.

Right. *Inheritance* is what can easily be overused. It has its place, but
it can easily be overused. And users have a hard time understanding
"overriding", which is usually necessary to use these sorts of types.

We did Claw that way mainly because we wanted to be able to say that it was
"Object-Oriented"; if I was designing it with no marketing implications, we
may have chosen a different structure. (I'm not sure, because we never did
any analysis on non-O-O choices.)

In the specific case of container libraries, if it takes more than one
instantiation to get a basic container, it is too hard to use. If it's much
more complex than that, I'd rather build my own from scratch (none of them
are that much work to implement, especially as you almost never need the
full generality). And I don't think it is important to have a version for
every need. A version that works well for most needs is enough -- if you
have truly critical needs, you ought to build something custom that meets
those needs exactly. But most container needs aren't that critical. It's
more important to be able to use them to quickly build a solution that you
can profile to find out whether it is good enough or not.

                Randy.







  parent reply	other threads:[~2003-07-31 20:25 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-30 11:32 XML DOM Binding for Ada 95 - matter of style DENNY VRANDECIC
2003-07-30 12:33 ` Martin Dowie
2003-07-30 15:20   ` Denny Vrandecic
2003-07-30 16:33     ` Stephen Leake
2003-07-31 10:57       ` Marin David Condic
2003-07-31 11:27         ` Preben Randhol
2003-07-31 13:10           ` Matthew Heaney
2003-07-31 19:04             ` Simon Wright
2003-08-02 14:40               ` Matthew Heaney
2003-07-31 20:25             ` Randy Brukardt [this message]
2003-08-01 11:46           ` Marin David Condic
2003-08-02  3:40             ` Matthew Heaney
2003-08-02 12:08               ` Marin David Condic
2003-08-02 14:46                 ` Matthew Heaney
2003-08-02 21:25                   ` Ed Falis
2003-08-05 19:59                   ` Marin David Condic
2003-08-03 16:42                 ` Matthew Heaney
2003-08-04  8:04                   ` Dmitry A. Kazakov
2003-08-05  8:00                     ` Georg Bauhaus
2003-08-05 11:46                       ` Dmitry A. Kazakov
2003-08-05 13:34                         ` Georg Bauhaus
2003-08-06  9:03                           ` Dmitry A. Kazakov
2003-08-06 18:15                             ` signature like constructions (was: Re: XML DOM Binding for Ada 95 - matter of style) Georg Bauhaus
2003-08-07 10:12                               ` Dmitry A. Kazakov
2003-08-07 16:22                                 ` signature like constructions Georg Bauhaus
2003-08-08  8:31                                   ` Dmitry A. Kazakov
2003-08-08 10:12                                     ` Robert I. Eachus
2003-08-08 13:29                                       ` Dmitry A. Kazakov
2003-08-08 19:37                                         ` Robert I. Eachus
2003-08-09  0:58                                           ` Alexander Kopilovitch
2003-08-09  7:39                                             ` Robert I. Eachus
2003-08-10  1:30                                               ` Alexander Kopilovitch
2003-08-10  4:11                                                 ` Robert I. Eachus
2003-08-11 10:25                                           ` Dmitry A. Kazakov
2003-08-08 23:44                                         ` Alexander Kopilovitch
2003-08-11  9:54                                           ` Dmitry A. Kazakov
2003-08-11 14:59                                             ` Alexander Kopilovitch
2003-08-12  9:54                                               ` Dmitry A. Kazakov
2003-08-13 22:28                                                 ` Alexander Kopilovitch
2003-08-09  8:32                                       ` Simon Wright
2003-08-09 15:32                                         ` Robert I. Eachus
2003-08-07 12:52                             ` XML DOM Binding for Ada 95 - matter of style Matthew Heaney
2003-08-07 15:03                               ` Dmitry A. Kazakov
2003-08-07 12:28                           ` Matthew Heaney
2003-08-05 20:05                   ` Marin David Condic
2003-07-30 16:34     ` Martin Dowie
2003-07-30 17:54 ` tmoran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox