comp.lang.ada
 help / color / mirror / Atom feed
From: "Warren W. Gay VE3WWG" <warren@ve3wwg.tk>
Subject: Re: GUI was Re: why Ada is so unpopular ?
Date: Thu, 22 Jan 2004 12:48:28 -0500
Date: 2004-01-22T12:48:28-05:00	[thread overview]
Message-ID: <X0UPb.16452$U77.1301313@news20.bellglobal.com> (raw)
In-Reply-To: <400FD340.3080603@noplace.com>

Marin David Condic wrote:

> Wait a minute. Aren't directories usually considered to be some kind of 
> tree structure? Doesn't MSVC++ and the MFC supply some kind of tree 
> widget for displaying things like directories? Seems like every time I 
> pop up a directory on Windows, I see something that looks very 
> reminiscent of a tree and one that looks surprisingly like the one I 
> seem to recall was in the MFC. Maybe I'm wrong, but it looks to me like 
> Microsoft might just be keeping some kind of tree data structure in 
> place for handling directories. Not that the fact that Microsoft does 
> something necessarily makes a recomendation for doing the same - but it 
> would seem like it might not be all that painful for some apps.

You're right, but this doesn't work very well when you drop
into a directory with thousands of files. A smart tree widget
might just peruse "directory portions", where the tree widget
is visible (perhaps a less than trivial exercise). But I suspect
they take the easy way out, and require all entries to be loaded
in to the widget's dynamic memory. Otherwise performance in large
directory cases would not be so abysmal.


> What would be wrong with a "Directories" package having a call that 
> would return some kind of tree data structure? 

The OP was referring to the fact that you cannot count on the fact
that you will have a limited number of directory entries returned.
The idea works if you insist on a "reasonable" sized directory.
But this is outside of your control.

This is much like insisting that an SQL query should always return
few enough rows, that can be held in the client program's memory.
Many programs get written without thinking ahead about this very
issue. Usually these short-sighted programs implement ok, but then
with time passing, and database growing, it is realized that
something else must be done about the original design.

-- 
Warren W. Gay VE3WWG
http://ve3wwg.tk




  reply	other threads:[~2004-01-22 17:48 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-21 15:42 GUI was Re: why Ada is so unpopular ? amado.alves
2004-01-21 19:22 ` Randy Brukardt
2004-01-22 13:42   ` Marin David Condic
2004-01-22 17:48     ` Warren W. Gay VE3WWG [this message]
2004-01-22 19:30       ` Jeffrey Carter
2004-01-23 17:37         ` Warren W. Gay VE3WWG
2004-01-23 13:34       ` Marin David Condic
2004-01-23 17:50         ` Warren W. Gay VE3WWG
2004-01-23 19:20           ` Hyman Rosen
2004-01-24  6:26             ` Robert I. Eachus
2004-01-24  9:37             ` Georg Bauhaus
2004-01-22 19:33     ` Randy Brukardt
2004-01-23 13:38       ` Marin David Condic
2004-01-22 13:26 ` Marin David Condic
  -- strict thread matches above, loose matches on Subject: below --
2004-01-22 19:03 amado.alves
2004-01-23 17:55 ` Warren W. Gay VE3WWG
2004-01-21 18:15 amado.alves
2004-01-20 17:55 Robert C. Leif
2004-01-20 18:58 ` Georg Bauhaus
2004-01-20 14:16 amado.alves
2004-01-21 13:22 ` Marin David Condic
2004-01-21 17:28   ` Jeffrey Carter
2004-01-20  4:06 Robert C. Leif
2004-01-20  7:39 ` Preben Randhol
2004-01-20 10:40   ` Georg Bauhaus
2004-01-20 10:59     ` Preben Randhol
2004-01-20 19:42       ` Randy Brukardt
2004-01-20 20:12         ` tmoran
2004-01-21 13:01           ` Marin David Condic
2004-01-21 18:05             ` tmoran
2004-01-21 12:52         ` Marin David Condic
2004-01-20 13:22 ` Marin David Condic
2004-01-20 17:41   ` Warren W. Gay VE3WWG
2004-01-19  4:11     ` Mark Lorenzen
replies disabled

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